[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [RaQ4] "Too many open files" sending mail



More infos :

I tried :
# echo "16384" > /proc/sys/fs/file-max

and my script stops at 784 sends.

sendmail opens a new process for each mail I send : I had 750 sendmail
processes ! 
Can I limit the number of sendmail processes ?
Can I set the /proc/sys/fs/file-max to a higer value ? What is the max
acceptable value for a RaQ4 ?





-----Message d'origine-----
De : Pierre-Alain.Pulfer@xxxxxx [mailto:Pierre-Alain.Pulfer@xxxxxx]
Envoyé : lundi, 7. octobre 2002 09:47
À : cobalt-users@xxxxxxxxxxxxxxx
Objet : [cobalt-users] [RaQ4] "Too many open files" sending mail


Hello,

We need to send more than 2000 mails with a php script. We use the "mail"
function.

The script stops at about 180 mails sent. I have the system message "Too
many open files".

The same problem appears with this shell script :

#!/bin/sh
f=0
g=1000
while [ $f -le $g ]
        do
        f=`expr $f + 1`
        echo $f
        echo "salut"
        ls -al | mail -s test-unix me@xxxxxxxxxx
        done


I tried to increase the max number of open files (# ulimit -n 8192, am I
wrong ?), with same bad results.
If I put a "sleep 2" on the loop, everithing is working fine, but this is
not a solution....

Any idea ?



Pierre-Alain PULFER
Ingénieur système
---------------------------------------------------------
Télévision Suisse Romande
20, quai Ernest-Ansermet	tél : (+4122) 708 94 54
CH-1205 Genève		fax: (+4122) 708 98 26

E-Mail : Pierre-Alain.Pulfer@xxxxxx


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users