[jboss-user] [Beginner's Corner] - ajp session request remote address

Nathan Boyce do-not-reply at jboss.com
Tue Aug 31 13:19:57 EDT 2010


Nathan Boyce [http://community.jboss.org/people/nateboyce] created the discussion

"ajp session request remote address"

To view the discussion, visit: http://community.jboss.org/message/559863#559863

--------------------------------------------------------------
I'm looking for a way to pull the ajp session request remote address's without using the web console. Anyone know of a better way to pull ajp session request address? I dont want to run this on a  server with over 1000 active sessions because its going to run ("active session" + "1")  twiddle request and take minutes to finish.


#!/bin/bash 
 
HOST=localhost 
 
#script start 
res1=$(date +%s.%N) 
 
AJPCOUNT=$(/usr/local/jboss/bin/twiddle.sh -s $HOST  get  "jboss.web:name=ajp-0.0.0.0-8009,type=ThreadPool"  currentThreadCount   |awk -F\= '{print $2}') 
 
for X in $(seq 1 $AJPCOUNT); do /usr/local/jboss/bin/twiddle.sh -s  $HOST  get  "jboss.web:name=AjpRequest$X,type=RequestProcessor,worker=ajp-0.0.0.0-8009"  remoteAddr|awk -F\= '{print $2}';done |sort -n |uniq -c 
 
#script end 
res2=$(date +%s.%N) 
echo "Elapsed Time:  $(echo "$res2 - $res1"|bc )"

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/559863#559863]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100831/846c7d78/attachment-0001.html 


More information about the jboss-user mailing list