Database connection pool C3po configuration in liferay
In Liferay, default connection pool is c3p0 configured using portal-ext.properties. Liferay Portal also supports the database connection pool configuration through the Application Server. Liferay can access the Application Server level data source using JNDI. It is recommended to use the JNDI-based database connection pool configuration. Add the following property in the portal-ext.properties. jdbc.default.jndi.name=jdbc/LiferayPool Open the server.xml in the <liferay-home>/tomcat/conf folder Locate the Resource tag and add the following properties. <Resource auth="Container" description="Portal DB Connection" driverClass="com.mysql.jdbc.Driver" maxPoolSize="75" minPoolSize="10" acquireIncrement="5" name="jdbc/LiferayPool" user="<MySQL Database User Name>" password="<MySQL Password>" factory="org.apache.naming.factory.BeanFactory" ...