any idea how do generate a java heapdump without JDK? I'm able to obtain the processid but I don't have access to the machine directly and there's no JDK installed.
You can alternatively use the JVM parameter -XX:+HeapDumpOnCtrlBreak and send a SIGQUIT signal (-3 kill for Unix and Ctrl-Break for Windows) to the running Java process – the signal will also create a heapdump without aborting the JVM
Is there an easier way? and how can I send a SIGQUIT to the process?
Thank you for your help
If you still have access via SSH/telnet you could use:
kill -QUIT <pid>
as you described in you quotation.
Other option in to access the application via JMX, ie jconsole or jvisialvm
To use JMX you need enabled JMX via the command line of the application
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.