F
F
Fairlancer2016-05-09 11:19:35
Java
Fairlancer, 2016-05-09 11:19:35

How to properly dump a process in JVM?

In general, I have a running main.jar file, I need to dump it into a file, there is a command:
jmap -F -dump <file> <pid>
but it does not work correctly (it displays an attachment error). How to correctly call this command?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alexandrov, 2016-05-19
@kursorik2

docs.oracle.com/javase/7/docs/technotes/tools/shar...

NOTE: This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgeng.dll is not present, 'Debugging Tools For Windows' needs to be installed to have these tools working. Also, PATH environment variable should contain the location of jvm.dll used by the target process or the location from which the Crash Dump file was produced.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question