Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Suddenly all sockets are unavailable?

0 views
Skip to first unread message
Message has been deleted
Message has been deleted

Ignoramus30893

unread,
Nov 19, 2009, 11:46:09 AM11/19/09
to
On 2009-11-19, Stan Bischof <st...@newserve.worldbadminton.com> wrote:
> Probably no real help, but I have ocasionally seen similar
> runaway process on my systems. I run debian, but Apache
> goes wild every now and then-- maybe once or twice year.
>
> No obvious root cause- most likely a bug somewhere.
>
> Restart ( or reboot if it gets locked enough ) has always
> worked for me. Haven't seen it in a while so maybe more
> recent versions have found/fixed this bug ( knock on wood!).

I think that for the next time, if that happens and I am still able to
log on, I would like to investigate this a little further. Such as,
what is the process that is holding too many sockets open.

I wrote a shell function that may help me in the future:

TopSocketUsers() {
(
cd /proc
(
for i in [0-9]*; do
echo $(ls $i/fd|wc -l) $i $(cat /proc/$i/cmdline|cut -c 1-70)
done
) | sort -n
)
}

Right now it shows nothing special, with mysqld at 51 file
descriptors.

i

0 new messages