This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Viewing user connectivity & orphaned sessions

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic