When JVM creates dumps except memory

I need it now when jvm creates hprof dumps other than memory situations. For example, does hprof generate on high CPU usage? I can see that hprof files are being generated and there is no memory situation.

+2


a source to share


3 answers


I automatically create a heap dump only when it doesn't work and if it was configured to do so at startup (e.g. -XX: -HeapDumpOnOutOfMemoryError for Sun JVM) ...

But you can also send a signal to the JVM to request a dump (like kill -Quit pid) on tanning salons ...



So it depends on OS and JVM, but it is possible to request a dump ...

0


a source


In trick, the JVM creates a core dump when the native library dumps calculus.



0


a source


What command line JVM parameters are passed when the application starts? There are many HPROF variants; some, for example cpu=samples

, write out a dump file every time the JVM exits.

0


a source







All Articles