Re: [Dovecot] 1.0.5: many pop3-login processes?

2008-04-18 Thread Timo Sirainen
On Mon, 2007-10-29 at 12:18 -0400, Alan Ferrency wrote:

> I expect this is the reality of the situation: some port-scanner or
> something somewhere is occasionally hitting the server enough to
> increase the pop3-login process count, but nothing ever uses them
> after that.
> 
> The processes aren't doing anything or using many resources, it's just
> annoying that they hang around forever without serving any purpose. Once
> the process count goes up, do these login processes ever give up and
> start dying off?

They don't automatically kill themselves, but once new connections come
in new login processes shouldn't be created so their count should
eventually drop.

For v2.0 I've already rewritten this code and the processes can kill
themselves if they haven't done anything for a while.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-10-29 Thread Alan Ferrency
On Sat, 27 Oct 2007, Timo Sirainen wrote:

> On Thu, 2007-10-11 at 14:36 -0400, Alan Ferrency wrote:
> > On this particular server we have exactly 2 different users who log in
> > via POP, and they seem to be set up to log in automatically once every
> > 10 minutes.
> >
> > imap-login process count is reasonable: there are 11 processes running
> > and it doesn't seem to increase.  pop3-login is the issue.
> >
> > I notice in the logs, that the number of imap-login Login: lines matches
> > the number of Disconnect: lines in the log. For pop3-login, there are
> > 111 Login: lines and only 8 Disconnect: lines. However, there are no
> > pop3 processes currently running, as far as I can tell.


Looking further at the logs, I don't think I saw an actual problem
there, I was just misinterpreting the logs.

In any case, I was able to recreate the 128 pop3-login processes by
hammering the server with many simultaneous connection attempts even
without doing anything on those connections.

I expect this is the reality of the situation: some port-scanner or
something somewhere is occasionally hitting the server enough to
increase the pop3-login process count, but nothing ever uses them
after that.

The processes aren't doing anything or using many resources, it's just
annoying that they hang around forever without serving any purpose. Once
the process count goes up, do these login processes ever give up and
start dying off?

Thanks,

Alan


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-10-27 Thread Timo Sirainen
On Thu, 2007-10-11 at 14:36 -0400, Alan Ferrency wrote:
> On this particular server we have exactly 2 different users who log in
> via POP, and they seem to be set up to log in automatically once every
> 10 minutes.
> 
> imap-login process count is reasonable: there are 11 processes running
> and it doesn't seem to increase.  pop3-login is the issue.
> 
> I notice in the logs, that the number of imap-login Login: lines matches
> the number of Disconnect: lines in the log. For pop3-login, there are
> 111 Login: lines and only 8 Disconnect: lines. However, there are no
> pop3 processes currently running, as far as I can tell.

Find out what the other reasons for disconnects are. The possibilities
are:

1. It crashed. Can you find any errors/fatals/panics?

2. Client was disconnected by Dovecot: "Couldn't open INBOX", "Mailbox
init failed", "Input line too long", "Server shutting down".



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-10-11 Thread Alan Ferrency
>
> I notice in the logs, that the number of imap-login Login: lines matches
> the number of Disconnect: lines in the log. For pop3-login, there are
> 111 Login: lines and only 8 Disconnect: lines.

Nevermind. A closer look at the logs shows this is a complete red
herring, the logs are unrelated.

Still digging.

Alan

> Thanks!
> Alan Ferrency
> pair Networks, Inc.
> [EMAIL PROTECTED]
>
>
> On Sun, 30 Sep 2007, Timo Sirainen wrote:
>
> > On Fri, 2007-09-28 at 17:22 -0400, Alan Ferrency wrote:
> > > We are running dovecot 1.0.5 on a test server, with FreeBSD 6.2
> > > (though I have noticed the same problem since dovecot versions in the
> > > 0.99 range).
> > >
> > > We don't have very many simultaneous pop/imap users, but we have a
> > > proliferation of pop3-login processes.
> > >
> > > Currently we have 128 such processes. We have 11 imap-login processes,
> > > but only a few actual imap processes running.
> > >
> > > Is this normal?  Can we stop it?
> >
> > Do you have lots of login attempts? If you have more than 64 concurrent
> > POP3 login attempts, you'll get 128 pop3-login processes.
> > http://wiki.dovecot.org/LoginProcess explains more.
> >
> >
>


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-10-11 Thread Alan Ferrency
Hello,

