You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Black <jb...@ieee.org> on 2005/07/08 21:38:52 UTC

re: is this issue in the faq still correct wrt Tomcat 5.5.9?

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

  Why does the memory usage increase when I redeploy a web application?
Because the Classloader (and the Class objects it loaded) cannot be
recycled. They are stored in the permanent heap generation by the JVM,
and when you redepoy a new class loader is created, which loads another
copy of all these classes. This can cause OufOfMemoryErrors eventually.

I found it at:
http://jakarta.apache.org/tomcat/faq/deployment.html

I am trying to understand why I run out of permanent memory when I
redeploy my beehive-based webapp, after about the 10th redeployment.

Thanx.

- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black    james@usf.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCztZMikQgpVn8xrARAoQEAJ0V9aF3djyzIT9FDtCDP2WL22q8vACdFy3r
xNiOIuvLbvv/rder714v9ls=
=/ua5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org