4 ms·
Have you tried VisualVM [0,1,2]? I've found it pretty easy to use. I'm not sure how helpful it will be for native memory, however (likely not much!). [0]: http
by wlkr 7y ago
Have you tried VisualVM [0,1,2]? I've found it pretty easy to use. I'm not sure how helpful it will be for native memory, however (likely not much!).
[0]: https://visualvm.github.io/ https://visualvm.github.io/
[1]: https://en.wikipedia.org/wiki/VisualVM https://en.wikipedia.org/wiki/VisualVM
[2]: https://visualvm.github.io/ https://visualvm.github.io/
- jillesvangurp 7y agoAnother tool for this is jvmtop, https://github.com/patric-r/jvmtop https://github.com/patric-r/jvmtop I've used this a couple of times to profile running servers. Not perfect but it lets you profile memory and cpu usage. Visualvm is a PITA to get working over ssh.
- brabel 7y agoThat's the oldest tool in the Java dev toolbox... but it only shows heap usage and metaspace. Also, after Java 9+ they seem to have retired jvisualvm and the tool to use now is https://wiki.openjdk.java.net/display/jmc/Main https://wiki.openjdk.java.net/display/jmc/Main
- kevinherron 7y agoVisualVM is still being developed: https://visualvm.github.io https://visualvm.github.io
- brabel 7y agoYeah, I saw that... last release was just a few days ago... I thought that since the Java standard distribution stopped shipping it, it would just die off and JMC would become the new standard tool... knowing that it's still alive makes me very happy, especially after Oracle fired the whole team working on JMC[1] immediately after open-sourcing it.. However, in the VisualVM downloads page[2], they say: "VisualVM has also been distributed in Oracle JDK 6~8 as Java VisualVM. It has been discontinued in Oracle JDK 9. See the Upgrading Java VisualVM page to learn how to upgrade to the latest VisualVM." That's confusing wording: it sounds like they did "discontinue" something... I think they mean it just stopped being bundled with the JVM, which is not the same thing as discontinuing it. [1] https://www.infoq.com/news/2018/06/open-source-jmc/ https://www.infoq.com/news/2018/06/open-source-jmc/ [2] https://visualvm.github.io/download.html https://visualvm.github.io/download.html