Replies: 1 comment 1 reply
-
This class is in skywalking-java repo. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently encountered the class
org.apache.skywalking.apm.util.ThreadPoolHolder
in a Java heap dump analysis. This class contains a static field:static java.util.HashMap EXECUTOR_MAP;
This map appears to hold references to objects, including classes that were dynamically reloaded. However, after these dynamically loaded classes were no longer in use, they were still retained in memory due to being referenced within EXECUTOR_MAP. This prevents garbage collection and leads to increased memory usage.
I tried searching for ThreadPoolHolder in the SkyWalking GitHub repository but couldn’t locate the source code for this class.
Could you please provide information on where to find the source code for org.apache.skywalking.apm.util.ThreadPoolHolder? Additionally, if this class is responsible for managing thread pools, is there a recommended way to clear stale references from EXECUTOR_MAP to allow proper garbage collection?
Beta Was this translation helpful? Give feedback.
All reactions