It is possible to generate Java thread dumps and monitor information by using jdb (included with the Sun JDK installation in (jdkroot)/bin)
Steps:
1. Configure the RI Stack to accept remote debugging connections by uncommenting these lines in mpeenv.ini:
- VMOPT.19=-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
- VMOPT.20=-Xdebug
2. Launch the RI
- cd $PLATFORMROOT
- ./runRI.sh
3. Wait for "Listening for transport dt_socket at address: 8000" in the output console 4. In a shell, run the jdb command:
- (jdkroot)/bin/jdb.exe -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=8000
5. Once jdb connects, type:
- resume
6. When monitor information or a thread dump is needed, type:
- suspend
7. To generate a thread dump, type:
- where all
8. To generate monitor information, type:
- threadlocks all