• 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
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic