Add a command-line tool to create a thread dump

Description

In supporting OpenNMS, we often find ourselves needing thread dumps, but getting one can be a pain as we have to explain to the user how to find the right version of jstack (must be the one accompanying the OpenNMS JDK), how to determine the PID, and so on. Why not put all this logic into a script?

I've written one that does all this footwork for us, writes the thread dumps into time-stamped files, and automagically cleans up thread dump files older than a configurable age (default: 2 hours). It's suitable for running from a cron job and can be combined with a test for the existence of a trigger file to make it easy to turn dumps on and off.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Ronny Trommer February 19, 2018 at 3:35 PM
Edited

I don't understand how this got into develop without a PR and a merge comment in this issue? Ah found the PR by search for the JIRA number, thanks for adding it in Git It is in develop and 21.0.5 and foundation the issue is just still open?

Seems like this is the PR related to this issue: https://github.com/OpenNMS/opennms/pull/1868

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

PagerDuty

Created February 14, 2018 at 10:20 PM
Updated July 31, 2019 at 1:45 PM
Resolved July 31, 2019 at 1:45 PM