Analyzer java-class-loading

java-class-loading: Java Class Loading and Initialization.

Name

java-class-loading - Java Class Loading and Initialization

This analyzer watches the main HotSpot class pipeline: finding and loading a class, reading its class file, linking it with its superclasses and interfaces, and running class initialization. It produces a bar chart of completed pipeline events and separate duration histograms for loading, parsing, linking, and initialization, so Java developers can see which phase is taking time during startup or warmup.

Resource Category

Latency.

Application Type & Technical Stack

  • Java

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run java-class-loading -p PID

# trace a shell command directly
orxray analyzer run java-class-loading -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run java-class-loading -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run java-class-loading --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Bar Charts
  • Histogram Bar Charts
  • Plain Texts

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.