my application is running on:
- apache-tomcat-7.0.27;
- primefaces 3.1.1;
- mysql-connector-java-5.0.8;
- jsf 2.0;
- c3p0-0.9.2-pre2;
- hibernate3;
and after a few minutes before starting server and visiting a few pages I got this:
Exception in thread "C3P0PooledConnectionPoolManager-Helper Thread-#0" java.lang.OutOfMemoryError: PermGen space
It's strange because I do not "stress" my system and I do only simple accesses.
I imagine this is a c3p0 issue or I'm missing something.
Anyway, this is my c3p0 configuration (*):
- HibernateConnectionProviderClass = "org.hibernate.connection.C3P0ConnectionProvider";
- HibernateC3p0MinSize = "3"
- HibernateC3p0MaxSize = "5"
- HibernateC3p0Timeout = "1800"
- HibernateC3p0IdleTestPeriod = "100"
(*) Ignore the configuration format because it's in a class and runs in execution time.