You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by James Black <jb...@ieee.org> on 2005/06/27 20:41:13 UTC

re: running out of permgen memory when deploying/undeploying several times

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

There was a discussion on the tomcat list about running out of permgen
memory, and so I mentioned that it happens to me when I deploy and
undeploy my webapp several times in a fairly short period.

I am using Tomcat 5.5.9, jdk1.5 on Solaris 8, and when I copy the war
file into my webapps directory, somewhere after the 5th time I get an
error of out of memory and have to restart tomcat.

I am not necessarily doing anything special with my application, and
there is no problem when I just use the webapp, no leaks seem to be
present in my code.

Here is a suggestion by someone, and I am curious how I would do this,
or if this call would have to be made when beehive creates the classes:

"Does your web app use struts? You can always clean up resource by
adding Introspector.flushCaches(); in your context listener's
contextDestroyed method. Otherwise, you will have to go through your web
app carefully to find out if there is any memory leak."

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

iD8DBQFCwEhJikQgpVn8xrARAnunAKCBPox4o57gqjXz1rpbP3YPFAAStACfY8f5
Abfb7NQQ7iwux4UgKo5fiqc=
=ifil
-----END PGP SIGNATURE-----