- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我们有一个 java 程序,它通过 tcpip 套接字连接到远程服务器,并在连续的 while 循环中发送异步消息并接收响应。有 9 个并行线程正在运行并从单个 QUEUE 中提取数据。
每当队列中没有消息时,程序线程会 hibernate 10 秒,然后再次向队列中查询消息。同时,它也每 10 秒向远程服务器发送一次 keepalive 信号。
该程序可以正常运行 1-2 天或更长时间(CPU 利用率为 2-5%),但之后 CPU 利用率突然变得非常高,达到 99-100%。如果我杀死并再次启动它,它会再次正常工作。
我已经获取了线程转储(使用 jstack)并尝试使用 VisualVM。
下面是我的线程转储。
2015-04-28 13:48:12
Full thread dump Java HotSpot(TM) Client VM (25.25-b02 mixed mode):
"RMI TCP Connection(5)-10.130.254.26" #60 daemon prio=5 os_prio=0 tid=0x01069800 nid=0x1ffc runnable [0x164cf000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
- locked <0x0abb7bd8> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:539)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- <0x0abb7d58> (a java.util.concurrent.ThreadPoolExecutor$Worker)
"RMI TCP Connection(4)-10.130.254.26" #59 daemon prio=5 os_prio=0 tid=0x01067400 nid=0x1df8 runnable [0x15abf000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
- locked <0x0a487300> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:539)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- <0x0a487480> (a java.util.concurrent.ThreadPoolExecutor$Worker)
"RMI TCP Connection(2)-10.130.254.26" #57 daemon prio=5 os_prio=0 tid=0x01068800 nid=0x1714 runnable [0x152cf000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
- locked <0x0a2ba640> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:539)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- <0x0a2ba7c0> (a java.util.concurrent.ThreadPoolExecutor$Worker)
"JMX server connection timeout 56" #56 daemon prio=5 os_prio=0 tid=0x01068000 nid=0x1384 in Object.wait() [0x1532f000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0a2a32c0> (a [I)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:168)
- locked <0x0a2a32c0> (a [I)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"RMI Scheduler(0)" #55 daemon prio=5 os_prio=0 tid=0x01067800 nid=0xbcc waiting on condition [0x15b7f000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x0a2819d8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"RMI TCP Accept-0" #53 daemon prio=5 os_prio=0 tid=0x01066c00 nid=0xf20 runnable [0x15a4f000]
java.lang.Thread.State: RUNNABLE
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:404)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
- locked <0x0a27f8c8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:52)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:389)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:361)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-13" #51 prio=5 os_prio=0 tid=0x01066800 nid=0x13e0 runnable [0x156bf000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x0a00fd70> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-12" #50 prio=5 os_prio=0 tid=0x01066000 nid=0x11b0 runnable [0x1577f000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x0a00d030> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-11" #49 prio=5 os_prio=0 tid=0x01065c00 nid=0x19a0 runnable [0x1563f000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x09fca630> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-10" #48 prio=5 os_prio=0 tid=0x01065400 nid=0xde0 runnable [0x154ef000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x09fc63f0> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"DestroyJavaVM" #45 prio=5 os_prio=0 tid=0x01064c00 nid=0x196c waiting on condition [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Thread-36" #44 prio=5 os_prio=0 tid=0x01064800 nid=0x16f0 waiting on condition [0x1558f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-8" #41 prio=5 os_prio=0 tid=0x01064000 nid=0x114c runnable [0x150ef000]
java.lang.Thread.State: RUNNABLE
at java.net.DualStackPlainSocketImpl.available0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAvailable(DualStackPlainSocketImpl.java:155)
at java.net.AbstractPlainSocketImpl.available(AbstractPlainSocketImpl.java:485)
- locked <0x096ac0b8> (a java.net.DualStackPlainSocketImpl)
at java.net.SocketInputStream.available(SocketInputStream.java:238)
at java.io.BufferedInputStream.available(BufferedInputStream.java:410)
- locked <0x096ab3f8> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:426)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-32" #40 prio=5 os_prio=0 tid=0x01063c00 nid=0x1c60 waiting on condition [0x1538f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-7" #37 prio=5 os_prio=0 tid=0x01063400 nid=0x13e8 runnable [0x1521f000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x0969d5e8> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-28" #36 prio=5 os_prio=0 tid=0x01063000 nid=0x1a80 waiting on condition [0x1546f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-6" #33 prio=5 os_prio=0 tid=0x01062800 nid=0x1b6c runnable [0x153ef000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x0968e0d0> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-24" #32 prio=5 os_prio=0 tid=0x01062000 nid=0x1228 waiting on condition [0x1527f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-5" #29 prio=5 os_prio=0 tid=0x146e6800 nid=0x12dc runnable [0x14ecf000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x09685358> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-20" #28 prio=5 os_prio=0 tid=0x146e0c00 nid=0x1054 waiting on condition [0x1515f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-16" #24 prio=5 os_prio=0 tid=0x0119f800 nid=0x195c waiting on condition [0x1501f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-3" #21 prio=5 os_prio=0 tid=0x01194400 nid=0xf2c runnable [0x14d7f000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x09666a28> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-12" #20 prio=5 os_prio=0 tid=0x01176800 nid=0x24c waiting on condition [0x14f4f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-2" #17 prio=5 os_prio=0 tid=0x14847c00 nid=0x17d0 runnable [0x14e3f000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x09637198> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:416)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-8" #16 prio=5 os_prio=0 tid=0x1483b400 nid=0x1904 waiting on condition [0x1508f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Receiver-1" #13 prio=5 os_prio=0 tid=0x1482c400 nid=0x1ebc runnable [0x14f9f000]
java.lang.Thread.State: RUNNABLE
at java.net.DualStackPlainSocketImpl.available0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAvailable(DualStackPlainSocketImpl.java:155)
at java.net.AbstractPlainSocketImpl.available(AbstractPlainSocketImpl.java:485)
- locked <0x09640570> (a java.net.DualStackPlainSocketImpl)
at java.net.SocketInputStream.available(SocketInputStream.java:238)
at java.io.BufferedInputStream.available(BufferedInputStream.java:410)
- locked <0x09638800> (a java.io.BufferedInputStream)
at com.logica.smpp.TCPIPConnection.receive(TCPIPConnection.java:426)
at com.logica.smpp.ReceiverBase.receivePDUFromConnection(ReceiverBase.java:242)
at com.logica.smpp.Receiver.receiveAsync(Receiver.java:388)
at com.logica.smpp.ReceiverBase.process(ReceiverBase.java:129)
at com.logica.smpp.util.ProcessingThread.run(ProcessingThread.java:196)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-4" #12 prio=5 os_prio=0 tid=0x1482a800 nid=0x1cd8 waiting on condition [0x14ddf000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsSend_Smpp.SendSms(SmsSend_Smpp.java:303)
at MtsPreSms.SmsSend_Smpp.run(SmsSend_Smpp.java:98)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Thread-1" #9 prio=5 os_prio=0 tid=0x147f7400 nid=0x1dc4 waiting on condition [0x14d0f000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at MtsPreSms.SmsQueue.run(SmsQueue.java:182)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"Service Thread" #7 daemon prio=9 os_prio=0 tid=0x01040400 nid=0x1068 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"C1 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x01039000 nid=0xc94 waiting on condition [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x01046c00 nid=0x1d9c waiting on condition [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x01045c00 nid=0x1cb0 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" #3 daemon prio=8 os_prio=1 tid=0x01000800 nid=0x1ee8 in Object.wait() [0x03fdf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0956ed38> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:142)
- locked <0x0956ed38> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:158)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
Locked ownable synchronizers:
- None
"Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x00ffb800 nid=0x1ce8 in Object.wait() [0x144cf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0956eed8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
- locked <0x0956eed8> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
请帮助我了解您的改进建议。
最佳答案
看起来您的服务器端连接超时。可能是您的客户端由于没有发送任何失败消息而仍在等待响应。
JMX 服务器连接超时 56"#56 daemon prio=5 os_prio=0 tid=0x01068000 com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:168)
关于java - java.io.BufferedInputStream com.logica 上的高 CPU 负载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29915238/
IO 设备如何知道属于它的内存中的值在memory mapped IO 中发生了变化? ? 例如,假设内存地址 0 专用于保存 VGA 设备的背景颜色。当我们更改 memory[0] 中的值时,VGA
我目前正在开发一个使用Facebook sdk登录(通过FBLoginView)的iOS应用。 一切正常,除了那些拥有较旧版本的facebook的人。 当他们按下“使用Facebook登录”按钮时,他
假设我有: this - is an - example - with some - dashesNSRange将使用`rangeOfString:@“-”拾取“-”的第一个实例,但是如果我只想要最后
Card.io SDK提供以下详细信息: 卡号,有效期,月份,年份,CVV和邮政编码。 如何从此SDK获取国家名称。 - (void)userDidProvideCreditCardInfo:(Car
iOS 应用程序如何从网络服务下载图片并在安装过程中将它们安装到用户的 iOS 设备上?可能吗? 最佳答案 您无法控制应用在用户设备上的安装,因此无法在安装过程中下载其他数据。 只需在安装后首次启动应
我曾经开发过一款企业版 iOS 产品,我们公司曾将其出售给大型企业,供他们的员工使用。 该应用程序通过 AppStore 提供,企业用户获得了公司特定的配置文件(包含应用程序配置文件)以启用他们有权使
我正在尝试将 Card.io SDK 集成到我的 iOS 应用程序中。我想为 CardIO ui 做一个简单的本地化,如更改取消按钮标题或“在此保留信用卡”提示文本。 我在 github 上找到了这个
我正在使用 CardIOView 和 CardIOViewDelegate 类,没有可以设置为 YES 的 BOOL 来扫描 collectCardholderName。我可以看到它在 CardIOP
我有一个集成了通话工具包的 voip 应用程序。每次我从我的 voip 应用程序调用时,都会在 native 电话应用程序中创建一个新的最近通话记录。我在 voip 应用程序中也有自定义联系人(电话应
iOS 应用程序如何知道应用程序打开时屏幕上是否已经有键盘?应用程序运行后,它可以接收键盘显示/隐藏通知。但是,如果应用程序在分屏模式下作为辅助应用程序打开,而主应用程序已经显示键盘,则辅助应用程序不
我在模拟器中收到以下错误: ImageIO: CGImageReadSessionGetCachedImageBlockData *** CGImageReadSessionGetCachedIm
如 Apple 文档所示,可以通过 EAAccessory Framework 与经过认证的配件(由 Apple 认证)进行通信。但是我有点困惑,因为一些帖子告诉我它也可以通过 CoreBluetoo
尽管现在的调试器已经很不错了,但有时找出应用程序中正在发生的事情的最好方法仍然是古老的 NSLog。当您连接到计算机时,这样做很容易; Xcode 会帮助弹出日志查看器面板,然后就可以了。当您不在办公
在我的 iOS 应用程序中,我定义了一些兴趣点。其中一些有一个 Kontakt.io 信标的名称,它绑定(bind)到一个特定的 PoI(我的意思是通常贴在信标标签上的名称)。现在我想在附近发现信标,
我正在为警报提示创建一个 trigger.io 插件。尝试从警报提示返回数据。这是我的代码: // Prompt + (void)show_prompt:(ForgeTask*)task{
您好,我是 Apple iOS 的新手。我阅读并搜索了很多关于推送通知的文章,但我没有发现任何关于 APNS 从 io4 到 ios 6 的新更新的信息。任何人都可以向我提供 APNS 如何在 ios
UITabBar 的高度似乎在 iOS 7 和 8/9/10/11 之间发生了变化。我发布这个问题是为了让其他人轻松找到答案。 那么:在 iPhone 和 iPad 上的 iOS 8/9/10/11
我想我可以针对不同的 iOS 版本使用不同的 Storyboard。 由于 UI 的差异,我将创建下一个 Storyboard: Main_iPhone.storyboard Main_iPad.st
我正在写一些东西,我将使用设备的 iTunes 库中的一部分音轨来覆盖 2 个视频的组合,例如: AVMutableComposition* mixComposition = [[AVMutableC
我创建了一个简单的 iOS 程序,可以顺利编译并在 iPad 模拟器上运行良好。当我告诉 XCode 4 使用我连接的 iPad 设备时,无法编译相同的程序。问题似乎是当我尝试使用附加的 iPad 时
我是一名优秀的程序员,十分优秀!