service里启动一个线程通过while(true)每5秒钟不断通过io操作发送数据,在页面长时间待机引起应用卡死,无法操作
相关报错:
"JDWP" daemon prio=5 tid=6 WaitingInMainDebuggerLoop
| group="system" sCount=1 dsCount=0 obj=0x12c050a0 self=0xaf441900
| sysTid=16189 nice=0 cgrp=default sched=0/0 handle=0xb4927000
| state=S schedstat=( 1862343 0 14 ) utm=0 stm=0 core=2 HZ=100
| stack=0xb3d2e000-0xb3d30000 stackSize=1012KB
| held mutexes=
native: #00 pc 0003b29c /system/lib/libc.so (recvmsg+8)
native: #01 pc 0028141f /system/lib/libart.so (art::JDWP::JdwpAdbState::ReceiveClientFd()+90)
native: #02 pc 00281513 /system/lib/libart.so (art::JDWP::JdwpAdbState::Accept()+106)
native: #03 pc 0018f1f7 /system/lib/libart.so (art::JDWP::JdwpState::Run()+286)
native: #04 pc 0019073b /system/lib/libart.so (art::JDWP::StartJdwpThread(void*)+10)
native: #05 pc 00016fdb /system/lib/libc.so (__pthread_start(void*)+30)
native: #06 pc 00014f23 /system/lib/libc.so (__start_thread+6)
(no managed stack frames)
"ReferenceQueueDaemon" daemon prio=5 tid=7 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c070a0 self=0xb4842f00
| sysTid=16190 nice=0 cgrp=default sched=0/0 handle=0xb4924080
| state=S schedstat=( 51983736 3144659 270 ) utm=3 stm=2 core=1 HZ=100
| stack=0xb3c2a000-0xb3c2c000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x38ea946f> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:134) - locked <0x38ea946f> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Thread.run(Thread.java:818)
"FinalizerDaemon" daemon prio=5 tid=8 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c07100 self=0xb4843900
| sysTid=16191 nice=0 cgrp=default sched=0/0 handle=0xb4924300
| state=S schedstat=( 100757377 19837153 251 ) utm=6 stm=4 core=2 HZ=100
| stack=0xb3b26000-0xb3b28000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x31f5357c> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait(Object.java:422)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:101) - locked <0x31f5357c> (a java.lang.ref.ReferenceQueue)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174)
at java.lang.Thread.run(Thread.java:818)
"FinalizerWatchdogDaemon" daemon prio=5 tid=9 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c07160 self=0xb4844300
| sysTid=16192 nice=0 cgrp=default sched=0/0 handle=0xb4924580
| state=S schedstat=( 5352837 4827914 74 ) utm=0 stm=0 core=1 HZ=100
| stack=0xb3a22000-0xb3a24000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x159bbe05> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject(Daemons.java:240) - locked <0x159bbe05> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:212)
at java.lang.Thread.run(Thread.java:818)
"HeapTrimmerDaemon" daemon prio=5 tid=10 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c071c0 self=0xb4844800
| sysTid=16193 nice=0 cgrp=default sched=0/0 handle=0xb4924800
| state=S schedstat=( 29075683 733285 20 ) utm=0 stm=2 core=0 HZ=100
| stack=0xb391c000-0xb391e000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x24139e5a> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Daemons$HeapTrimmerDaemon.run(Daemons.java:311) - locked <0x24139e5a> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Thread.run(Thread.java:818)
"GCDaemon" daemon prio=5 tid=11 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c07220 self=0xb4844d00
| sysTid=16194 nice=0 cgrp=default sched=0/0 handle=0xb4924a80
| state=S schedstat=( 653232377 56916118 168 ) utm=61 stm=4 core=1 HZ=100
| stack=0xb3814000-0xb3816000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x2a36088b> (a java.lang.Daemons$GCDaemon)
at java.lang.Daemons$GCDaemon.run(Daemons.java:344) - locked <0x2a36088b> (a java.lang.Daemons$GCDaemon)
at java.lang.Thread.run(Thread.java:818)