You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Michael Loyd <mi...@loydnet.com> on 2001/08/11 07:27:10 UTC

STAT command hanging

Occasionally James will hang on a pop3 request.  The USER and PASS commands
work without hesitation but the STAT command hangs for about 2 minutes
before anything is returned.  I thought at first it was because the user
inbox had large message files waiting to be processed.  But it does it even
when the user inbox is empty.

Any ideas?

Thanks,
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


Re: STAT command hanging

Posted by Michael Loyd <mi...@loydnet.com>.
Sorry, I should have sent this along with the prev msg.

I'm using James on Sol8 intel jdk1.4 beta from Sun.  It does the same thing
on jdk1.3.1 release.  The mails are stored on disk with the out of the box
config.  As far as I can tell, all users are experiencing this... but only
intermitantly.

Here's a snippet from netfile.log .  The "router" is a connection through a
router which the email programs come through.  And "neptune" is a machine
inside the router which is me using telnet and watching it happen when I
type in the STAT command.  Also, just below that I notice that remote smtp
servers are having the same problem.
-----
2001.08.11 07:57:46 912 (INFO) from POP3: Connection from neptune
(192.168.1.2)
2001.08.11 07:57:46 915 (INFO) from POP3: Command received: USER &&&&&&&&
2001.08.11 07:57:46 916 (INFO) from POP3: Command received: PASS ********
2001.08.11 07:59:46 920 (ERROR) from POP3: Connection timeout on socket
2001.08.11 07:59:57 986 (INFO) from POP3: Connection from router
(192.168.1.1)
2001.08.11 07:59:57 988 (INFO) from POP3: Command received: USER &&&&&&&&
2001.08.11 07:59:57 990 (INFO) from POP3: Command received: PASS ********
2001.08.11 08:01:57 000 (ERROR) from POP3: Connection timeout on socket
2001.08.11 08:02:56 410 (ERROR) from SMTP: Connection timeout on socket
2001.08.11 08:02:56 419 (ERROR) from SMTP: Error processing message:
Exception spooling message: Exception caught while storing Message
Container: javax.mail.MessagingException: IOException;
  nested exception is:
        java.net.SocketException: null fd object
2001.08.11 08:02:56 421 (DEBUG) from SMTP: Socket to brazen.uk-legal.net
closed remotely.
2001.08.11 08:02:56 422 (ERROR) from POP3: Exception during connection from
router (192.168.1.1) : null fd object
2001.08.11 08:02:56 462 (ERROR) from POP3: Exception during connection from
router (192.168.1.1) : null fd object

-----

Concurrently info.log provides
-----
2001.08.11 07:59:57 955 (DEBUG) from SocketManager: ServerSocketAcceptor on
port 110: request arrived
2001.08.11 07:59:57 987 (DEBUG) from TimeManager: Alarm
org.apache.james.pop3server.POP3Handler@43ce4 set by
org.apache.james.pop3server.POP3Handler@43ce4
2001.08.11 07:59:57 989 (DEBUG) from TimeManager: Alarm
org.apache.james.pop3server.POP3Handler@43ce4 resetted
-----

I have stderr piped to stderr.log.  It, of course, doesn't provide
timestamps but I do get quite a few of of the following errors.
-----
javax.mail.MessagingException: IOException;
  nested exception is:
        java.net.SocketException: null fd object
        at javax.mail.internet.MimeMessage.parse(MimeMessage.java:269)
        at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:154)
        at
org.apache.james.core.JamesMimeMessage.loadMessage(JamesMimeMessage.java:28)
        at
org.apache.james.core.JamesMimeMessage.writeTo(JamesMimeMessage.java:53)
        at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:198)
        at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:98)
        at org.apache.james.James.sendMail(James.java:298)
        at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:317)
        at org.apache.james.smtpserver.SMTPHandler.run(SMTPHandler.java:121)
        at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
-----

I should also note that trying it again just a couple of minutes later
provided no errors at all.

thanks again,
Michael

----- Original Message -----
From: "Serge Knystautas" <se...@lokitech.com>
To: <ja...@jakarta.apache.org>
Sent: Saturday, August 11, 2001 5:20 PM
Subject: Re: STAT command hanging


Can you look through your log files and provide anything interesting from
that, as well as more information about your configuration?  Are you storing
messages in a database, in files, is this every user or only certain users,
your OS, etc... whatever you can send will help.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Michael Loyd" <mi...@loydnet.com>
To: <ja...@jakarta.apache.org>
Sent: Saturday, August 11, 2001 1:27 AM
Subject: STAT command hanging


> Occasionally James will hang on a pop3 request.  The USER and PASS
commands
> work without hesitation but the STAT command hangs for about 2 minutes
> before anything is returned.  I thought at first it was because the user
> inbox had large message files waiting to be processed.  But it does it
even
> when the user inbox is empty.
>
> Any ideas?
>
> Thanks,
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
----------------------------------------------------
This message was brought to you by MailHive.net

---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


Re: STAT command hanging

Posted by Serge Knystautas <se...@lokitech.com>.
Can you look through your log files and provide anything interesting from
that, as well as more information about your configuration?  Are you storing
messages in a database, in files, is this every user or only certain users,
your OS, etc... whatever you can send will help.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Michael Loyd" <mi...@loydnet.com>
To: <ja...@jakarta.apache.org>
Sent: Saturday, August 11, 2001 1:27 AM
Subject: STAT command hanging


> Occasionally James will hang on a pop3 request.  The USER and PASS
commands
> work without hesitation but the STAT command hangs for about 2 minutes
> before anything is returned.  I thought at first it was because the user
> inbox had large message files waiting to be processed.  But it does it
even
> when the user inbox is empty.
>
> Any ideas?
>
> Thanks,
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
----------------------------------------------------
This message was brought to you by MailHive.net

---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org