Here's a script to gather AJP thread usage from a farm of tomcat servers, in my case I needed to query 120 tomcat instances spread over 30 servers. It uses a freely avaiable JMX command line client to query the currentThreadsBusy of the JVM. There are perhaps more elegant solutions to do this, I needed [...]

