OutOfMemoryError: PermGen Space — Jasper Report with Spring running on Tomcat

前端 未结 5 1168
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 11:00

Our web application encounter a complicated situation

It is a Spring application developed by STS/Tomcat 7. After the application been integrated with <

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 11:40

    The exception occurs when there are too many .class files in the permgen space in the JVM which cannot be garbage collected due to its references to an object outside the AppClassLoader. It generally points out to some memory leak your applciation.

    This post has a lucid explanation of java.lang.OutOfMemoryError: PermGen space error and a following post has suggestions on how to fix it. A similiar (but not exactly the same) question was asked on SO, letting you know if you missed it. I hope it helps.

    As jakub has mentioned setting -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled or setting a higher value for XX:MaxPermSize might work for you. But from what I have read, it isn't a permanent solution it seems. (I am not a master in this :)).

提交回复
热议问题