In the hibernate, I set the timeout value = 180 (3 mins) as following:
Here are the test and results:
1): when are server started, run command: netstat -na, there is not connection to database. -- it is correct, the initial connection is set to zero.
2): then I log on the web, then run netstat -na, I saw 4 tcp connections to the database;
3): then I waited for more than 10 mins, (I also all web to the webserver - it is not neccessary), the tcp connestions to the database are still "ESTABLISHED".
I expect the all connections should be discard after 10 min since I set the timeout is 3 mins and also the min pool size is 0.
Why this case
Log in to post a comment.