The tomcat connection pool has a setting called maxActive and a setting called maxIdle my questions are.
- What is the difference between these two settings?
- What is a real world example scenario where you might have a different value for maxActive than you would for maxIdle?
For some reason the docs are not making sense to me. maxActive and maxIdle exist on both the apache dbcp and the tomact 7 jdbc-pool according to the docs at http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html
question from:https://stackoverflow.com/questions/9451818/what-is-the-difference-between-maxactive-vs-maxidle-for-tomcat-connection-poolsmaxActive (int) The maximum number of active connections that can be allocated from this pool at the same time. The default value is 100
maxIdle (int) The maximum number of connections that should be kept in the pool at all times. Default value is maxActive:100 Idle connections are checked periodically (if enabled) and connections that been idle for longer than minEvictableIdleTimeMillis will be released. (also see testWhileIdle)