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...
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