Possible Memory Leak due to org.hibernate.internal.SessionFactoryImpl
问题 I have made and MVC webapp in Java, but when I run it, once a day, it turns down again due to a memory error. This error is this: Exception in thread "http-apr-12136-exec-42" java.lang.OutOfMemoryError: Java heap space java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space I have the hprof with the stats of the crash, where specific how is the memory used. If I open the hprof with the Eclipse Memory Analizer, I have this results: In rar: https://mega.co.nz/#!Ht41xJDJ