Is there a remote profiler for Java? (which preferably uses JMX)

I am trying to fix a memory leak problem for my standalone Java program that runs on unix. I have port and parameter settings so that I can connect to it using JMX with JConsole or VisualVM.

This helps a little, but, unfortunately, it does not tell you where the memory went, it only tells you how much memory is used. I am looking for a more detailed profiler to help me find objects that absorb my memory. Does anyone have any idea? Preferably, when it comes to the JMX port, so I do not need to reconfigure the program. Thanks!

+3
source share
4 answers

If the machine in question is installed with X11 client libraries, as well as an accessible ssh server that allows X11 forwarding, and an X11 server running on your local computer (possibly http://sourceforge.net/projects/xming/ ) And you use Sun Java 6u10 or later, you can ssh (with -X or -Y) into the Linux box and run jvisualvm there, showing your GUI on your local computer.

Working on one computer allows jvisualvm to connect directly to a running Java process, and not perform all kinds of voodoo configurations.

+3
source

NetBeans Java Profiler supports remote JVM profiling. You can connect NetBeans to a remote JVM using JMX.

A , JavaPassion , .

+1

YourKit .

JMX.

0

Um... , VisualVM , , , (, ) .

" " "" !

0

Source: https://habr.com/ru/post/1718412/


All Articles