Analyzer java-network-io
java-network-io: Java Socket I/O Flame Graph.
Name
java-network-io - Java Socket I/O Flame Graph
This analyzer shows which Java methods read from and write to TCP or UDP sockets. The flame graph groups socket operations by Java call path. Its metric can mean number of I/O calls, bytes transferred, or time spent inside the kernel handling the socket operation.
Resource Category
Network I/O.
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-network-io -p PID
# trace a shell command directly
orxray analyzer run java-network-io -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run java-network-io -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run java-network-io --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.