Question : How to count the amount of open sessions on Webshere

Hi experts,

I support a solution that inlcudes an IBM Websphere 6 application server.  I wish to count the number of live/open/active sessions open on the application server.  How do I achieve this?

Basically I want to know how many users are active on the server.

Preferable, the method needs to be as easy and quickly as possible so that I could task a very junior resource to check and monitor the session count every 30 minutes or so.

Thank you

Answer : How to count the amount of open sessions on Webshere

How accurate a measurement do you need?

- Really accurate?
  Change your application to count & track active sessions

- Accurate?
  You could use the Performance Monitoring Infrastructure (PMI)
  http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/cprf_pmidata.html

  to analyze all sorts of stuff going on in your AppServer.


- Quick and easy approximation?
  You could filter the output of "netstat -an", looking for "ESTABLISHED" connections to your AppServer.  Remembering that when a session is complete, there is a likely to be a delay between the the session is closed, and when the TCP/IP socket state changes to CLOSE_WAIT.
Random Solutions  
 
programming4us programming4us