On *ix (e.g., Aix, Unix, Linux), I would use something like lsof to query the operating system for the active connections to the AppServer ports.
Main Topics
Browse All TopicsHi 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
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
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.
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.
Business Accounts
Answer for Membership
by: HonorGodPosted on 2009-06-03 at 17:02:06ID: 24542559
What operating system are you using?