Hi Stephen,
I had the same problem, also after redeploying applications in Tomcat a
few times, both on Red Hat and Windows. Increasing PermGen space just
postponed the problem. The problem went away by using another JVM. I
picked BEA's JRockit for speed. It had some other problems though, but
now it runs fine.
Best regards,
Huib.
Stephen Winnall schreef:
Hi Robin
Thanks. I agree that it could be that. However, after a fresh restart
everything runs fine, so there appears to be basically enough space
available. The problem only occurs after a number of redeployments, so
I'm assuming a memory leak at the moment. But I'll gladly come back to
your suggestion if my assumption is wrong.
I'm trying to deploy my Cocoon application in Tomcat and am
getting the following error:
java.lang.OutOfMemoryError: PermGen space
Wisdom on the net has it that this happens as a result of large
memory leaks: if classes used in a servlet are referenced from
outside the servlet, the garbage collector cannot recycle them
when the application is undeployed; redeploying the application
results in the classes being loaded a further time, and so on
until memory runs out. I have looked in the Cocoon mailing lists
for other occurrences of this problem, but I've found nothing,
so I assume the problem is in one of the classes I wrote to
extend my application.
Does anyone have experience with tracking down this sort of
problem in Cocoon apps?