-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
线程池满问题排查 #838
Comments
nodeId: <test-zone00/test04.zone00.test.net:7788::1> ** Compaction Stats [default] **
|
-- <test-zone00/test04.zone00.test.net:7788::1> 6/1/22, 9:24:54 AM ============================================================= -- <test-zone00/test04.zone00.test.net:7788::1> -- Gauges ---------------------------------------------------------------------- -- <test-zone00/test04.zone00.test.net:7788::1> -- Histograms ------------------------------------------------------------------ -- <test-zone00/test04.zone00.test.net:7788::1> -- Timers ---------------------------------------------------------------------- |
6/1/22, 9:24:54 AM ============================================================= -- Timers ---------------------------------------------------------------------- |
Your question
随着系统的持续运行,com.alipay.sofa.jraft.storage.impl.LogManagerImpl#waitMap 运行一段时间后,开始出现慢慢变大的迹象,最终出现线程池满,任务被拒绝的报错,帮忙看是否哪儿参数设置的不正确。当前业务场景属于tps低,logEntry大。20s一次raft持久化,一个包大概3M左右。
报错信息:
2022-06-01T07:30:37.835491Z ERROR [JRaft-NodeImpl-Disruptor-0] util.LogExceptionHandler - [,-]Handle NodeImpl disruptor event error, event is com.alipay.sofa.jraft.core.NodeImpl$LogEntryAndClosure@585bf3be
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@30c71409[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@39070b4b[Wrapped task = com.alipay.sofa.jraft.storage.impl.LogManagerImpl$$Lambda$2178/0x0000000801df28b8@61cf0671]] rejected from com.alipay.sofa.jraft.util.MetricThreadPoolExecutor@5014d2b5[Running, pool size = 100, active threads = 100, queued tasks = 0, completed tasks = 361064]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2065) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:833) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1365) ~[?:?]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) ~[?:?]
at com.alipay.sofa.jraft.util.Utils.runInThread(Utils.java:172) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.storage.impl.LogManagerImpl.wakeupAllWaiter(LogManagerImpl.java:397) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.storage.impl.LogManagerImpl.appendEntries(LogManagerImpl.java:334) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.core.NodeImpl.executeApplyingTasks(NodeImpl.java:1401) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.core.NodeImpl.access$300(NodeImpl.java:140) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.core.NodeImpl$LogEntryAndClosureHandler.onEvent(NodeImpl.java:310) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.alipay.sofa.jraft.core.NodeImpl$LogEntryAndClosureHandler.onEvent(NodeImpl.java:290) ~[jraft-core-1.3.10.bugfix_2.jar!/:?]
at com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:168) [disruptor-3.4.2.jar!/:?]
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125) [disruptor-3.4.2.jar!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Describe your question clearly
Your scenes
Describe your use scenes (why need this feature)
Your advice
Describe the advice or solution you'd like
Environment
java -version
):uname -a
):The text was updated successfully, but these errors were encountered: