O'Reilly logo

Hands-On High Performance with Spring 5 by Dinesh Radadiya, Prashant Goswami, Pritesh Shah, Subhash Shah, Chintan Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sizing the connection pool

We need to work with the following attributes to size the connection pool:

  • initialSize: The initialSize attribute defines the number of connections that will be established when the connection pool is started.
  • maxActive: The maxActive attribute can be used to limit the maximum number of established connections to the database.
  • maxIdle: The maxIdeal attribute is used to maintain the maximum number of idle connections in the pool at all times.
  • minIdle: The minIdeal attribute is used to maintain the minimum number of idle connections in the pool at all times.
  • timeBetweenEvictionRunsMillis: The validation/cleaner thread runs every timeBetweenEvictionRunsMillis milliseconds. It's a background thread that can test idle, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required