Creating a Real-Time Profiling Task
Real-time profiling is to analyze the target Java virtual machine (JVM) and Java programs. Specifically, the tool analyzes the heap, GC activities, thread status, and performance of upper-layer Java programs, and provides information such as call chain analysis results, hotspot functions, lock analysis results, program thread status, and object distribution. It obtains JVM running data in real time using the agent for precise analysis. For details, see 1.
Prerequisites
- A target environment has been added and is online.
- The JDK must be JDK 8 or later.
If the Java Profiler was deployed by an OS administrator and you want to perform real-time profiling on a Java process that was not created by an OS administrator, ensure that the JDK running the Java process is JDK 8 or later, and configure the JAVA_HOME environment variable in the non-interactive shell. For details, see Configuring the JDK.
Procedure
- In the navigation tree on the left, select a target environment from the environment list under Java Profiler > Target Environments. In the Java Processes on the right, select the Java process to be analyzed, or enter a process ID or process name in the search box to search for the Java process. See Figure 1 and Figure 2.
You can click
next to Java Profiler to import a downloaded report and perform verification during the import.
- On the left area of the Java Profiler, the Tasks/Reports list displays the reports imported by the DevKit user. The Task/Report List area on the right displays the task status and exported reports of the selected environment.
- Java processes in containers can be analyzed, and Java applications in pods can be analyzed remotely (when Kubernetes compute nodes are not connected).
- Container processes can be filtered by namespace. If the namespace value is - -, there is no namespace. If the pod value is - -, there is no pod.
- Click Real-Time Profiling.The Overview tab page is displayed. See Figure 3.
Real-time profiling has a certain negative impact on the profiled process. The impact depends on the resources occupied by the process and the process execution logic.
After a real-time profiling task is created, you can click buttons next to the process name to perform corresponding operations.- Click
to configure the real-time data limits.
- The administrator devadmin has the modify and view permissions, and common users have only the view permission.
- You can also click
in the upper right corner of the page and then choose Tool Configuration > Java Profiler to modify the configuration.
- An overview of tuning suggestions on all tab pages is displayed next to
. Click View Details to see the detailed tuning suggestions. - Click
to export required data analysis report. - Click Clear Data and select All or Current Page from the drop-down list to clear the analyzed data.
- Click
- Click Stop Analysis to the right of the process name to stop the analysis task. See Figure 4.
After the analysis task is stopped, you can click Restart to the right of the process name to restart the analysis task. See Figure 5.
Restarting an analysis task will clear the analyzed data. Exercise caution when performing this operation.




