I have deployed a web-application in glassfish application server. I have created a connection pool in glassfish and use DataSource
for getting a connection from it.
In my connection pool I have settings:
initial pool size: 25
max pool size: 500
pool resize quantity: 2
Currently clients are using my application and in the glassfish Resource Monitor I see the following details:
NumConnUsed:118
NumConnDestroyed: 3664
NumConnReleased: 391
NumConnFree: 1
NumConnCreated: 3784
NumConnAcquired: 509
If anyone could please explain me the above statistics with mathematics.
And my question is - when we close a connection using .close()
in java, the connection is sent back to the pool. So what is difference between NumConnReleased and NumConnDestroyed ?
Thanks