Mailing List CGatePro@mail.stalker.com Message #92328
From: Wael Shahin <wael.shahin@gmail.com>
Subject: Too many files open in this process
Date: Mon, 27 Aug 2007 18:33:54 +0300
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
X-Mailer: Evolution 2.10.1

Hello everyone,

I have installed CommuniGate on a machine and started testing it before
we move to the new hardware.
Details as follows:


H/W:
- 2xQuad Intel(R) Xeon(R) CPU X5355  @ 2.66GHz - a total of 8 cores
- 8 GB RAM
- RAID 1 - 15K SAS SCSI hard drives
------------
S/W:
- RedHat RHELv5 2.6.18-8.1.8.el5xen Kernel 64bits
- CommuniGate 5.1.11 x86-64 (64-bit)
------------
SMTP configuration on CommuniGate is as follows:
{
 Advertize8BIT = everybody;
 AdvertizeAUTH = everybody;
 AltDelayFailedTime = 1h;
 AlwaysTryEHLO = NO;
 AlwaysTrySecure = NO;
 ATRNLoginName = "";
 ATRNPassword = "";
 BackupServer = "";
 ChangeDelayAfter = 1h;
 ChannelsPerHost = 10;
 DelayFailedFrom = 30m;
 DelayFailedRecipient = 1h;
 DelayFailedTime = 15m;
 DelayPrompt = 0;
 EmptyPathAttemptsTime = 10m;
 ForeignServer = 192.168.1.18;
 ForwardLogin = "";
 ForwardPassword = "";
 HideReceivedFields = NO;
 InputSizeLimit = 21M;
 Listener = {MaxInputChannels=10000;Ports=({PortNumber=25;});};
 LogLevel = 5;
 MaxAttemptsTime = 2d;
 MaxOutputChannels = 3000;
 ProtocolErrorLimit = 3;
 RCPTFlowLimit = 100;
 RCPTFlowPeriod = 15s;
 RecipientsLimit = 100;
 RelayToBackedUp = YES;
 RelayToClients = simple;
 RelayToStrangers = clients;
 ReleaseQueues = clients;
 ReverseCheck = Disabled;
 SecureHosts = ();
 SendRecipients = 30;
 SendWakeups = NO;
 SendWarningTime = 6h;
 SPFMode = Disabled;
 StartParallel = 15s;
 StartParallelQueue = 50;
 TempDenyLimit = 1000;
 TempDenyTime = 15s;
 UseATRN = NO;
 UseForeignServer = NO;
 VerifyHELO = nobody;
 VerifyReturnPath = nobody;
 WakeupInterval = 30m;
}
-------------------

LOCAL settings:
{
 AlwaysAddEnvelope = YES;
 DelayIfDisabled = 1m;
 DelayIfFull = 1m;
 DelayQueueOnFull = YES;
 Detailing = Disabled;
 DirectMailboxes = YES;
 EnvelopeField = X-Real-To;
 FlowLimit = 3000;
 FlowPeriod = 1s;
 LogLevel = 5;
 MaxChannels = 10;
 OutFlowLimit = 3000;
 OutFlowPeriod = 1s;
 SendWarningTime = 15m;
 WaitIfDisabled = 0;
 WaitIfFull = 0;
}
------------------

I have tested this machine with the software called mstone with the
following parameters:
./mstone popsmtp -b 'SMTPPOPTEST' -d -l 200 -v -t 10m # which means
simulating 200 machines and everything seemed to be working soundly.

I have changed the load to 1000 machines and I got the below errors

16:28:21.737 1 ACCOUNT(test@poptest.nesma.net.sa) [106053475] failed to
deliver. Error Code=too many files open in this process
16:28:21.737 1 DEQUEUER [106053475] LOCAL(test@poptest.nesma.net.sa) failed: too many files open in this process
16:28:21.739 0 TEMPFILE(106053797) failed to create the file Queue/106053797.tmp. Error Code=too many files open in this process
16:28:21.739 1 SMTPI-027913([192.168.1.195]) temp file cannot be created. Error Code=failed to create a temp file
16:28:21.739 1 POP [0.0.0.0]:110 listener aborted: the 'accept' call failed. Error Code=too many files open in this process
16:28:21.740 1 SMTP [0.0.0.0]:25 listener aborted: the 'accept' call failed. Error Code=too many files open in this process
16:28:21.740 0 TEMPFILE(106053798) failed to create the file Queue/106053798.tmp. Error Code=too many files open in this process
16:28:21.740 1 SMTPI-027916([192.168.1.195]) temp file cannot be created. Error Code=failed to create a temp file
16:28:21.741 1 SMTP [0.0.0.0]:25 listener aborted: the 'accept' call failed. Error Code=too many files open in this process
16:28:21.741 1 SMTP [0.0.0.0]:25 listener aborted: the 'accept' call failed. Error Code=too many files open in this process

Also the server hung and stopped responding to port 25 and 110 even from IP addresses other than the testing machine IP addresses.
The service however didn't die and started to respond again in few seconds after i shut down the test.

When I decreased the LOCAL delivery to:
{
 AlwaysAddEnvelope = YES;
 DelayIfDisabled = 1m;
 DelayIfFull = 1m;
 DelayQueueOnFull = YES;
 Detailing = Disabled;
 DirectMailboxes = YES;
 EnvelopeField = X-Real-To;
 FlowLimit = 50;
 FlowPeriod = 1m;
 LogLevel = 5;
 MaxChannels = 10;
 OutFlowLimit = 50;
 OutFlowPeriod = 1m;
 SendWarningTime = 15m;
 WaitIfDisabled = 0;
 WaitIfFull = 0;
}


CommuniGate service died and got the following error

21:27:35.166 1 SMTPI-057956([192.168.1.195]) temp file cannot be created. Error Code=failed to create a temp file
21:27:44.984 0 SYSTEM server 5.1.11 stopped under Linux
21:28:35.658 0 SYSTEM server 5.1.11 started under Linux, open files limit=1024
21:28:35.658 0 SYSTEM process core dump limit=2047M

I would appreciate any comments for the above

Thank you

Wael

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster