mysql - Dbcp connection pooling create more conncetion as expected -



mysql - Dbcp connection pooling create more conncetion as expected -

i new in dbcp. using dbcp connection pool spring , hibernate ,database mysql. unable find how many connections created in connection pool. every time it's giving different processlist count.

i using configuration is:

<code> dbcp.maxactive =11 dbcp.maxidle =70 dbcp.validationquery=select 1 dbcp.minidle =6 dbcp.timebetweenevictionrunsmillis=34000 dbcp.minevictableidletimemillis = 55000 dbcp.testonborrow =true </code>

please help me out if 1 having idea. thanks

the default dbcp connection pool 8 connections, if want run 9 simultaneous queries 1 of them blocked. javadocs, should able read getnumidle() , getnumactive() methods, if can instance of basicdatasource or connect database , run exec sp_who2 show connected, , active, , whether queries beingness blocked. 1 suggestion if aware dbcp,it has more issues , suggest utilize hikaricp, has got of (ideal performance related tasks) here link give useful demo , lastly utilize spring's simplejdbctemplate more involved in simplicity.

mysql spring hibernate connection-pooling apache-commons-dbcp

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -