- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序批处理作业挂起,日志中没有任何错误。当作业挂起时,将不会有数据库更新或插入,我也可以同时看到数据库 block 。系统中什么也没发生,一切似乎都卡住了。请参阅我在发布期间获取的完整线程转储。请帮助我了解这是否是代码问题或任何外部因素导致批处理作业挂起。作为临时解决方法,我有时会终止数据库 block 或重新启动 java 包装器服务。很多时候确实让用户很沮丧。非常感谢。
2013-05-14 06:29:37
Full thread dump Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode):
"Thread-35184" - Thread t@70107
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at com.ocs.util.Timer.run(Unknown Source)
Locked ownable synchronizers:
- None
"RMI TCP Connection(5)-153.88.251.56" - Thread t@70104
java.lang.Thread.State: RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:374)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:167)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:96)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:33)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
at javax.management.StandardMBean.invoke(StandardMBean.java:391)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@7e8ed1b5
"JMX server connection timeout 70101" - Thread t@70101
java.lang.Thread.State: TIMED_WAITING on [I@38a76cf2
at java.lang.Object.wait(Native Method)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:150)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI Scheduler(0)" - Thread t@70099
java.lang.Thread.State: TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@77e1a0ec
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69553
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@63f916cb
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69549
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@76479cb3
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69545
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@5780e86f
"Batch Lane Thread (JobName - PROCESS_BATCH_UPGRADES QueuePubID - MU)" - Thread t@69541
java.lang.Thread.State: TIMED_WAITING on java.util.concurrent.FutureTask$Sync@4eeaceb6
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1011)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:251)
at com.ocs.poetic.batch.BatchJobProcess.processEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.processEvent(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@501bfc4a
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU" - Thread t@69431
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.inet.tds.w.b(Unknown Source)
at com.inet.tds.k.d(Unknown Source)
at com.inet.tds.k.a(Unknown Source)
at com.inet.tds.k.b(Unknown Source)
at com.inet.tds.k.a(Unknown Source)
at com.inet.tds.k.a(Unknown Source)
at com.inet.tds.af.a(Unknown Source)
- locked com.inet.tds.an@5d50875c
at com.inet.tds.u.executeQuery(Unknown Source)
at com.ocs.framework.transactpersist.sql.PoeticPreparedStatement.executeQuery(Unknown Source)
at com.ocs.framework.transactpersist.jdbc.JDBCDataAccess.executeStatement(Unknown Source)
at com.ocs.framework.transactpersist.RelationalEntityPersistence.restoreEntity(Unknown Source)
at com.ocs.framework.transactpersist.Entity.restore(Unknown Source)
at com.ocs.framework.transactpersist.Entity.restore(Unknown Source)
at com.ocs.poetic.activation.UpgradeActivationUtil.updateValidateEntitlementList(Unknown Source)
at com.ocs.poetic.activation.UpgradeActivationUtil.updateValidationProductMsg(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
- locked java.lang.Object@7e0c2370
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@51e6d8e0
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU" - Thread t@69427
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.rollbackEntitlementData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@aa88422
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU" - Thread t@69376
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@3d7ad9a5
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU" - Thread t@69372
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@4c66ff2b
"Batch Lane Thread (JobName - PROCESS_BATCH_UPGRADES QueuePubID - SU)" - Thread t@69368
java.lang.Thread.State: TIMED_WAITING on java.util.concurrent.FutureTask$Sync@19a93734
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1011)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:251)
at com.ocs.poetic.batch.BatchJobProcess.processEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.pollEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.processEvent(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@7dfa873c
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69341
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@4ac4b4c1
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69337
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@38371140
"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESMU" - Thread t@69333
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370 owned by: Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU
at com.ocs.poetic.activation.BatchUpgradeProcess.prepareBatchUpgradeData(Unknown Source)
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at com.ocs.poetic.batch.BatchJobDetailProcess.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@274d9d95
"Batch Lane Thread (JobName - PROCESS_BATCH_UPGRADES QueuePubID - MU)" - Thread t@69329
java.lang.Thread.State: TIMED_WAITING on java.util.concurrent.FutureTask$Sync@34674415
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1011)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:251)
at com.ocs.poetic.batch.BatchJobProcess.processEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.pollEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.processEvent(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@257e96d4
"Batch Lane Thread (JobName - PROCESS_BATCH_UPGRADES QueuePubID - SU)" - Thread t@69292
java.lang.Thread.State: TIMED_WAITING on java.util.concurrent.FutureTask$Sync@67a6d993
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1011)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:251)
at com.ocs.poetic.batch.BatchJobProcess.processEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.pollEventDetails(Unknown Source)
at com.ocs.poetic.batch.BatchJobProcess.process(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.processEvent(Unknown Source)
at com.ocs.poetic.batch.BatchJobLane.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@19e04b87
"Batch Queue Thread (PROCESS_BATCH_UPGRADES)" - Thread t@69288
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at com.ocs.poetic.batch.BatchJobQueue.checkLaneStatus(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.processEvents(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@547e9956
"Batch Queue Thread (PROCESS_BATCH_UPGRADES)" - Thread t@69284
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at com.ocs.poetic.batch.BatchJobQueue.checkLaneStatus(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.processEvents(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@43850870
"Batch Queue Thread (PROCESS_BATCH_UPGRADES)" - Thread t@69280
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at com.ocs.poetic.batch.BatchJobQueue.checkLaneStatus(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.processEvents(Unknown Source)
at com.ocs.poetic.batch.BatchJobQueue.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- locked java.util.concurrent.locks.ReentrantLock$NonfairSync@52ed13b1
"AWT-Windows" - Thread t@10846
java.lang.Thread.State: RUNNABLE
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:293)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Java2D Disposer" - Thread t@7165
java.lang.Thread.State: WAITING on java.lang.ref.ReferenceQueue$Lock@7b16770e
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at sun.java2d.Disposer.run(Disposer.java:127)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Sequence ID Retriever Thread" - Thread t@116
java.lang.Thread.State: WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@7fe27743
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:317)
at com.ocs.framework.server.AppServerThreadPoolExecutor.getTask(Unknown Source)
at com.ocs.framework.server.AppServerThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
at com.ocs.framework.server.AppServerThread.run(Unknown Source)
Locked ownable synchronizers:
- None
"QuartzScheduler_PoeticBGScheduler-esessmw0521.ss.sw.ericsson.se:5866_MisfireHandler" - Thread t@108
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run(JobStoreSupport.java:3840)
Locked ownable synchronizers:
- None
最佳答案
您的许多线程正在等待相同的锁java.lang.Object@7e0c2370
:
java.lang.Thread.State: BLOCKED on java.lang.Object@7e0c2370
由
持有"Batch Job Detail ThreadPROCESS_BATCH_UPGRADESSU" - Thread t@69431
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
...
- locked com.inet.tds.an@5d50875c
at com.inet.tds.u.executeQuery(Unknown Source)
...
- locked java.lang.Object@7e0c2370
at com.ocs.poetic.activation.BatchUpgradeDetailProcess.process(Unknown Source)
...
因此,后一个线程似乎在持有锁的同时从套接字读取数据,这会阻止所有其他线程取得进展。
关于java.lang.Thread.State : BLOCKED on java. lang.Object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16885201/
完成此任务的最佳方法是什么:主线程(线程 A)创建另外两个线程(线程 B 和线程 C)。线程 B 和 C 执行繁重的磁盘 I/O,最终需要将它们创建的资源传递给线程 A,然后调用外部 DLL 文件中的
我是一名对 Julia 语言感兴趣的新手程序员。文档( https://docs.julialang.org/en/v1/base/multi-threading/ )说 Threads.@threa
python中的thread.start_new_thread和threading.Thread.start有什么区别? 我注意到,当调用 start_new_thread 时,新线程会在调用线程终止
我正在学习安卓蓝牙编程。我从 Google 的 Android 开发者网站上复制了大部分代码以供学习。这个想法是监听服务器上的连接是在一个新线程中完成的,而不会阻塞 UI 线程。当收到连接请求时,连接
执行对象方法的线程是否依赖于创建它的线程上的线程? 假设您的 java 应用程序中有两个线程 Thread1 和 Thread2,以及两个类 ClassA 和 ClassB。 您在 Thread1 上
我正在用这段代码测试 C++11 线程,但是在创建线程时,我遇到了错误没有匹配函数调用 'std::thread::thread()'. 这就像我给 std::thread ctr 的函数有什么问题,
我有如下类 eventEngine 和网关: class eventEngine { public: eventEngine(); std::thread threa; std
我需要运行与列表 dirlist 中的元素一样多的 Observer 类线程。当我运行它 python 控制台时,它可以正常工作。 class Observer(Thread): def ru
我在一本 Java 书中读到了下面的代码。我知道主类默认继承 Thread 类,所以 currentThread();而不是 Thread.currentThread();也会做这项工作。 但我不明白
我在我的系统中使用第 3 方 API,该 API 启动一个永久运行的用户线程。一旦我的程序结束,JVM 由于该线程而继续运行,因此我尝试获取此线程引用并通过更改它 thread.setDaemon(t
我所知道的 Python 中的每个对象都可以通过调用来处理其基类初始化: super(BaseClass, self).__init__() threading.Thread 的子类似乎不是这种情况,
在我最近从事的 Xamarin 项目中,我可以看到开发人员使用了 Java.Lang.Thread 以及 System.Threading.Thread(用于非常相似的操作 - 例如在后台加载数据)。
我在 Julia 中运行双循环。代码非常简单。 w = rand(1000,1000) function regular_demo(w::Array{Float64, 2}) n = size
我在 Windows 上使用 Python 3。我正在使用 threading.Thread动态运行一个函数,我可以带参数或不带参数调用它。我正在设置一个列表,其中的第一项是定义路径的字符串。其他参数
我遇到了一些使用线程模块(使用 Python 2.6)管理线程的示例。 我想了解的是这个例子是如何调用“运行”方法的,在哪里调用的。我在任何地方都看不到它。 ThreadUrl 类在 main() 函
假设我从 threading.Thread 派生: from threading import Thread class Worker(Thread): def start(self):
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and th
使用 WinDbg 和 SOS,我有以下内容: 0:011> !threads ThreadCount: 7 UnstartedThread: 0 BackgroundThread: 4 Pendin
App Engine 给出错误: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call urlfe
我正在尝试将 Swing JEditorPane 嵌入到 JavaFX 项目中,如下代码所示。 Platform.runLater(() -> { SyntaxTester ob = new
我是一名优秀的程序员,十分优秀!