This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
In our project we are using OpenJPA-1.0.0 -nightly build. In the OpenJPA properties we have set maxActive as 150. But some times we are getting the exception for connection pool exhaustion.
We run our application on apache tomcat 5.5 server.
In our dev environment, we can print the number of connections being used by using BasicDataSource.getNumActive() method. But we do not want to change the production code to print the same on the log.
1. Is there any tool that we can use externally to check how many connections are being used at any instance?
2. Is it advisable to increase the maxActive value to 250 / 300? How can we determine the optimum maxActive number needed for our application?
3. Is there any framework like c3p0 compatible with OpenJPA that will increase the connection pool size dynamically?
I am trying to use Apache JMeter for database monitoring, but not sure if it'll display what I want.