邮件列表#106854信息CGatePro@mail.stalker.com
从: Technical Support support@communigate.com <CGatePro@mail.stalker.com>
主题: Re: too many files open
日期: Mon, 11 Jun 2018 12:18:27 +0300
到: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
Hello,

On 2018-06-08 10:30 , Marcel Hochuli mhochuli@a-f.ch wrote:
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

Looks like you've put "ulimit ..." instruction into teh SUPPLPARAMS line in Startup.sh. You should not. The file should contain something like

SUPPLPARAMS="any cgpro command-line parameters"
ulimit -n unlimited

"ulimit" is OS/shell command that changes the limits for the shell session later used to start he CGServer process, it's not a parameter fro the CGServer process itself.

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>


--
Best regards,
Dmitry Akindinov.
=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your
reply.
签署(FEED) 签署(DIGEST) 签署(INDEX) 不签署 联系 Listmaster