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

前端 未结 8 969
隐瞒了意图╮
隐瞒了意图╮ 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:49

    I have seen this problem with Hibernate (used without Spring). The issue there was that we were creating an instance of a SessionFactory for each user request rather than creating a single instance for the lifetime of the application.

    I used the YourKit profiler to investigate this and discover the issue.

提交回复
热议问题