Sandeep Jindal
Sandeep Jindal

Reputation: 15368

Generating Thread Dump on Sun JDK with Timestamp

I need to generate the Thread dumps on Sun Solaris machine for my application which is using Sun's Java5. I am generating Thread Dump using the following command:

kill -QUIT pid

But the thread dumps generated using this does not log the timestamp when the dump has been taken. This is creating problem if I take multiple thread dumps.

Can you please suggest how to get the timestamp with the thread dumps?

Upvotes: 0

Views: 1984

Answers (1)

Nikunj
Nikunj

Reputation: 3128


You can use VisualVM utility provided in JDK 6.0. You can connect to your Java5 application using visualvm and can get/compare thread dump, memory dump etc.

Upvotes: 1

Related Questions