-------- Original-Nachricht --------
> Datum: Fri, 02 Oct 2009 20:57:13 +0200
> Von: Julien Valroff <jul...@kirya.net>
> An: dspam-devel@lists.sourceforge.net
> Betreff: [Dspam-devel] Number of open pipes

> Hi,
> 
Hallo Julien,


> I have had this error twice within +/- one month: 
> Sep 30 15:16:52 nix dovecot: deliver(u...@domain.com):
> open(/home/vmail/domain.com/user/maildirsize) failed: Too many open files
> 
> I know, dovecot reports this error, but I am wondering if dspam is not
> the cause of this issue.
> 
> I use the following configuration:
> Postfix -> dspam -> dovecot
> such as described in the wiki:
> http://sourceforge.net/apps/mediawiki/dspam/index.php?title=Integrate_DSPAM_into_the_Debian-based_ISPmail_setup
> 
I have another type of setup but anyway...


> I am using the latest git code under debian stable.
> 
I am using latest GIT code under Gentoo Linux.


> After running for a while:
> # lsof -nu dspam | wc -l
> 502
> 
The same here (running DSPAM for a while) (I run DSPAM as root):
nyx ~ # lsof -n -c dspam|wc -l
39
nyx ~ #


> But just after restarting dspam:
> # lsof -nu dspam
> 33
> 
Same here:
nyx ~ # /etc/init.d/dspam restart;lsof -n -c dspam|wc -l
* Caching service dependencies...                 [ ok ]
* Stopping DSPAM...                               [ ok ]
* Starting DSPAM...                               [ ok ]
38                                                                              
 
nyx ~ #


> I have a lot of the following pipes:
> dspam   19494 dspam  468r  FIFO        0,5         7581437 pipe
> dspam   19494 dspam  469r  FIFO        0,5         7585705 pipe
> dspam   19494 dspam  470r  FIFO        0,5         7589680 pipe
> dspam   19494 dspam  471r  FIFO        0,5         7593653 pipe
> dspam   19494 dspam  472r  FIFO        0,5         7595531 pipe
> dspam   19494 dspam  473r  FIFO        0,5         7595593 pipe
> dspam   19494 dspam  474r  FIFO        0,5         7597448 pipe
> dspam   19494 dspam  475r  FIFO        0,5         7598314 pipe
> dspam   19494 dspam  476r  FIFO        0,5         7599534 pipe
> dspam   19494 dspam  477r  FIFO        0,5         7601936 pipe
> dspam   19494 dspam  478r  FIFO        0,5         7602075 pipe
> dspam   19494 dspam  479r  FIFO        0,5         7611437 pipe
> dspam   19494 dspam  480r  FIFO        0,5         7615635 pipe
> dspam   19494 dspam  481r  FIFO        0,5         7621285 pipe
> dspam   19494 dspam  482r  FIFO        0,5         7622826 pipe
> dspam   19494 dspam  483r  FIFO        0,5         7624179 pipe
> 
I have none of them. All I do have is:
nyx ~ # lsof -n -c dspam
COMMAND  PID USER   FD   TYPE     DEVICE SIZE/OFF     NODE NAME
dspam   6184 root  cwd    DIR        9,2     4096      256 /
dspam   6184 root  rtd    DIR        9,2     4096      256 /
dspam   6184 root  txt    REG      253,4    91980   586749 /usr/bin/dspam
dspam   6184 root  mem    REG      253,4   108008 30238882 
/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/libgcc_s.so.1
dspam   6184 root  mem    REG        9,2    79324      725 /lib/libz.so.1.2.3
dspam   6184 root  mem    REG      253,4  2085784  9018027 
/usr/lib/mysql/libmysqlclient.so.16.0.0
dspam   6184 root  mem    REG      253,4    46592 25411851 
/usr/lib/dspam/libmysql_drv.so.7.0.0
dspam   6184 root  mem    REG        9,2    42520    12802 
/lib/libnss_files-2.10.1.so
dspam   6184 root  mem    REG        9,2     9684      514 /lib/libdl-2.10.1.so
dspam   6184 root  mem    REG        9,2   149340      355 /lib/libm-2.10.1.so
dspam   6184 root  mem    REG        9,2  1319280      336 /lib/libc-2.10.1.so
dspam   6184 root  mem    REG        9,2    88408      728 
/lib/libpthread-2.10.1.so
dspam   6184 root  mem    REG      253,4    92156 29428122 
/usr/lib/libdspam.so.7.0.0
dspam   6184 root  mem    REG        9,2   117280      275 /lib/ld-2.10.1.so
dspam   6184 root    0u   CHR      136,2      0t0        5 /dev/pts/2
dspam   6184 root    1u   CHR        1,3      0t0     1634 /dev/null
dspam   6184 root    2u   CHR        1,3      0t0     1634 /dev/null
dspam   6184 root    3u  unix 0xec810280      0t0 10658551 socket
dspam   6184 root    4u  unix 0xeccfa380      0t0 10658553 socket
dspam   6184 root    5u  unix 0xed2fbd80      0t0 10658555 socket
dspam   6184 root    6u  unix 0xeedb4100      0t0 10658557 socket
dspam   6184 root    7u  unix 0xf2014780      0t0 10658559 socket
dspam   6184 root    8u  unix 0xedd5cd00      0t0 10658561 socket
dspam   6184 root    9u  unix 0xecdabd80      0t0 10658563 socket
dspam   6184 root   10u  unix 0xed2fc080      0t0 10658565 socket
dspam   6184 root   11u  unix 0xf0d2f780      0t0 10658567 socket
dspam   6184 root   12u  unix 0xf1143980      0t0 10658569 socket
dspam   6184 root   13u  unix 0xeedb4b00      0t0 10658571 socket
dspam   6184 root   14u  unix 0xeddb7300      0t0 10658573 socket
dspam   6184 root   15u  unix 0xeddb7500      0t0 10658575 socket
dspam   6184 root   16u  unix 0xf4110900      0t0 10658577 socket
dspam   6184 root   17u  unix 0xf4110500      0t0 10658579 socket
dspam   6184 root   18u  unix 0xd4e5d280      0t0 10658581 socket
dspam   6184 root   19u  unix 0xd1d1f280      0t0 10658583 socket
dspam   6184 root   20u  unix 0xd1d1f080      0t0 10658585 socket
dspam   6184 root   21u  unix 0xf1de7b00      0t0 10658587 socket
dspam   6184 root   22u  unix 0xf1de7700      0t0 10658589 socket
dspam   6184 root   23u  unix 0xf1de7300      0t0 10658591 
/var/run/dspam/dspam.sock
nyx ~ #


> I think it then hits the default limit:
> ds...@server:~$ ulimit -n
> 1024
> 
1024 is small for a server (from my viewpoint). I currently have:
nyx ~ # ulimit -n
101062
nyx ~ #


> I am not confortable with this, maybe someone could try and explain
> whether this is normal, or what could be done to avoid this, or might be
> a bug somewhere in dspam etc.
> 
Do you know to where those pipes are open? Pipes to Dovecot? Or anything else? 
Can you check?


> Thanks in advance for your ideas, comments and explanations.
> 
> Cheers,
> Julien
> 
Steve
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to