In general, I have a file running main.jar, I need to dump it to a file, there is a command:
jmap -F -dump <file> <pid> but it does not work correctly (displays an attachment error). How to call this command?
In general, I have a file running main.jar, I need to dump it to a file, there is a command:
jmap -F -dump <file> <pid> but it does not work correctly (displays an attachment error). How to call this command?
Many of the jdk tula with the -F flag use the serviceability of the agent, without one tricky property, it will fall if the jvm versions (up to the build versions) do not match. This refers to the jvm version of the target process and which starts the agent. Try without this flag, in this case the dynamic attach api will be used.
Source: https://ru.stackoverflow.com/questions/521657/
All Articles