RES: [tpop3d-discuss]owing to high load - tpop3d

ana.weidlich@procempa.com.br ana.weidlich at procempa.com.br
Mon, 23 Jan 2006 22:00:13 -0300


Hi Chris,
The command "pgrep tpop3d | wc -l" returns between 10 and 20.=20
But the command "netstat -an|grep 110 |wc" returns     509    3054   =
40720
We think that values are so high. But we dont see a direct relation =
with the
max-children.
We have about 14.000 mailboxes.

Tks,
Ana



-----Mensagem original-----
De: Chris Lightfoot [mailto:chris@sphinx.mythic-beasts.com]Em nome de
Chris Lightfoot
Enviada em: segunda-feira, 23 de janeiro de 2006 20:43
Para: ana.weidlich@procempa.com.br
Cc: tpop3d-discuss@lists.beasts.org
Assunto: Re: [tpop3d-discuss]owing to high load - tpop3d


On Mon, Jan 23, 2006 at 09:30:43PM -0300, ana.weidlich@procempa.com.br
wrote:
> Hi,
> We used tpop3d in a Red Hat server without problems. Now we migrate =
to a
> Debian server.
> And we have this problem in log:
>=20
> Jan 23 10:08:01 pwmail tpop3d[1846]: listeners_post_select: rejected
> connection from 200.96.103.
> 165 to local address 200.96.103.165:110 owing to high load
> Jan 23 10:08:01 pwmail tpop3d[1846]: listeners_post_select: rejected
> connection from 200.208.131
> .203 to local address 200.208.131.203:110 owing to high load
>=20
> The users can=B4t logon. It=B4s too slow.
>=20
> We think can be a problem with the max-children. Our config file is =
the
same
> we had on the old Red Hat server:
> listen-address: 0.0.0.0
> max-children: 200
> timeout-seconds: 600
> mailbox: bsd:/var/spool/mail/$(user)
> auth-passwd-enable: true
> log-facility: local6
> authcache-enable: true
> authcache-entry-lifetime: 3600
> mailspool-index: /var/spool/tpop3d-i/$(escaped_name)

That error occurs when there are more than 2 *
max-children connections in the login phase (i.e.,
unauthenticated connections). How many tpop3d child
processes do you typically have? (pgrep tpop3d | wc -l
will give a rough answer.)

You could try increasing the number of pre-authenticated
connections by altering this line of netloop.c:

    max_connections =3D 2 * max_running_children;

--=20
``I had one [good seventh grade teacher]. Smart, witty, excellent
  communicator, young, and beautiful. Naturally, she fell over
  dead in class from a brain haemorrhage.'' (seen on the internet)