Netstat shows numerous CLOSE_WAIT states for mysql connections
Posted
by Sudheer
on Stack Overflow
See other posts from Stack Overflow
or by Sudheer
Published on 2010-05-23T13:17:58Z
Indexed on
2010/05/23
13:20 UTC
Read the original article
Hit count: 459
The output of netstat -an shows many mysql connections in CLOSE_WAIT state and when i checked the processlist in mysql using 'SHOW PROCESSLIST' the connections shown in netstat do not appear. What possible could be the reason for this. I use tomcat with mysql-connector and use a Connection Pool as well.
Is it that the application is not closing the mysql connection or is there any other reason for this behaviour... sometimes the CLOSE_WAIT reaches over 200.
On the application level i made sure that i close all the connections(make sure i issue a close() command in the finally block) created using jdbc.
Any help would be appreciated.
© Stack Overflow or respective owner