简体   繁体   English

动态调整连接池大小 - Apache Tomcat JDBC 连接池

[英]Dynamic resizing connection pool size - Apache Tomcat JDBC Connection Pool

Is there any way to increase maxpoolsize dynamically based on the application load.有没有办法根据应用程序负载动态增加 maxpoolsize。

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 - eg due to available bandwidth, memory, or other.最大池大小是您准备与应用程序共享的资源量 - 例如,由于可用带宽、memory 或其他原因。 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.所以,即使你能想出一个动态的方法来调整,它也没有多大意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM