On Fri, 3 Aug 2001, Taylor, Michael(LIT) wrote:

> Does anyone know how to calculate the physical memory requirements for the
> HTTP session when running a Struts application?
> 

A session isn't really much more than a Hashtable.  The real issue is the
session attributes you store there.  If it's the same object that is
referenced somewhere else, there is essentially no extra space required
(in C++ terms, Java variables are like "references").  On the other hand,
if you are creating new objects you need to add up just the space for the
data portion of your objects (and thus, you have to recurse your way down
the object tre ...).

Some performance measurement tools probably provide some help in trying to
understand memory occupancy, but it's definitely not trivial.


> Michael Taylor
> Senior Software Developer
> 

Craig McClanahan

Reply via email to