Analyzer java-allocation
Name
java-allocation - Java Runtime Allocation Slow-Path Sizes
This analyzer measures object allocations that enter HotSpot’s runtime allocation slow path and groups the retained samples by object size. The summary shows the number of retained samples, their minimum, average, and maximum sizes, the summed bytes in those samples, and the long-tail size buckets. Normal JIT-inlined TLAB allocations do not enter these probes, and max_samples also limits how many samples are kept, so this is not a complete heap-allocation census.
Resource Category
Memory.
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-allocation -p PID
# trace a shell command directly
orxray analyzer run java-allocation -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run java-allocation -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run java-allocation --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Histogram Bar Charts
- Plain Texts
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.