Here's how it can be done:
From a terminal/console: (all OSes)
First we need the java process's PID.
The JDK ships with the jps utility which lists all java process ids. It's under the bin/ folder.
You can run this command:
Code: Select all
jps -lCode: Select all
9048 sun.tools.jps.Jps
8434 com.smartfoxserver.v2.MainThen we used another JDK utility called jstack, this way:
Code: Select all
jstack 8434More on these tools:
http://docs.oracle.com/javase/1.5.0/doc ... e/jps.html
http://docs.oracle.com/javase/1.5.0/doc ... stack.html
[/size]
Last update, Nov 27th 2012