Skip to main content
The old link is dead. The answer isn't self-contained, but the link is a valuable article with an enormous amount of relevant info.
Source Link

Yes, take a look at getting a list of threadsgetting a list of threads. Lots of examples on that page.

That's to do it programmatically. If you just want a list on Linux at least you can just use this command:

kill -3 processid 

and the VM will do a thread dump to stdout.

Yes, take a look at getting a list of threads. Lots of examples on that page.

That's to do it programmatically. If you just want a list on Linux at least you can just use this command:

kill -3 processid 

and the VM will do a thread dump to stdout.

Yes, take a look at getting a list of threads. Lots of examples on that page.

That's to do it programmatically. If you just want a list on Linux at least you can just use this command:

kill -3 processid 

and the VM will do a thread dump to stdout.

Source Link
cletus
  • 626.9k
  • 169
  • 922
  • 945

Yes, take a look at getting a list of threads. Lots of examples on that page.

That's to do it programmatically. If you just want a list on Linux at least you can just use this command:

kill -3 processid 

and the VM will do a thread dump to stdout.