0

クライアント スレッド プールがいっぱいであるというこの問題が発生しています。クライアント JVM で作成されるスレッドの数に制限はありますか?

2012-11-12 10:09:54,206 [AWT-EventQueue-0] ERROR com.splwg.oms.client.util.ClientThreadPool:  The client thread pool is full
java.lang.Exception: Stack Trace:
                at com.splwg.oms.client.util.ClientThreadPool.dumpExtendedStack(ClientThreadPool.java:49)
                at com.splwg.oms.client.util.ClientThreadPool$MyRejectedHandler.rejectedExecution(ClientThreadPool.java:169)
                at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
                at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
                at com.splwg.oms.jbot.adapter.JBotAdapter.processCommands(JBotAdapter.java:652)
                at com.splwg.oms.jbot.adapter.JBotAdapter.processEvent(JBotAdapter.java:591)
                at com.splwg.oms.jbot.listener.JTableAdapterListener.valueChanged(JTableAdapterListener.java:106)
                at com.splwg.oms.jbot.listener.JTableAdapterListener.selected(JTableAdapterListener.java:41)
                at com.splwg.oms.jbot.component.JBotTable.fireJBotSelection(JBotTable.java:376)
                at com.splwg.oms.jbot.component.JBotTable.changeSelection(JBotTable.java:240)
                at javax.swing.plaf.basic.BasicTableUI$Handler.mouseDragged(Unknown Source)
                at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
                at java.awt.Component.processMouseMotionEvent(Unknown Source)
                at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
                at java.awt.Component.processEvent(Unknown Source)
                at java.awt.Container.processEvent(Unknown Source)
                at java.awt.Component.dispatchEventImpl(Unknown Source)
                at java.awt.Container.dispatchEventImpl(Unknown Source)
                at java.awt.Component.dispatchEvent(Unknown Source)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
                at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
                at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
                at java.awt.Container.dispatchEventImpl(Unknown Source)
                at java.awt.Window.dispatchEventImpl(Unknown Source)
                at java.awt.Component.dispatchEvent(Unknown Source)
                at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                at java.awt.EventQueue.access$000(Unknown Source)
                at java.awt.EventQueue$1.run(Unknown Source)
                at java.awt.EventQueue$1.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.awt.EventQueue$2.run(Unknown Source)
                at java.awt.EventQueue$2.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.awt.EventQueue.dispatchEvent(Unknown Source)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.run(Unknown Source)
2012-11-12 10:09:54,206 [AWT-EventQueue-0] ERROR com.splwg.oms.jbot.adapter.JDialogAdapter:  eventID = SelectPerform
java.util.concurrent.RejectedExecutionException
                at com.splwg.oms.client.util.ClientThreadPool$MyRejectedHandler.rejectedExecution(ClientThreadPool.java:170)
                at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
                at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
                at com.splwg.oms.jbot.adapter.JBotAdapter.processCommands(JBotAdapter.java:652)
                at com.splwg.oms.jbot.adapter.JBotAdapter.processEvent(JBotAdapter.java:591)
                at com.splwg.oms.jbot.listener.JTableAdapterListener.valueChanged(JTableAdapterListener.java:106)
                at com.splwg.oms.jbot.listener.JTableAdapterListener.selected(JTableAdapterListener.java:41)
                at com.splwg.oms.jbot.component.JBotTable.fireJBotSelection(JBotTable.java:376)
                at com.splwg.oms.jbot.component.JBotTable.changeSelection(JBotTable.java:240)
                at javax.swing.plaf.basic.BasicTableUI$Handler.mouseDragged(Unknown Source)
                at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
                at java.awt.Component.processMouseMotionEvent(Unknown Source)
                at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
                at java.awt.Component.processEvent(Unknown Source)
                at java.awt.Container.processEvent(Unknown Source)
                at java.awt.Component.dispatchEventImpl(Unknown Source)
                at java.awt.Container.dispatchEventImpl(Unknown Source)
                at java.awt.Component.dispatchEvent(Unknown Source)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
                at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
                at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
                at java.awt.Container.dispatchEventImpl(Unknown Source)
                at java.awt.Window.dispatchEventImpl(Unknown Source)
                at java.awt.Component.dispatchEvent(Unknown Source)
                at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                at java.awt.EventQueue.access$000(Unknown Source)
                at java.awt.EventQueue$1.run(Unknown Source)
                at java.awt.EventQueue$1.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.awt.EventQueue$2.run(Unknown Source)
                at java.awt.EventQueue$2.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                at java.awt.EventQueue.dispatchEvent(Unknown Source)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.run(Unknown Source)
4

1 に答える 1

2

これは、スレッド プールがタスクを追加するのと同じ速さで完了できないことを意味します。キューはスペースがなくなるまで増加し続けます。ソリューション:

  • より多くのスレッド (それを超えると改善されない制限があります)
  • より大きなまたは無制限のキュー (部分的な解決策であり、問​​題を遅らせるだけです)
  • より小さなタスク (最善の策)
于 2012-11-12T21:44:56.037 に答える