*
The moose likes Tomcat and the fly likes Viewing user connectivity & orphaned sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Viewing user connectivity & orphaned sessions" Watch "Viewing user connectivity & orphaned sessions" New topic
Author

Viewing user connectivity & orphaned sessions

ron fleming
Greenhorn

Joined: Jun 07, 2008
Posts: 5
(two separate topics/questions)

Is there anyway with Tomcat 4.1.18 to view how many users are connected to my web application at any given time?

Also, is there a general rule of thumb for how much memory an orphaned session uses? I have my inactivity timeout set to 30 minutes and I am wondering if my users are just closing the IE window without properly logging out, leaving an orphaned session in memory for 30 minutes.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
I would not worry about "orphan" sessions - Tomcat is allowed to serialize sessions to disk to manage memory. The minimum size session is tiny, memory use depends entirely on the references you store there - no generalization is possible.

The "manager" application for Tomcat will show you the number of active sessions - it is impossible to tell exactly the number of users "connected" but the number of active sessions will be the max. As I recall, the manager app was not part of the standard Tomcat 4 download for security reasons.

I upgraded from Tomcat 4 to 5 a number of years ago with no trouble.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Viewing user connectivity & orphaned sessions