Mailing List CGatePro@mail.stalker.com Message #106850
From: Ralf Zenklusen, BAR Informatik AG r.zenklusen@barinformatik.ch <CGatePro@mail.stalker.com>
Subject: AW: too many files open
Date: Fri, 08 Jun 2018 12:31:11 +0200
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
X-Mailer: CommuniGate Pro MAPI Connector 1.52.54.12/1.54.12.21
Hi again,
I don't know much about the MAC version and I tried to understand your info... so I'm mainly guessing...

I was writing about the CGate start script. In Linux this is at /etc/init.d/CommuniGate
Make sure there's a line "ulimit -u 20000" and check that there's not another similar line with a lower limit.
This is not part of the CGate start up parameter in that file. Which could look like this: " SUPPLPARAMS="--TLSSendClientChain --TLSServerHelloExtensions NO --CalDAVAutoSched NO --useNonBlockingSockets --closeStuckSockets"
But looking at your latest mail, your problem is probably not a ulimit but something else.

Regarding your downgrade you should compare the current /var/CommuniGate/Setting folder with the one from your backup.
But obviously it could be something somewhere else and maybe you already restored that folder from a backup.

Otherwise you should contact CGate support. They usually responds quickly.



Kind regards
Ral


-----Ursprüngliche Nachricht-----
Von: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com]
Gesendet: Freitag, 8. Juni 2018 10:24
An: CommuniGate Pro Discussions
Betreff: Re: too many files open

Hi Ralf

Hm, I never changed any ulimit on servers running CGP…

so which start script do you mean?

Actually, this server does not work properly since the up- and downgrade.

We have tenthousands of too many streams, too many HTTPU, too many IMAP and so on.

I upped HTTPU from 50 to 500 (actually 200 open)
I upped IMAP from 1000 to 5000 (actually 1500 open)

No I have E-Mail stuck in the Queue with error "mailbox locking timed-out". They will not go away after retrying…


Marcel

_______________________________________



> Am 08.06.2018 um 09:49 schrieb Ralf Zenklusen, BAR Informatik AG r.zenklusen@barinformatik.ch <CGatePro@mail.stalker.com>:
>
> Hi Marcel,
> not sure but maybe you entered the "ulimit -n 20000" in the wrong location?
>
> It's not a startup option of CGate but a command for your OS.
> I've put this on a separate line of the start script.
>
>
>
> Regards
> Ralf
>
> -----Ursprüngliche Nachricht-----
> Von: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com]
> Gesendet: Freitag, 8. Juni 2018 09:31
> An: CommuniGate Pro Discussions
> Betreff: Re: too many files open
>
> Hi
>
> I have this same error with CGP 6.2.5
>
> I updated CGP 6.1.6 to 6.2.5 yesterday. It then had open files limit=256 !!!
>
> Today I got back to 6.1.6 which has open files limit=119950 (without any Startup options).
>
> I also tried with "ulimit -n 20000", but this doesn't work as these Log-Lines tell me:
>
> CGP-Log:
> 17:27:04.302 0 SYSTEM server 6.2.5 started under Apple MacOS X Darwin(x86-64)
> 17:27:04.302 2 SYSTEM start options: "--Base" "/var/CommuniGate" "ulimit" "-n" "20000"
> 17:27:04.302 2 SYSTEM open files limit=256
>
> Syslog:
> Jun  7 17:27:04 mailserver CommuniGatePro[84113]: Starting CommuniGate Pro
> Jun  7 17:27:04 mailserver CommuniGatePro[84113]: CommuniGate Pro server 6.2.5 started
> Jun  7 17:27:06 mailserver CommuniGatePro[84118]: unknown startup parameter: ulimit
> Jun  7 17:27:06 mailserver CommuniGatePro[84118]: unknown startup parameter: -n
> Jun  7 17:27:06 mailserver CommuniGatePro[84113]: unknown startup parameter: ulimit
> Jun  7 17:27:06 mailserver CommuniGatePro[84113]: unknown startup parameter: -n
> Jun  7 17:27:06 mailserver CommuniGatePro[84118]: unknown startup parameter: 20000
> Jun  7 17:27:06 mailserver CommuniGatePro[84113]: unknown startup parameter: 20000
>
> It runs on an Xserve Quad-Core Xeon with Mac OS X 10.6.8
>
> How can I solve this problem?
>
>
> Marcel
>
> _______________________________________
>
>
>
>> Am 29.01.2015 um 22:21 schrieb Ralf Zenklusen <ralf.zenklusen@barinformatik.ch>:
>>
>> Try with "ulimit -n 20000"
>>
>> Regards
>> Ralf
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com] Im Auftrag von Karl Zander
>> Gesendet: Donnerstag, 29. Januar 2015 20:59
>> An: CommuniGate Pro Discussions
>> Betreff: too many files open
>>
>> We see "too many files open" errors in our logs.  And the server starts flaking out.   We end up restarting CGP.
>>
>> 10:41:07.3024 3 SMTP [172.16.xx.xx]:25 <- [118.169.xx.xx]:63475 rejected, too many files open (fd=8179)
>> 10:41:10.1369 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3926 rejected, too many files open (fd=8179)
>> 10:41:10.2380 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3939 rejected, too many files open (fd=8179)
>> 10:41:10.3395 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3949 rejected, too many files open (fd=8179)
>> 10:41:10.4499 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3965 rejected, too many files open (fd=8179)
>> 10:41:10.5608 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3974 rejected, too many files open (fd=8179)
>> 10:41:10.6717 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3982 rejected, too many files open (fd=8179)
>> 10:41:10.7725 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3991 rejected, too many files open (fd=8179)
>> 10:41:11.2854 3 SMTP [172.16.xx.xx]:25 <- [71.100.147.55]:3999 rejected, too many files open (fd=8179)
>> 10:41:14.3602 3 SMTP [172.16.xx.xx]:25 <- [112.171.241.13]:12703 rejected, too many files open (fd=8179)
>>
>> Looks like a lot of connections from the same address.
>>
>> Running CGP 6.0.11 on Gentoo Linux
>>
>> In the CGP startup script we have
>>
>>   ulimit -u 2048
>>   ulimit -n 8192
>>
>> 10:42:19.4187 0 SYSTEM server 6.0.11 started under Linux(x86-64)
>> 10:42:19.4187 2 SYSTEM start options: "--Base" "/var/CommuniGate" "--Daemon"
>> 10:42:19.4187 2 SYSTEM open files limit=8192
>> 10:42:19.4187 2 SYSTEM process core dump limit=0M
>>
>> How do we mitigate this?
>>
>> --Karl
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list <CGatePro@mail.stalker.com>.
>> To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com> To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
>> To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com> Send administrative queries to  <CGatePro-request@mail.stalker.com>
>>
>>
>>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list <CGatePro@mail.stalker.com>.
>> To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
>> To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
>> To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
>> Send administrative queries to  <CGatePro-request@mail.stalker.com>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list <CGatePro@mail.stalker.com>.
> To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
> To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
> To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
> Send administrative queries to  <CGatePro-request@mail.stalker.com>
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list <CGatePro@mail.stalker.com>.
> To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
> To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
> To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
> Send administrative queries to  <CGatePro-request@mail.stalker.com>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>



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