You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "maximeloridan (JIRA)" <se...@james.apache.org> on 2006/10/04 12:24:19 UTC

[jira] Created: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages 
---------------------------------------------------------------------------------------------------------

                 Key: JAMES-649
                 URL: http://issues.apache.org/jira/browse/JAMES-649
             Project: James
          Issue Type: Bug
          Components: POP3Server
    Affects Versions: 2.3.0rc4, 2.3.0rc3
         Environment: Operating system: Windows XP SP2
            Reporter: maximeloridan
            Priority: Critical


First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.

To reproduce it:
1/ Start James and create a user "userTest".
2/ Send 5000 messages to "userTest"
3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)

Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Re: [jira] Created: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by Stefano Bagnara <ap...@bago.org>.
Hi,

I just committed an untested patch to trunk to try to fix this issue.
You can find a binary build of the current trunk here:

http://jamesdev.void.it:8080/continuum/servlet/browse?file=10/dist/james-3.0-dev/downloads/bin/james-binary-3.0-dev.zip

Please tell me if you test this and if it works.
Stefano

maximeloridan (JIRA) wrote:
> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages 
> ---------------------------------------------------------------------------------------------------------
> 
>                  Key: JAMES-649
>                  URL: http://issues.apache.org/jira/browse/JAMES-649
>              Project: James
>           Issue Type: Bug
>           Components: POP3Server
>     Affects Versions: 2.3.0rc4, 2.3.0rc3
>          Environment: Operating system: Windows XP SP2
>             Reporter: maximeloridan
>             Priority: Critical
> 
> 
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> 
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> 
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE
> 



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


[jira] Updated: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-649?page=all ]

Stefano Bagnara updated JAMES-649:
----------------------------------

    Fix Version/s: 2.3.0rc5
                       (was: Trunk)

being backported

> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc4, 2.3.0rc3
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>             Fix For: 2.3.0rc5
>
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-649?page=all ]

Norman Maurer reassigned JAMES-649:
-----------------------------------

    Assignee: Norman Maurer

> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc3, 2.3.0rc4
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-649?page=all ]

Norman Maurer updated JAMES-649:
--------------------------------


Change fix version

> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc4, 2.3.0rc3
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>             Fix For: 2.3.0rc5
>
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-649?page=all ]

Norman Maurer resolved JAMES-649.
---------------------------------

    Fix Version/s: Trunk
       Resolution: Fixed

seems to be fixed.

> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc4, 2.3.0rc3
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>             Fix For: Trunk
>
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-649?page=comments#action_12439855 ] 
            
Norman Maurer commented on JAMES-649:
-------------------------------------

Can you please tell us what for a repository you use ? file, jdbc,dbmail ?


> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc3, 2.3.0rc4
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-649?page=comments#action_12439873 ] 
            
Stefano Bagnara commented on JAMES-649:
---------------------------------------

Are you able to change code and try again?
I would like to know what is the result if you add this method to MimeMessageWrapper:
----
    /**
     * @see javax.mail.internet.MimeMessage#getRawInputStream()
     */
    public InputStream getRawInputStream() throws MessagingException {
        if (!messageParsed && !isModified() && source != null) {
            InputStream is;
            try {
                is = source.getInputStream();
                // skip the headers.
                new MailHeaders(is);
                return is;
            } catch (IOException e) {
                throw new MessagingException("Unable to read the stream: " + e.getMessage(), e);
            }
        } else return super.getRawInputStream();
    }
------


> error "OutOfMemoryError: JAVA HEAP SPACE" in connections log file when doing a POP TOP for 4000 messages
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-649
>                 URL: http://issues.apache.org/jira/browse/JAMES-649
>             Project: James
>          Issue Type: Bug
>          Components: POP3Server
>    Affects Versions: 2.3.0rc3, 2.3.0rc4
>         Environment: Operating system: Windows XP SP2
>            Reporter: maximeloridan
>         Assigned To: Norman Maurer
>            Priority: Critical
>
> First I reproduced this bug on 2.3.0rc3 and 2.3.0rc4 and it's easy to reproduce it every time.
> To reproduce it:
> 1/ Start James and create a user "userTest".
> 2/ Send 5000 messages to "userTest"
> 3/ Do a POP TOP to retrieve all the headers of messages from "userTest". To do this, use a software as Outlook. Configure it to retrieve mail from "userTest" and then click to retrieve the headers ONLY. DO NOT retrieve all the content of the message, otherwise you will do a POP RETR which is not a POP TOP! (Nota: the POP RETR is actually working, and I know that most of the time, people do retrieve all the content of the mail and not only the headers.. But it should work)
> Finally you just have to wait the crash of JAMES. It will appear around the 3500 message...
> The error is written in the log folder in the file connections. The error is OutOfMemoryError: JAVA HEAP SPACE

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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