Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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 twiddle.sh instead. For example (on a JBoss server):

$JBOSS_HOME/bin/twiddle.sh 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 (twiddle.sh --help). You can find more on Google ;-). One document that turned up is at redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2/…. –  Matt Solnit Oct 3 '09 at 4:27

supposing you are using mod_jk have a look at the status worker: http://tomcat.apache.org/connectors-doc/reference/status.html

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.