We have a distributed Web application deployed in Tomact server.We are trying to find out the no of active session per server for a given period of time.
Could you please let me know if we can find it out by using some tool or by programatically..
Update: Just struck me that if you're already running a production cluster, then it's likely you're already using a system monitoring tool like collectd / nagios / ganglia, etc.
If so, they will very likely have plugins to get JMX data and graph it (I know for sure that collectd does...google says ganglia and nagios can too).
Abhishek Rath wrote:In our case many web applications are deployed in each server.So does JMX+Jconsole provide the count per server or per web apps
Each tomcat has 1 JMX agent running, which provides session counts for every individual webapp running in that tomcat instance.
Try out with jconsole - you'll understand easily. It'll show a node under Manager for each webapp, and each node reports an 'activeSession' variable.