• Post Reply Bookmark Topic Watch Topic
  • New Topic

how much memory used by session?

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • 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!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!