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.