Archive for Tháng Hai, 2013
How to dump java process
Go to your console or terminal app (terminal.app on Mac, cmd on Windows, command line console on Linux) and type in jps. Then you get a list of java processes and their IDs. If you are not running another java process, you should be able to figure out which one is for the your java process. Then type “jstack ” followed by the process ID and hit enter. That produces a dump of all the threads that are running in that Java process. That output would be quite useful to figure out why your java process is not run as expected.