Java profiling on Linux

I have a rather complicated Java application that uses a lot of CPU, and would like to know if there is any recommendation in the profile tool that I could use to determine the reason for using the CPU. My goal is to determine the location in the code where it uses most of the processor time.

+3
source share
6 answers

I used jProfiler and YourKit for Linux. But you can find the information you are looking for by running jconsolethat comes with the latest JDKs. Good info on how to use it: http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

+3
source

Netbeans . NB Ubuntu 9.10

, JVM ( ). JVM , JMS/JConsole . JMS/JConsole .

0

Visual VM Eclipse IDE. IDE, jhat jconsole. Google jhat

0

Eclipse, TPTP.

0

Sun Java 6, jvisualvm JDK , .

, .

0

, . .

Since you are not working in an IDE, you can use pstack or lsstack to get stack samples. If the application uses a lot more time than it should, then most likely the problem is one or more calls to the rogue function, which will be clearly visible on most samples of the stack.

-1
source

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


All Articles