sonewconn: pcb 0xfffffe00c7223498: Listen queue overflow

Kristof Provost kristof at sigsegv.be
Tue Nov 12 11:06:30 UTC 2013


On 2013-11-12 09:53:15 (+0100), Kai Gallasch <k at free.de> wrote:
> I also have quite a lot of this "Listen queue overflow" in the kernel
> messages on a 9.2-STABLE (r257053) and I tried to identify the
> listening processes with filled up listen queue with netstat. I tried
> both "netstat -nAa | grep $pcb" and "netstat -Lan" but found no match
> with the pcb.
> 
> Problem seems to be that there are server processes that dynamically
> fork child processes that do the listening and are only active for a
> short time.
> 
> Now I wonder if there is a nifty solution for this besides running a
> watchdog script every minute that scans the kernel.msg for "Listen
> queue overflow" and does the trick to find out the pid/process/jid of
> the connected process.
> 
I've also seen this happen on my box.

I'll test the following dtrace bit, to see if I get any useful feedback
out of it.

dtrace -n ::sonewconn:return'/args[1] == NULL/
{ 
print("sonewconn returned NULL"); 
printf("user stack %s (%d)", execname, pid);
ustack();
print("Kernel stack");
stack();
}'

Regards,
Kristof


More information about the freebsd-stable mailing list