-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jerald Powel wrote:
| Hi all,
|
|      I am experiencing problems with memory management. I load up my
app in 10 or 15 browsers where various stuff is put on a session each
time. In Windows Task Manager I can see java.exe incrementing by an
amount of memory for each browser/app opened. No problem there. In my
web.xml  I define <session-timeout> to be 2 minutes. Why after an
inactive period of time exceeding 2 minutes, does the memory being used
not appear to lessen please? In fact, even I close all browsers the
memory being consumed remains at its peak...until a server restart is
necessary.


Jerald,


I don't know the internals of Tomcat's Session management, but there are
a few things to think about here that might help.

1) Just by closing the browser does not cause the session to close.
2) You could be putting some shared object into the Session which is not
garbage collected when the session itself dies.
3) I believe you can configure a listener to receive an event when a
session dies.  You could therefore see if they really are being closed.
4) Be careful what you put in the Session.  Usually only place small or
transient objects into the Session.  Don't put any heavy objects, like
database connections into the session.

5) There could be a Tomcat bug. :) (unlikely, though)

Hope that helps,
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFATPrI5EIB1scRes8RAn7oAJ43yJLv+9GeaQD7LADIuQfk0N5zuQCeJTDl
+aFJNg57g77HwvOATT60kB8=
=8yG4
-----END PGP SIGNATURE-----


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to