Rate This Document
Findability
Accuracy
Completeness
Readability

Java Profiler Functions

The Java Profiler analyzes and optimizes the performance of Java applications running on the Kunpeng platform. The tool identifies hotspot functions, locates performance bottlenecks, and provides tuning suggestions.

Prerequisites

  • The Java Profiler has been installed. See Installing the Tool.
  • If you have installed the tool using a compressed package, decompress the package and switch to the tool directory. Then run the command in ./ mode, for example, ./devkit java-perf -h. If you have installed the tool using an RPM package, run devkit java-perf -h. This section uses an RPM package as an example.

Command Function

Collects statistics on hotspot methods in the current JVM and displays the statistics in flame graphs and inverted flame graphs.

Syntax

1
devkit java-perf [-h | --help] TASK [ARGS]

Example

View the information about Java performance analysis functions:

1
devkit java-perf -h

Command output:

1
2
3
4
5
6
7
 Usage: devkit java-perf [-h | --help] TASK [ARGS]

 The most commonly used devkit java sub tasks are:
   help      Get help information
   hotspot   Run the hotspot collection and analysis task

 See 'devkit java-perf TASK --help' for more information on a specific task.
Table 1 Function description

Subcommand

Function

Description

help

Displays help information.

-

hotspot

Java application hotspot analysis.

The tool collects stack information about CPU, CYCLES, LOCK, CACHE_MISSES, and ALLOC events at certain points of time, collects statistics on hotspot methods in the current JVM, and displays the information in a flame graph and an inverted flame graph.