Every time the CGLIB Enhancer generates a new class, that generated class
jumps straight to the PermGen (permanent generation) of your java heap.
CGLIB Enhancers are faster in terms of performance, but more dangerous in
terms of memory consumption. (I ran into this same problem with another
product that uses CGLIB.)
Try turning off CGLIB and just have hibernate use reflection. If that solves
the problem, then you can always work on tuning CGLIB later.
On 6/4/07, John Mitchell <[EMAIL PROTECTED]> wrote:
Hi,
I have been having to restart Apache Tomcat as frequently as once a day
and I suspect the problem is related to hibernate.
I have attached an error log from apache tomcat:
I get the following error below
ERROR BasicLazyInitializer:105 - CBLIB Enhancement failed:
com.insequence.gv.ProductOrder
then further down the log file
java.lang.OutOfMemoryError: PermGen space
I also noticed towards the beginning of the log file
13:26:55,625 INFO DriverManagerConnectionProvider:41 - Using Hibernate
built-in connection pool (not for production use!)
13:26:55,640 INFO DriverManagerConnectionProvider:42 - Hibernate
connection pool size: 1
Do I need to switch to a different connection pool and if so what?
Should I change the "Hibernate connection pool size: 1" to a number
higher than 1 for better stability and if so what number?
Thanks,
--
John J. Mitchell
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel