Well the other tomcat servers had a custom factory specified. That was the only
difference. (devs wrote their own library for it)
So I looked in tomcat documentation and tried loading a out of the box factory
that was available. That’s when it was picking up the maxActive setting and I
started seeing that setting properly reflected in JMX.
Shawn Beard • Sr. Systems Engineer
Middleware Engineering
[cid:[email protected]]
3840 109th Street , Urbandale , IA 50322
Phone: +1-515-564-2528<tel:+1-515-564-2528>
Email: [email protected]<mailto:[email protected]>
Website: https://berkleytechnologyservices.com/
[cid:[email protected]]
Technology Leadership Unleashing Business Potential
-----Original Message-----
From: Christopher Schultz <[email protected]>
Sent: Thursday, December 17, 2020 1:02 PM
To: [email protected]
Subject: Re: jdbc connction pool issues [EXTERNAL]
** CAUTION: External message
Shawn,
On 12/17/20 11:04, Beard, Shawn wrote:
> I was able to fix this. I added this to the config:
>
> factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
>
> I was then seeing maxConnections of 50 in jmx and not 8.
So Phil was right: you needed to s/maxActive/maxTotal/.
That doesn't sounds right if "all your other servers are working with the same
config and Tomcat version" so something isn't right about that statement.
*Something* is different.
Switching to the Tomcat jdbc-pool again uses "maxActive" instead of "maxTotal"
as the configuration option for the largest number of connections allowed in
the pool, which is why it works when you change it.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [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.