Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to monitor the number of existing connections made by Apache to the different instances of JBoss in my *NIX server. How do I do that? If that tool or method gives me more info that would be great.

share|improve this question
up vote 1 down vote accepted

It sounds like you might be looking for a way to see all the outbound AJP connections from the Apache side. But if it helps, you can monitor this on the JBoss side instead. For example, the "scoreboard" view at http://yourjbossserver:8080/status?full=true shows a complete list of all AJP connections, with total bytes sent and received plus a few other goodies.

If you want to do it via scripting, you could use instead. For example (on a JBoss server):

$JBOSS_HOME/bin/ get "jboss.web:name=ajp-,type=ThreadPool" currentThreadsBusy

This would output:


(or whatever)

share|improve this answer
Hey thanks man. What is a good reference in your opinion for the twiddle script? – victor hugo Oct 3 '09 at 0:16
The command-line help is pretty good ( --help). You can find more on Google ;-). One document that turned up is at…. – Matt Solnit Oct 3 '09 at 4:27

supposing you are using mod_jk have a look at the status worker:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.