Is there a way to release a saturated connection pool?

I am working with open esb on a Glassfish server. We have a connection pool that works with the as400 database.

Every couple of days we get this error: Error distributing the connection. Reason: The connections used are equal to max- pool size and expiration time max-wait expired. Cannot allocate more connections.

The best way to make cp easier is to reboot the server. We also managed to set another cp with the same attributes.

My questions: Is there a way to actively β€œsay” cp in order to free all its open connections?

Cheers, Eran

+3
source share
4 answers

, , . , , ( () ?).

" !" , .

β„– 1: , - MSGW QSYSOPR, , , . "C" , ?

24 ? , , . , .

, , MSGW .

+5

"" , GlassFish. GF ( v2.1) /JDBC/ /[ cp]/ " " " " true .

+1

, . @TransactionManagement (TransactionManagementType.BEAN) . , .

+1

, AS400. , . WRKRPYLE ( ) AS400, .

0

Source: https://habr.com/ru/post/1707544/


All Articles