简体   繁体   中英

Can I get heap dump of a java process from a remote server without jdk installed?

我有一台带有 JRE 的服务器,我需要获取堆转储,而不挂起应用程序,有没有办法做到这一点?

jattach utility can do that.
It works without JDK installed.

jattach <pid> dumpheap /path/to/dump.hprof

Note: JVM will be paused while dumping the heap. As soon as the dump is completed, application will resume.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM