Package: apt-cacher-ng
Followup-For: Bug #475583

even after adding ulimit -n 16384 in the startup script
it goes into overload and get stuck. here is the ps / lsof output

ps : 37 threads ;

lsof : 96
(attached)

it looks like some connexions are stuck in CLOSE WAIT for a long time
(few hours)

apt.xxxx.com is our apt-cacher-ng server

oh, and the apt-cacher-ng is a backport by us, running on a stable
debian (etch) box.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (549, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.2007.11.30.ws (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
apt-cache  2573 apt-cacher-ng  cwd       DIR        9,0       792          2 /
apt-cache  2573 apt-cacher-ng  rtd       DIR        9,0       792          2 /
apt-cache  2573 apt-cacher-ng  txt       REG        9,0    223576     104806 
/usr/sbin/apt-cacher-ng
apt-cache  2573 apt-cacher-ng  mem       REG        0,0                    0 
[heap] (stat: No such file or directory)
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     67364      19753 
/lib/tls/i686/cmov/libresolv-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     17840      19672 
/lib/tls/i686/cmov/libnss_dns-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     38372      19675 
/lib/tls/i686/cmov/libnss_files-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0   1241392      19604 
/lib/tls/i686/cmov/libc-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     41096       2636 
/lib/libgcc_s.so.1
apt-cache  2573 apt-cacher-ng  mem       REG        9,0    145136      19631 
/lib/tls/i686/cmov/libm-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0    909044       2639 
/usr/lib/libstdc++.so.6.0.8
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     66200      16757 
/lib/libbz2.so.1.0.3
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     78500        380 
/usr/lib/libz.so.1.2.3
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     89370      19751 
/lib/tls/i686/cmov/libpthread-2.3.6.so
apt-cache  2573 apt-cacher-ng  mem       REG        9,0     88164      10141 
/lib/ld-2.3.6.so
apt-cache  2573 apt-cacher-ng    0u      CHR        1,3                  815 
/dev/null
apt-cache  2573 apt-cacher-ng    1u      CHR        1,3                  815 
/dev/null
apt-cache  2573 apt-cacher-ng    2u      CHR        1,3                  815 
/dev/null
apt-cache  2573 apt-cacher-ng    3w      REG        9,3    243039     636428 
/var/log/apt-cacher-ng/apt-cacher.err
apt-cache  2573 apt-cacher-ng    4w      REG        9,3   3241849     636429 
/var/log/apt-cacher-ng/apt-cacher.log
apt-cache  2573 apt-cacher-ng    5u     IPv6    6948211                  TCP 
*:3142 (LISTEN)
apt-cache  2573 apt-cacher-ng    6u     unix 0xf6d28280              6948212 
/var/run/apt-cacher-ng/socket
apt-cache  2573 apt-cacher-ng    7u     IPv6    7709360                  TCP 
apt.xxxx.com:3142->stil.xxxx.com:2560 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng    8r     FIFO        0,6              7709361 
pipe
apt-cache  2573 apt-cacher-ng    9w     FIFO        0,6              7709361 
pipe
apt-cache  2573 apt-cacher-ng   10r     FIFO        0,6              7709362 
pipe
apt-cache  2573 apt-cacher-ng   11w     FIFO        0,6              7709362 
pipe
apt-cache  2573 apt-cacher-ng   12u     IPv4    7709388                  TCP 
asura.xxxx.com:45355->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng   16u     IPv6    6961712                  TCP 
apt.xxxx.com:3142->dekla.xxxx.com:52331 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng   17r     FIFO        0,6              6961713 
pipe
apt-cache  2573 apt-cacher-ng   18w     FIFO        0,6              6961713 
pipe
apt-cache  2573 apt-cacher-ng   28w      REG        9,4     59212   16511554 
/data/apt-cacher-ng/debrep/dists/etch/contrib/binary-i386/Packages.bz2
apt-cache  2573 apt-cacher-ng   31u     IPv4    6962090                  TCP 
asura.xxxx.com:34571->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng   37r     FIFO        0,6              6961726 
pipe
apt-cache  2573 apt-cacher-ng   38w     FIFO        0,6              6961726 
pipe
apt-cache  2573 apt-cacher-ng   74u     IPv6    6951348                  TCP 
apt.xxxx.com:3142->dekla.xxxx.com:51926 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng   75r     FIFO        0,6              6951349 
pipe
apt-cache  2573 apt-cacher-ng   76w     FIFO        0,6              6951349 
pipe
apt-cache  2573 apt-cacher-ng   77r     FIFO        0,6              6951350 
pipe
apt-cache  2573 apt-cacher-ng   78w     FIFO        0,6              6951350 
pipe
apt-cache  2573 apt-cacher-ng   86u     IPv4    6951351                  TCP 
asura.xxxx.com:44287->steffani.debian.org:www (ESTABLISHED)
apt-cache  2573 apt-cacher-ng   94u     IPv6    6959249                  TCP 
apt.xxxx.com:3142->kuru.xxxx.com:57071 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng   95r     FIFO        0,6              6959250 
pipe
apt-cache  2573 apt-cacher-ng   96w     FIFO        0,6              6959250 
pipe
apt-cache  2573 apt-cacher-ng   98u     IPv4    6961590                  TCP 
asura.xxxx.com:34536->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  102r     FIFO        0,6              6959278 
pipe
apt-cache  2573 apt-cacher-ng  103w     FIFO        0,6              6959278 
pipe
apt-cache  2573 apt-cacher-ng  104u     IPv4    6959279                  TCP 
asura.xxxx.com:36535->steffani.debian.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  105u     IPv6    6959280                  TCP 
apt.xxxx.com:3142->kuru.xxxx.com:57073 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  106r     FIFO        0,6              6959288 
pipe
apt-cache  2573 apt-cacher-ng  107w     FIFO        0,6              6959288 
pipe
apt-cache  2573 apt-cacher-ng  108r     FIFO        0,6              6959291 
pipe
apt-cache  2573 apt-cacher-ng  109w     FIFO        0,6              6959291 
pipe
apt-cache  2573 apt-cacher-ng  110u     IPv4    6959292                  TCP 
asura.xxxx.com:34460->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  113u     IPv6    6959298                  TCP 
apt.xxxx.com:3142->salacia.xxxx.com:41255 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  114r     FIFO        0,6              6959299 
pipe
apt-cache  2573 apt-cacher-ng  115w     FIFO        0,6              6959299 
pipe
apt-cache  2573 apt-cacher-ng  118r     FIFO        0,6              6959304 
pipe
apt-cache  2573 apt-cacher-ng  119w     FIFO        0,6              6959304 
pipe
apt-cache  2573 apt-cacher-ng  120u     IPv4    6961629                  TCP 
asura.xxxx.com:36618->steffani.debian.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  125u     IPv6    6959310                  TCP 
apt.xxxx.com:3142->decima.xxxx.com:56566 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  126r     FIFO        0,6              6959311 
pipe
apt-cache  2573 apt-cacher-ng  127w     FIFO        0,6              6959311 
pipe
apt-cache  2573 apt-cacher-ng  131r     FIFO        0,6              6959317 
pipe
apt-cache  2573 apt-cacher-ng  132w     FIFO        0,6              6959317 
pipe
apt-cache  2573 apt-cacher-ng  133u     IPv4    6961630                  TCP 
asura.xxxx.com:36619->steffani.debian.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  134u     IPv6    6959319                  TCP 
apt.xxxx.com:3142->calliope.xxxx.com:58230 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  135r     FIFO        0,6              6959320 
pipe
apt-cache  2573 apt-cacher-ng  136w     FIFO        0,6              6959320 
pipe
apt-cache  2573 apt-cacher-ng  137u     IPv6    6959321                  TCP 
apt.xxxx.com:3142->sterope.xxxx.com:50166 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  138r     FIFO        0,6              6959322 
pipe
apt-cache  2573 apt-cacher-ng  139w     FIFO        0,6              6959322 
pipe
apt-cache  2573 apt-cacher-ng  140r     FIFO        0,6              6959323 
pipe
apt-cache  2573 apt-cacher-ng  141w     FIFO        0,6              6959323 
pipe
apt-cache  2573 apt-cacher-ng  142u     IPv4    6961569                  TCP 
asura.xxxx.com:34535->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  153r     FIFO        0,6              6959359 
pipe
apt-cache  2573 apt-cacher-ng  154w     FIFO        0,6              6959359 
pipe
apt-cache  2573 apt-cacher-ng  155u     IPv4    6961591                  TCP 
asura.xxxx.com:34537->ftp-chi.osuosl.org:www (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  156w      REG        9,4    329739   16574894 
/data/apt-cacher-ng/security.debian.org/dists/etch/updates/main/binary-i386/Packages.gz
apt-cache  2573 apt-cacher-ng  173r      REG        9,4    329739   16574894 
/data/apt-cacher-ng/security.debian.org/dists/etch/updates/main/binary-i386/Packages.gz
apt-cache  2573 apt-cacher-ng  174u     IPv6    6959387                  TCP 
apt.xxxx.com:3142->nanook.xxxx.com:34258 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  175r     FIFO        0,6              6959388 
pipe
apt-cache  2573 apt-cacher-ng  176w     FIFO        0,6              6959388 
pipe
apt-cache  2573 apt-cacher-ng  189r     FIFO        0,6              6959504 
pipe
apt-cache  2573 apt-cacher-ng  190w     FIFO        0,6              6959504 
pipe
apt-cache  2573 apt-cacher-ng  195u     IPv6    6959509                  TCP 
apt.xxxx.com:3142->xxxx.com:59521 (CLOSE_WAIT)
apt-cache  2573 apt-cacher-ng  196r     FIFO        0,6              6959510 
pipe
apt-cache  2573 apt-cacher-ng  197w     FIFO        0,6              6959510 
pipe
apt-cache  2573 apt-cacher-ng  208r     FIFO        0,6              6959523 
pipe
apt-cache  2573 apt-cacher-ng  209w     FIFO        0,6              6959523 
pipe
apt-cache  2573 apt-cacher-ng  210u     IPv4    6959524                  TCP 
asura.xxxx.com:34478->ftp-chi.osuosl.org:www (CLOSE_WAIT)
zsh        5548          root  cwd       DIR        9,3       112     636391 
/var/log/apt-cacher-ng
xtail     12808          root  cwd       DIR        9,3       112     636391 
/var/log/apt-cacher-ng
xtail     12808          root    3r      REG        9,3    243039     636428 
/var/log/apt-cacher-ng/apt-cacher.err
xtail     12808          root    4r      REG        9,3   3241849     636429 
/var/log/apt-cacher-ng/apt-cacher.log
epoch2dat 12810          root  cwd       DIR        9,3       112     636391 
/var/log/apt-cacher-ng
111       2573  2573  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:03 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  2751  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  2824  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  2852  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4180  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4181  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4186  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4187  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4188  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4189  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4192  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4193  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4195  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4197  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4198  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4201  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4202  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4203  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4204  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4207  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4208  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4213  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4222  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4223  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4231  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4233  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4234  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4238  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4263  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4268  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  4272  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  8607  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  8608  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  8609  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  8622  0.0   36  0.6 3127932 12820 ?       Ssl  Apr15   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
111       2573  8375  0.0   36  0.6 3127932 12820 ?       Ssl  Apr16   0:00 
/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng 
pidfile:/var/run/apt-cacher-ng/pid SocketPath:/var/run/apt-cacher-ng/socket 
foreground:0
root      3311  3311  0.0    1  0.0   2084   668 pts/11   S+   10:16   0:00 
grep apt-c

Reply via email to