LiveJournal will be undergoing maintenance on May 25, and might display errors until complete. Please see http://lj-maintenance.livejournal.com/ for details and updates.

1st_noiz (1st_noiz) wrote in linux,

netstat -L from freebsd under Linux

Is there a way to view queue length on listening socket under linux, the same way as netstat -L outputs for freebsd? I.e. you can see X/Y/Z in netstat -L output, but netstat under linux doesn't support -L flag.

upd: ss -l shows reqired Recv-Q Send-Q
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded  

  • 3 comments

pengshui_master

September 26 2012, 07:31:46 UTC 8 months ago

Do you mean the Send-Q and Recv-Q columns that are always in the output ?

Eg, No special switch required.

1st_noiz

September 26 2012, 14:39:18 UTC 8 months ago

Send-Q and Recv-Q shows amount of bytes not send/received, I need amount of yet unaccepted connections, that are in backlog.

blindgeek

September 27 2012, 01:07:18 UTC 8 months ago

You may or may not be able to do this with Lsof exactly. Are you perhaps flexible in that you may be able to track connections via their TCP state?