Date: Thu, 15 Dec 2016 16:05:57 +0000 From: Gary Palmer <gpalmer@freebsd.org> To: Artem Viklenko <artem@viklenko.net> Cc: Eugene Grosbein <egrosbein@rdtc.ru>, freebsd-net <freebsd-net@freebsd.org>, "Eugene M. Zheganin" <emz@norma.perm.ru>, freebsd-stable@freebsd.org, owner-freebsd-net@freebsd.org Subject: Re: sonewconn: pcb [...]: Listen queue overflow to human-readable form Message-ID: <20161215160557.GC7032@in-addr.com> In-Reply-To: <7f33d47e2014d9c994f8b2003b011ba3@mail.viklenko.net> References: <58528B50.8030600@norma.perm.ru> <58528C6B.8070800@rdtc.ru> <7f33d47e2014d9c994f8b2003b011ba3@mail.viklenko.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 15, 2016 at 05:27:02PM +0200, Artem Viklenko wrote: > 2016-12-15 14:28, Eugene Grosbein ??????????????: > > On 15.12.2016 19:23, Eugene M. Zheganin wrote: > > > >> but at the time of investigation the socket is already closed and lsof > >> cannot show me the owner. I wonder if the kernel can itself decode > >> this > >> output and write it in the human-readable form ? > > > > Until that's not implemented, you can monitor "netstat -Lan" output and > > continuously save it for later analisys and/or draw graphs. > > > > netstat -LanA -f inet ? That's only IPv4 sockets (or sockets that are listening on both families at the same time). If you are dual stack with IPv6, you'd probably also need to capture netstat -LanA -f inet6 Regards, Gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161215160557.GC7032>