Optimal number of connections in connection pool

前端 未结 8 1197
清歌不尽
清歌不尽 2020-12-07 16:52

Currently we are using 4 cpu windows box with 8gb RAM with MySQL 5.x installed on same box. We are using Weblogic application server for our application. We are targeting fo

8条回答
  •  我在风中等你
    2020-12-07 17:35

    The connection pool should be able to grow and shink based on actual needs. Log the numbers needed to do analysis on the running system, either through logging statements or through JMX surveillance. Consider setting up alerts for scenarios like "peak detected: more than X new entries had to be allocated in Y seconds", "connection was out of pool for more than X seconds" which will allow you to give attention to performance issues before they get real problems.

提交回复
热议问题