Linux – How to determine number of open sockets? VM Resource Issues

linuxqossocket

I've got a MediaTemple DV server. I've been seeing a lot of QOS alerts for "numothersock" which is defined as:

The number of sockets other than TCP ones. Local (UNIX-domain) sockets
are used for communications inside the system. UDP sockets are used,
for example, for Domain Name Service (DNS) queries. UDP and other
sockets may also be used in some very specialized applications (SNMP
agents and others).

How can I determine what application/daemon/etc is creating these sockets? The limit is 300 and we're hitting that several times a day recently.

Thanks in advance.

Best Answer

netstat -nap
p shows the process id