Koozali.org: home of the SME Server

421 per host concurrency limit reached

Offline mdo

  • *
  • 355
  • +0/-0
421 per host concurrency limit reached
« Reply #15 on: August 15, 2006, 09:01:47 PM »
Quote
2006-08-15 13:49:20.427042500 ./run: line 10: ./config: No such file or directory


This was a problem during the betas - upgrade to SME 7.0 final.
Michael
...

Offline mudtoe

  • **
  • 60
  • +0/-0
421 per host concurrency limit reached
« Reply #16 on: September 03, 2006, 08:37:06 AM »
I'm running the final build and I'm having the problem as well.  I upped the settings a lot:

[root@srw-smeserver ~]# db configuration show imap
imap=service
    ConcurrencyLimit=2000
    ConcurrencyLimitPerIP=128
    TCPPort=143
    access=private
    status=enabled
[root@srw-smeserver ~]# db configuration show imaps
imaps=service
    ConcurrencyLimit=2000
    ConcurrencyLimitPerIP=128
    TCPPort=993
    access=public
    status=enabled
[root@srw-smeserver ~]#



However, I'm still getting the error.  I've found this and similar messages in the imap event log:

2006-09-03 02:23:22.930672500 tcpsvd: info: concurrency 3196 172.24.199.215 9/12

Now, I believe that the last two numbers are the in use connections and max connections.  This message came after I changed the settings and rebooted the server.  At the point this message was issued the limit hadn't been reached, but I've seen messages that go up to 13/12, which correspond to the times I'm getting the error message from outlook.  Note, that I have both Outlook and Thunderbird running on the same machine, both connected to SME server (I was doing some testing of the differences between Outlook and Thunderbird IMAP support).  Both have to be running to hit the limit.  In any event it doesn't look like those database configuration settings are effective.  

mudtoe

Offline mudtoe

  • **
  • 60
  • +0/-0
421 per host concurrency limit reached
« Reply #17 on: September 04, 2006, 08:59:34 PM »
Well, it looks like my previous post got "lost" during the server hiccup yesterday, so I'll put it back.  I can't figure out what template to expand in order to make the database changes mentioned above, take effect.   I ended up editing the imap configuration file directly and restarting the service, which corrected the problem.  

I found pieces of configuration for imap in /etc/e-smith/templates/var/service/imap/config, but whenever I try to do an expand-template on that directory, or any of the items there, it fails.

Anyone know the exact template expand syntax to use for this?


mudtoe

Offline brianr

  • *
  • 988
  • +2/-0
421 per host concurrency limit reached
« Reply #18 on: September 07, 2006, 02:12:55 PM »
the templates for the imap and imaps services are in:

/etc/e-smith/templates/var/service/imap/config (and for imaps).

so all you need to do is change the db configuration, then expand the above, then restart imap and imaps.

I did this today to "fix" it for a client.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
421 per host concurrency limit reached
« Reply #19 on: September 08, 2006, 02:53:52 AM »
All you have to do to make the changes is the following

Summarized

config setprop imap ConcurrencyLimit 4000
config setprop imaps ConcurrencyLimit 4000
config setprop imap ConcurrencyLimitPerIP 200
config setprop imaps ConcurrencyLimitPerIP 200

signal-event email-update

Stop and start imap and imaps servers.

/etc/init.d/imap stop
/etc/init.d/imap start
/etc/init.d/imaps stop
/etc/init.d/imaps start

or even ... /etc/init.d/imap restart ... will work I think

Then check settings

config show imap
config show imaps

You can also check your imap and imaps log files and you will see eg: 3/200 and 3/4000 connections etc.

Regards,

Tib

Offline mudtoe

  • **
  • 60
  • +0/-0
421 per host concurrency limit reached
« Reply #20 on: September 08, 2006, 06:11:05 AM »
That did the trick!  I rebooted the server after making the config changes, but I didn't know about the signal-event thing which triggers the template expand.

Thanks much.

mudtoe

Offline brianr

  • *
  • 988
  • +2/-0
421 per host concurrency limit reached
« Reply #21 on: September 08, 2006, 11:23:51 AM »
Actually the reccommended way to restart a service is to use svc -t now, so here is complete script:

