0
I have a problem in my production server, where my tomcat
has locked when a connection is requested from the bank’s connection pool.
When I climb the tomcat
I see in the log
the following message :
ADVERTÊNCIA: Name = GaiaDataBase Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "40" for "maxActive" property, which is being ignored.
My context.xml Is thus configured:
<Resource auth="Container" driverClassName="org.postgresql.Driver" maxActive="40" name="jdbc/GaiaDataBase" password="blablabla" type="javax.sql.DataSource" url="jdbc:postgresql://192.168.1.78/MeuBanco" username="user_desenv"/>
I thought that maxActive="40"
would mean that I would have 40 simultaneous connections on pool
. But this is not what happens according to the log
.
How to increase these connections?
There’s nothing on the console. As I use Tomcat’s connection pool, I saw that it hangs on the command line where Tomcat’s Datasource releases a new connection to my code.
– Igor Moisés