Hi all, For some reason I'm getting thousands of hanging TCP connections on our server which appear to be caused by Samba sending print jobs to CUPS (or I assume so as nothing else on the machine uses CUPS.) These connections are starting to cause problems (programs monitoring connections start breaking because it takes many seconds for them to scan through the full list) so if anyone has any ideas how to rid the system of these connections I'd be very appreciative! tcp 0 0 127.0.0.1:37256 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38323 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38251 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38495 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38445 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38818 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38748 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38573 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38359 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37863 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37743 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38035 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38961 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38473 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37984 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38804 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37514 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38307 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37991 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38673 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38054 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37808 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37632 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38069 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38464 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37559 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38713 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37998 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38556 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38162 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37566 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37597 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37939 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38599 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38867 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:37502 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38344 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38412 127.0.0.1:631 TIME_WAIT tcp 0 0 127.0.0.1:38691 127.0.0.1:631 TIME_WAIT ... Thanks, Adam.
2009/11/4 Adam Nielsen <adam.nielsen at uq.edu.au>:> Hi all, > > For some reason I'm getting thousands of hanging TCP connections on our > server which appear to be caused by Samba sending print jobs to CUPS (or > I assume so as nothing else on the machine uses CUPS.) > > These connections are starting to cause problems (programs monitoring > connections start breaking because it takes many seconds for them to > scan through the full list) so if anyone has any ideas how to rid the > system of these connections I'd be very appreciative!I don't have an answer for your actual question, but if it takes several seconds to get this list, it's probably because of DNS queries, and using "-n" will speed it up dramatically. -- Michael Wood <esiotrot at gmail.com>