config show imap
config show imaps
config setprop imap ConcurrencyLimit 2000
config setprop imap ConcurrencyLimitPerIP 128
config setprop imaps ConcurrencyLimit 2000
config setprop imaps ConcurrencyLimitPerIP 128
config show imap
config show imaps
expand-template /var/service/imap/config
expand-template /var/service/imaps/config
svc -t /var/service/imap
svc -t /var/service/imaps


I have left a script to do this in my contribs area:

http://mirror.contribs.org/smeserver/contribs/bread/imap/setimap.sh
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
421 per host concurrency limit reached
« Reply #22 on: July 19, 2007, 03:44:32 PM »
Hi

Just to report that the script has errors:

#!/bin/sh
#
# Script to set concurrency limits for Imap and Imaps to larger numbers
#
# bjr - 7th September 2006
#
#  http://mirror.contribs.org/smeserver/contribs/bread/imap/setimap.sh
#
config show imap
config show imaps
config setprop imap Concurrency 2000
config setprop imap ConcurrencyIP128
config setprop imaps Concurrency 2000
config setprop imaps ConcurrencyIP 128
config show imap
config show imaps
expand-template /var/service/imap/config
expand-template /var/service/imaps/config
svc -t /var/service/imap
svc -t /var/service/imaps

----------------------------------------------------

Instead of ConcurrencyIP it should read ConcurrencyLimitPerIP or instead of Concurrency it should be ConcurrencyLimit...

Offline brianr

  • *
  • 988
  • +2/-0
421 per host concurrency limit reached
« Reply #23 on: July 19, 2007, 04:33:48 PM »
Hi Andy

Many thanks for that, actually my "local" copy is correct, I must have updated it locally and then not uploaded it to the contribs directory.

Now sorted...

cheers

Brian
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
421 per host concurrency limit reached
« Reply #24 on: July 19, 2007, 05:42:58 PM »
Quote from: "brianr"
Actually the reccommended way to restart a service is to use svc -t now,


Not any more. Please use "sv t /service/xxx".

Offline brianr

  • *
  • 988
  • +2/-0
421 per host concurrency limit reached
« Reply #25 on: July 19, 2007, 06:01:28 PM »
ok, changed that as well....
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline NomadOfNorad

  • ***
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: 421 per host concurrency limit reached
« Reply #26 on: April 08, 2008, 02:22:52 AM »
Actually the reccommended way to restart a service is to use svc -t now, so here is complete script:

config show imap
config show imaps
config setprop imap ConcurrencyLimit 2000
config setprop imap ConcurrencyLimitPerIP 128
config setprop imaps ConcurrencyLimit 2000
config setprop imaps ConcurrencyLimitPerIP 128
config show imap
config show imaps
expand-template /var/service/imap/config
expand-template /var/service/imaps/config
svc -t /var/service/imap
svc -t /var/service/imaps


I have left a script to do this in my contribs area:

http://mirror.contribs.org/smeserver/contribs/bread/imap/setimap.sh

The above link now yields a 404 error.  Is there somewhere else to get the latest version of this script?  Or is there a newer, better way to achieve the same results now?

Offline brianr

  • *
  • 988
  • +2/-0
Re: 421 per host concurrency limit reached
« Reply #27 on: April 08, 2008, 11:48:54 AM »
sorry, I cleaned out the contribs area last week, and must have deleted that.

I have re-instated it now..
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline NomadOfNorad

  • ***
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: 421 per host concurrency limit reached
« Reply #28 on: April 08, 2008, 08:12:51 PM »
Thankee...

I notice the script now ends with
Code: [Select]
svc -t /var/service/imap
svc -t /var/service/imaps
when according to CharlieBrady it should now be something like
Code: [Select]
sv t /service/xxx which you said you'd fixed in the latest version... the one, I guess, which was accidentally deleted.   8-)

Will the script as is still work ok on version 7.3, or do I need to wait for the corrected version?

BTW, if one wanted to suggest that there be added a way to set variables like this from the server-manager... where would one go here to suggest that?  Bugzilla?  Another subboard here at the forum?

Offline brianr

  • *
  • 988
  • +2/-0
Re: 421 per host concurrency limit reached
« Reply #29 on: April 09, 2008, 07:27:26 AM »
ok, fixed it now - sorry about that.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........