When I try to add a library (in this case: iText-2.0.8.jar) to my java web app (JSF) and restart Tomcat, everything seems fine. The login page also renders. When I login however, the application almost immediately throws the infamous java.lang.OutOfMemoryError: PermGen space
error.
Increasing the PermGen size with -XX:MaxPermGen=128M
doesn't solve the issue, not even with large amounts such as 2048m.
When I remove the added jar, everything's fine again.
Does anyone have an idea how to diagnose this problem?
After sifting through this thread, I read this blog post.
I just switched to the JRockit JVM, and so far I haven't encountered any java.lang.OutOfMemoryError: PermGen space
errors.
As a bonus, my web application now also runs faster.