During JVM stop, few of the thread pool
are not getting closed properly. Due to this Perm Gen leak
happens as class loader is restricted from being Garbage collected.
These thread pool are opened by 3rd party application (Elasticsearch) and I do not have any direct control over it other than client
instance.
client
instance do provide methods for shutting down
the scheduler
and thread pool
but this error is not getting rectified. '
Please help. Is there any way we can get instance of 3rd Parties
ScheduledThreadPoolExecutor
and shutdown it through Java application?