What can be done with 'PermGen out of space' exception in Tomcat-Spring-Hibernate web application?

前端 未结 8 1018
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 05:12

We have an web application that uses Spring-Hibernate to persist registered users data in Oracle database. The application works fine in development environment, but when we

8条回答
  •  长情又很酷
    2020-12-05 05:32

    As skaffman says the -XX:MaxPermSize property does work, however sometimes you can have an underlying problem that upping the limit may only defer.

    Have you seen this note? It helped me resolve a similar problem once. To summarise the link:

    • Put JDBC driver in common/lib (as tomcat documentation says) and not in WEB-INF/lib
    • Don't put commons-logging into WEB-INF/lib since tomcat already bootstraps it

提交回复
热议问题