How to collect a thread dump

Created by Steve Place, Modified on Fri, Jun 6 at 11:18 AM by Steve Place

Thread dumps show what operations Stardog is performing at the time they're collected. They're very useful for troubleshooting a very slow or unresponsive server. Make sure to collect them while you're experiencing that slowness/unresponsiveness - if you collect it while the server is idle, it will contain no useful information.


There are two ways to collect a thread dump:

  1. Run stardog-admin server metrics --threads "jvm.threads"
  2. Use jstack.
    1. In your new terminal window, run ps aux | grep stardog to find Stardog's PID (process ID).
    2. Collect the thread dump with jstack -l <PID> > thread-dump.txt, replacing "<PID>" with the process ID you found in the previous step.

Once you've collected your thread dump, create a support ticket and attach the thread dump to it.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article