• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how much memory used by session?

 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm guessing there's no way to really find this out without getting your hands into one of the profiling tools out there, but in case there is, is there any way to find out about how much memory a session is using? If not, then how about a way to find out the number of sessions that are active, since I can try to divide the total memory used by that (or rather, I suppose I can divide the increase in memory usage by the number of sessions that were added in that time).

If I had to get my hands on a profiler, does anyone have any recommendations? JFluid, JProbe....? We're running Tomcat on Win 2K Server...

Thanks!
 
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
This has come up frequently in the past, you might try looking for some older posts for a more thorough discussion. Basically, a HttpSession has a Map type collection plus some bookkeeping variables, so it is not very large. Remember, it is only storing references to objects so the memory "occupied" depends on what the objects are and how many other references to them exist.
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic