While I was testing, there should only have been one possible thread
(certainly less than 256). Currently my stack size is 8192.
Kind regards,
Elliot.
Samuel Benzaquen wrote:
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Elliot
Mackenzie
Sent: Friday, May 20, 2005 9:24 AM
To: ClamAV users ML
Subject: [Clamav-users] Sendmail out of memory with clmilter
I have run into a problem with sendmail and clmilter. Specifically, when
sendmail is instructed to filter mail through clam (clmilter), telnetting
to sendmail results in an "out of memory, unable to allocate memory"
exception. Sendmail itself is working because it works 100% when
I remove
clmilter.
How many concurrent connections do you have ?
Their is an issue with milters and max number of threads on x86. Depending
of your OS version, there is some default value for the Thread Stack Size.
Basically you can have 2^31/StackSize threads per process because of memory
managment on linux. It doesn't matter how much memory they actually use, the
virtual memory space in the process is reserved.
With Fedora's default (8192KB) there is room for like 256 threads. We
reduced the stack size (just for that process) to 2048KB to let it be 4
times more threads.
With `ulimit -s` you can see the size. With `ulimit -s 2048` you can set the
size.
Anyway... I wrote too much and I don't even know if this is your problem =)
-Samuel
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html