When debugging it becomes necessary to dump the thread state of the application, this is usually to find a deadlock, lock contention or leaking connections.
When debugging it becomes necessary to dump the thread state of the application, this is usually to find a deadlock, lock contention or leaking connections.
- Java:
- kill -HUP
- stdout
- application log file that captures stdout
- kill -3
- stdout
- application log file that captures stdout
- JDK based, the JRE does not install these programs
- jstack > dump.txt
- output is always to stdout, regardless of the logging configuration
- jvisualvm
- UI based, has many other features
- kill -HUP