Dumping gateway threads

If you’re on a recent-ish 8.1.X version, system.util.threadDump will be a JSON-formatted dump that’s friendlier to parse (e.g., shameless plug, via Kindling).