How to view memory usage and thread dump of Java programs from the command line?

Are there any known command - line tools that require the JVM to view Java program memory usage and thread dumps Like headless JVM?

Solution

You can use jstat to get GC information, jstack to get stack traces, and jmap to get memory statistics and memory dumps for offline checking

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>