Dynamic resizing connection pool size - Apache Tomcat JDBC Connection Pool

670 views Asked by At

Is there any way to increase maxpoolsize dynamically based on the application load.

1

There are 1 answers

2
Olaf Kock On

The pool size is what's adjusting dynamically. That's what it's there for.

The max pool size is the amount of resources that you're ready to share with the application - e.g. due to available bandwidth, memory, or other. Set the max value to whatever you're ok with the application to use under expected or unexpected load. The application will use resources according to the current actual load.

So, even if you can come up with a dynamic way to adjust, it wouldn't make much sense.