If default is 10, they why would we be getting an error about 8 being max?
Shawn Beard
Sr. Systems Engineer |
BTS
Middleware Engineering | +1-515-564-2528<tel:+1-515-564-2528> |
[email protected]<mailto:[email protected]>
-----Original Message-----
From: Johnson, Jim <[email protected]>
Sent: Tuesday, December 15, 2020 1:35 PM
To: Tomcat Users List <[email protected]>
Subject: RE: jdbc connction pool issues [EXTERNAL]
** CAUTION: External message
Hi Shawn,
I think you’re missing initialSize
initialSize
(int)The initial number of connections that are created when the pool is
started. Default value is 10
maxActive
(int) The maximum number of active connections that can be allocated from this
pool at the same time. The default value is 100
It would make sense that 8 connections would be 80% utilized.
I would try replacing maxActive with initialSize and seeing how that works for
you.
Good luck!
- Jim
From: Beard, Shawn <[email protected]>
Sent: Tuesday, December 15, 2020 2:12 PM
To: Tomcat Users List <[email protected]>
Subject: jdbc connction pool issues
CAUTION EXTERNAL EMAIL: This email originated from outside of the organization.
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
We have this jdbc connection pool set up:
<Resource name="jdbc/DataSource" auth="Container" type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://hostname:1433;selectMethod=direct;databaseName=databasename;sendStringParametersAsUnicode=false"
username="XXX" password="XXXXXX" maxIdle="20" minIdle="10" maxActive="50"
maxWait="30000" testWhileIdle="true" testOnBorrow="true"
validationQuery="SELECT 1"/>
However we are getting this error:
Resource Pool Limit Reached
Time 12/15/20 11:48:00 AM
Summary
JDBC Connection Pool
Catalina:class=javax.sql.DataSource,context=/XX,host=XXXXXXXXX,name="jdbc/DataSource",type=DataSource
has reached 80% limit. Current pool size [8, Max pool size [8]
Shouldn’t the max connections of the connection pool be 50 since maxActive is
50?
Shawn Beard • Sr. Systems Engineer
Middleware Engineering
[cid:[email protected]]
3840 109th Street Urbandale, IA 50322
Phone: +1-515-564-2528
Email: [email protected]<mailto:[email protected]>
Website:
berkleytechnologyservices.com<https://urldefense.com/v3/__https://nam05.safelinks.protection.outlook.com/?url=https*3A*2F*2Fwww.berkleytechnologyservices.com*2F&data=04*7C01*7CJ1Johnson*40unum.com*7C64e6e4965acb42aebfe708d8a12d798c*7Cd5952c785d4e41caaff07174c1f75393*7C0*7C0*7C637436563975240326*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000&sdata=3nTT6swXEeC2zC*2BUb7Q7nvgxM214SGf7HJaI*2F4*2BYupA*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSU!!Li8W9_Um1Taa!qrMl5L--I8QMohhvL9LXmHKdJz0jf2lM2XTvoH8FwyisGVhxNJdYs74vjiQ2KJgp$
>
Technology Leadership Unleashing Business Potential
Shawn
Beard
Sr. Systems Engineer
|
BTS
Middleware Engineering
|
+1-515-564-2528<tel:+1-515-564-2528>
|
[email protected]<mailto:[email protected]>
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender. The
information therein is solely for the use of the addressee. If your receipt of
this transmission has occurred as the result of an error, please immediately
notify us so we can arrange for the return of the documents. In such
circumstances, you are advised that you may not disclose, copy, distribute or
take any other action in reliance on the information transmitted.
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender. The
information therein is solely for the use of the addressee. If your receipt of
this transmission has occurred as the result of an error, please immediately
notify us so we can arrange for the return of the documents. In such
circumstances, you are advised that you may not disclose, copy, distribute or
take any other action in reliance on the information transmitted.