java - ThreadPoolExecutor.worker.run spends too much time -
i have several tasks executed in cachedthreadpool
. after profiling found task runs 10% of time , other 90% used threadpoolexecutor$worker.run
(i'm using jvisualvm
profiling).
and here i'm stuck. can't figure out hell threadpoolexecutor$worker.run
doing, why consumes time , how fix problem. need tasks run fast possible.
that's profiler says:
pool-2-thread-2 44542 ms (100%) java.util.concurrent.threadpoolexecutor$worker.run 44542 ms (100%) self time 39598 ms (88.9%) myclass.run 4943 ms (11.1%)
may self time
means thread sleeping?
thanks in advance. p.s. please sorry stupid, i'm not great java programmer.
Comments
Post a Comment