I have a two server setup running (one webserver and one db server). The database is running on a 2.6.4 linux kernel. The webserver is running a 2.4 kernel (due to problems with a 2.6 kernel and 3com network cards)

When i do a 'lsof -ni | grep "mysql" | grep -c "EST" ' i get around 2000 connections and it is growing slowly but steadily over time. When i issue the same command on the webserver it returns around 50 concurrent connections to the database server at any time. All the connections to the database server are coming from the webserver. It looks like the mysql server doesn't clean it's connections properly, but i can't lay a finger on the cause of it.

Does anyone recognize this problem before or is there a quick solution to this?