We are using Liferay Portal 5.2.3 (with Hibernate and C3P0) on Tomcat 5.5.27, PostgreSQL 8.3.
Normally, c3p0 pools connections and return it for reusing. But sometimes we need a lot of updates in time and postgreSQL doesn’t release connection after closing (we can see 100 IDLE connections). Also, that problem reproduces only on Linux (Debian 5.0).
Connections are establing by independent threads, and in the finally block of run() method we’re always close it.
I’ve tried do not use pool and wrote simple DBConnection manager (getConnection() -> runQuery() -> closeConnection()), but PostgreSQL didn’t release it.
We are using Liferay Portal 5.2.3 (with Hibernate and C3P0) on Tomcat 5.5.27, PostgreSQL
Share
huh… It was problem in code (one bad guy didn’t close connections)