This application discloses a method, apparatus, storage medium, and
computer device for
Java program performance analysis. The method includes: based on the target process ID and installation path information, invoking Linux native commands of the
Java program to execute a first
processing task, a second
processing task, and a third
processing task in parallel. The first processing task is used to determine the target thread, the second processing task is used to determine a thread snapshot of the
Java program, and the third processing task is used to determine the fully qualified name of the loaded class of the
Java program. The method further involves filtering the thread stack information in the thread snapshot according to the thread information of the target thread, the fully qualified name of the loaded class, and the target
package name to determine the exception class; decompiling the exception class to obtain the exception code of the
Java program; and highlighting the exception code in the
Java program's code display interface. This method can accurately locate
system performance leaks without intruding on native programs.