set max alive connection in connection pool
Posted: Mon Apr 21, 2014 5:22 am
I am using broadleaf demo site with tomcat server. Although i can run it with default settings, i am looking for a way to set max active connection in connection pool. I tried to change "maxActive" attribute of Resource tag in context.xml which gave me exactly same number of active connections that i set in "maxActive" at the time of application startup.
But when i visit any page, say home page, the number of live connections shots up drastically which stays live(in sleep mode) untill the application is stopped. Is there default number of active connections configured in hibernate code? If so, is there any way by which i can set the max connection to 20(for assumption)?
But when i visit any page, say home page, the number of live connections shots up drastically which stays live(in sleep mode) untill the application is stopped. Is there default number of active connections configured in hibernate code? If so, is there any way by which i can set the max connection to 20(for assumption)?