How can i create a heap dump from within my application, without using the class HotSpotDiagnosticMXBean.
Due to access restriction of java/rt.jar i am not able to compile it with a dependency to HotSpotDiagnosticMXBean. I know how solve the eclipse.compiler error, but how can i fix it for my build?
Is there an alternative to way to create a heap dump programmatically?
- This solution doesn’t work, because of it’s HotSpotDiagnosticMXBean dependency: HotSpot-dependent Heap Dump
Okay,seems like you can bypass the restriction by using reflection :