2 messages in com.mysql.lists.javaRe: CLOSE_WAIT
FromSent OnAttachments
John Rayburn02 Oct 2002 03:48 
Mark Matthews02 Oct 2002 07:17 
Subject:Re: CLOSE_WAIT
From:Mark Matthews (ma@mysql.com)
Date:10/02/2002 07:17:40 AM
List:com.mysql.lists.java

John Rayburn wrote:

We are using the MySQL JDBC Driver (org.gjt.mm.mysql.Driver) with MySQL 3.* (not MAX) on a RedHat linux box.

I've noticed that at any particular time when the server is quiet, there are upwards of 30-50 TCP connections in the CLOSE_WAIT status to the mysql server. I would think this would have some sort of adverse effect and I was wondering if this is normal, or if it might be an application (Java) or db (MySQL) config/code problem.

Any thoughts?

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.

Which version of the driver are you using? Some very old versions had a bug with not always closing the sockets to the server.

You should try and use the latest stable or beta drivers. See http://www.mysql.com/products/connector-j/

-Mark