list_java_processes
Retrieves all running Java processes with PID, main class, and arguments. Use this to identify the target process for profiling or thread analysis.
Instructions
Lists all running Java processes on the machine. Returns an array of objects with pid, mainClass, and args. Use this tool first to discover the target process PID before calling start_profiling or analyze_threads. Data is obtained via jps -l -m.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Maximum number of processes to return in the list. Default: 10. Use higher values if many Java processes are running. |