Analyzer java-exception
Name
java-exception - Java Exception Flame Graph
This analyzer samples Java call stacks when HotSpot dispatches an exception and renders a flame graph. Wider paths mean more observed exception-dispatch events, so Java developers can find the application methods that are repeatedly involved in exception handling. On the interpreter path it can also show the exception class at the graph root. It covers interpreter, C1, C2, and JVMCI dispatch paths when those paths exist in the running JVM.
Resource Category
Miscellaneous.
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-exception -p PID
# trace a shell command directly
orxray analyzer run java-exception -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run java-exception -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run java-exception --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Flame Graphs
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.