Menu

OutOfMemorryError on CentOS 6?

Help
Anonymous
2013-05-28
2013-06-12
  • Anonymous

    Anonymous - 2013-05-28

    Hello, I have installed DavMail on both Fedora and CentOS system, and found that on CentOS there is an OutOfMemorryError after DavMail runs for a few minutes, but it doesn't have this problem on Fedora. Does anybody get same problem as me and how can I possibly resolve it? Thanks in advance a lot. Detailed messages:

    ./davmail.sh
    Exception in thread "ImapConnection-54929-LoadMessage" java.lang.OutOfMemoryError: Java heap space
    at org.codehaus.stax2.ri.Stax2Util$ByteAggregator.aggregateAll(Stax2Util.java:258)
    at com.ctc.wstx.sr.TypedStreamReader.getElementAsBinary(TypedStreamReader.java:197)
    at com.ctc.wstx.sr.TypedStreamReader.getElementAsBinary(TypedStreamReader.java:182)
    at davmail.exchange.ews.EWSMethod.handleMimeContent(EWSMethod.java:979)
    at davmail.exchange.ews.EWSMethod.handleItem(EWSMethod.java:827)
    at davmail.exchange.ews.EWSMethod.handleItems(EWSMethod.java:1138)
    at davmail.exchange.ews.EWSMethod.processResponseStream(EWSMethod.java:1109)
    at davmail.exchange.ews.EWSMethod.processResponseBody(EWSMethod.java:1060)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1749)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at davmail.exchange.ews.EwsExchangeSession.executeMethod(EwsExchangeSession.java:2218)
    at davmail.exchange.ews.EwsExchangeSession.getContent(EwsExchangeSession.java:561)
    at davmail.exchange.ews.EwsExchangeSession.getContent(EwsExchangeSession.java:547)
    at davmail.exchange.ExchangeSession$Message.loadMimeMessage(ExchangeSession.java:1917)
    at davmail.exchange.MessageLoadThread.run(MessageLoadThread.java:30)

     
  • Mickael Guessant

    First step would be to check max heap (-Xmx)

     

Log in to post a comment.