> Do you have lots of login attempts? If you have more than 64 concurrent
> POP3 login attempts, you'll get 128 pop3-login processes.
> http://wiki.dovecot.org/LoginProcess explains more.

I finally got a chance to check this out, and it does not seem to
explain what's going on with my system.

On this particular server we have exactly 2 different users who log in
via POP, and they seem to be set up to log in automatically once every
10 minutes.

imap-login process count is reasonable: there are 11 processes running
and it doesn't seem to increase.  pop3-login is the issue.

I notice in the logs, that the number of imap-login Login: lines matches
the number of Disconnect: lines in the log. For pop3-login, there are
111 Login: lines and only 8 Disconnect: lines. However, there are no
pop3 processes currently running, as far as I can tell.

So this seems like it may be related to a misbehaving POP client, but
I'd expect the pop3-login processes to die off anyway.

I'm using the default login_* settings.

Any more insight on this?

Thanks!
Alan Ferrency
pair Networks, Inc.
[EMAIL PROTECTED]


On Sun, 30 Sep 2007, Timo Sirainen wrote:

> On Fri, 2007-09-28 at 17:22 -0400, Alan Ferrency wrote:
> > We are running dovecot 1.0.5 on a test server, with FreeBSD 6.2
> > (though I have noticed the same problem since dovecot versions in the
> > 0.99 range).
> >
> > We don't have very many simultaneous pop/imap users, but we have a
> > proliferation of pop3-login processes.
> >
> > Currently we have 128 such processes. We have 11 imap-login processes,
> > but only a few actual imap processes running.
> >
> > Is this normal?  Can we stop it?
>
> Do you have lots of login attempts? If you have more than 64 concurrent
> POP3 login attempts, you'll get 128 pop3-login processes.
> http://wiki.dovecot.org/LoginProcess explains more.
>
>


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-10-01 Thread Alan Ferrency
On Sun, 30 Sep 2007, Timo Sirainen wrote:

> On Fri, 2007-09-28 at 17:22 -0400, Alan Ferrency wrote:
> > Hello,
> >
> > We are running dovecot 1.0.5 on a test server, with FreeBSD 6.2
> > (though I have noticed the same problem since dovecot versions in the
> > 0.99 range).
> >
> > We don't have very many simultaneous pop/imap users, but we have a
> > proliferation of pop3-login processes.
> >
> > Currently we have 128 such processes. We have 11 imap-login processes,
> > but only a few actual imap processes running.
> >
> > Is this normal?  Can we stop it?
>
> Do you have lots of login attempts? If you have more than 64 concurrent
> POP3 login attempts, you'll get 128 pop3-login processes.

We don't have many concurrent login attempts, but we do have many in
sequence, in the form of automatic mail checking by clients.

> http://wiki.dovecot.org/LoginProcess explains more.

I'll check this and report back anything I find.  Thanks.

Alan


Re: [Dovecot] 1.0.5: many pop3-login processes?

2007-09-30 Thread Timo Sirainen
On Fri, 2007-09-28 at 17:22 -0400, Alan Ferrency wrote:
> Hello,
> 
> We are running dovecot 1.0.5 on a test server, with FreeBSD 6.2
> (though I have noticed the same problem since dovecot versions in the
> 0.99 range).
> 
> We don't have very many simultaneous pop/imap users, but we have a
> proliferation of pop3-login processes.
> 
> Currently we have 128 such processes. We have 11 imap-login processes,
> but only a few actual imap processes running.
> 
> Is this normal?  Can we stop it?

Do you have lots of login attempts? If you have more than 64 concurrent
POP3 login attempts, you'll get 128 pop3-login processes.
http://wiki.dovecot.org/LoginProcess explains more.



signature.asc
Description: This is a digitally signed message part


[Dovecot] 1.0.5: many pop3-login processes?

2007-09-28 Thread Alan Ferrency
Hello,

We are running dovecot 1.0.5 on a test server, with FreeBSD 6.2
(though I have noticed the same problem since dovecot versions in the
0.99 range).

We don't have very many simultaneous pop/imap users, but we have a
proliferation of pop3-login processes.

Currently we have 128 such processes. We have 11 imap-login processes,
but only a few actual imap processes running.

Is this normal?  Can we stop it?

Is anyone else successfully running dovecot on FreeBSD 6.2?

Thanks for your help.

Alan Ferrency
pair Networks, Inc.
[EMAIL PROTECTED]