New version is available
JxBrowser 7 support ends in October 2025, covering Chromium updates and critical fixes. We recommend you to upgrade to JxBrowser 8 to benefit from the new features and improvements. If you have any questions or need assistance with the upgrade, please feel free to contact us.
List icon Contents

Collecting JVM thread dumps

This guide describes how to generate JVM thread dumps.

Step 1: Getting PID

Find out the PID of the Java process.

macOS/Linux

ps -el | grep java

Windows

Press Ctrl+Shift+Esc to open Task Manager and find the PID of the Java process.

Step 2: Generating thread dump

Use jstack to print the thread dump to the command line:

jstack -l <pid>

You can save thread dumps for multiple processes into a single file. Redirect the jstack output using the output redirection:

jstack -l <pid> >> threaddumps.log