mongrel having lot of sockets in close wait state

Hi,

I have a rails webapp and lately one of the mongrel process gets stuck
in close_wait state and my app stops responding and needs a restart. I
have a apache in front of mongrel processes and the close wait state on
connection seems to be on localhost only (My guess is it is apache).
Any help appreciated on how should i go about debugging this issue.

Thanks,
Sivakumar.