Thanks Chris,
As in my previous thanks to Mark, I'll be slowly mastering how to get into this.

Cheers,
Ken

On Apr 21, 2009, at 5:44 PM, Christopher Schultz wrote:

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

Ken,

On 4/21/2009 4:32 PM, Ken Bowen wrote:
I develop locally on a Mac OS/X 10.5.6 box with 4GBmem using (My)Eclipse
and Tomcat 6.0.18 directly.  With lots & lots of reloads, I'm not
surprised that I eventually hit OOM PermGen space in this setting, but it happens much less often than on the CentOS box (of course 4GB != 432MB).

Can you observe your heap and which ClassLoaders are still hanging
around? You might want to check to see how many
org/apache/catalina/loader/WebappClassLoader objects are still "live".
In my web application, just after a Tomcat startup, I have 2 instances
of this class, both of which are "live".

After an application reload, I can see that I still have 2 live
WebappClassLoaders: one of them is the same one that was live before the app reload (probably the "Shared" webapp ClassLoader - I'm using TC 5.5) and the other one is a new one that appears to have replaced the old one
(which should be expected, since the old one should be discarded after
the undeploy).

If you find multiple WebappClassLoader objects still hanging around, you can probably start looking for the objects they actually own. Those will
give you a clue as to what services or objects aren't being cleaned-up
correctly when your application shuts down.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknuPiUACgkQ9CaO5/Lv0PBZ9gCgwnO0rP3j40m32+vI1jmy0qaI
9w0AoMCt+AteT1uv+vvrgCbpteNV9rGb
=X9YG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to