Caldarale, Charles R wrote:
Perhaps the Tomcat FAQ on memory-issues could be fleshed
out/updated?
This specific item is already in the Tomcat FAQ:
"If you have a lot of servlets or JSP's, you may need to increase your
permanent generation. By default, it is 64MB. Doubling [sic] it to be
-XX:MaxPermSize=256m might be a good start."
The problem with that language is it implies that PermGen space is
generally only an issue if you're using a lot of servlets or JSPs. But
these days, I assume more people are getting PermGen issues not with
servlets/JSPs but with framework stacks -- e.g. Hibernate makes hungry
use of PermGen. Further, this entry implies that an application will
take a static amount of PermGen, so doubling it will solve the problem,
but I read about a lot of people having this issue on reload/redeploy --
i.e. the classloader leak, but there's nothing in the FAQ linking the
PermGen error to the "Your classloaders are not being garbage collected"
link. I agree with you that that article has pretty much everything,
but it's put at the end of the list almost as an afterthought, and I'd
also suggest that if someone had already concluded that their
classloaders were not being garbage collected, they'd have already found
that link. We should put some <marquee> and <blink> tags around it! : )
Mostly I'm just being defensive, but I do truly appreciate the correction.
Jim
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]