I'm considering whipping up a script to
- run once a minute (or every five minutes)
- run jstack against a running JVM in production
- parse the jstack output and tally up things I'm interested in
- export the results for graphing 24/365 by a centralized Cacti installation on another server
But I've no clue as to how expensive or invasive jstack is on a running JVM. How expensive is it to execute jstack on a running JVM? Am I setting myself up for a world of hurt?