Tech > HibernateTips

Hibernate Tips



Extract from

When your application runs with heavy load, Hibernate starts to behave strangely and the above exception may be thrown: (The error may vary according to you persistent object.)

This is a known issue in Hibernate when running in the Java 5 client VM on Linux. Note that client mode is the default for Java 5 HotSpot VM. The issue can be resolved by adding the -server JVM flag as follows:

*** java -server or *** ant -Dvm=server

And if your application runs in tomcat you can set following parameter to your .bash_profile.

*** CATALINA_OPTS="-server"

-- Frank Dean - 17 Mar 2008

Related Topics: LenovoT500Suspend