Results 1 to 2 of 2

Thread: java.lang.OutOfMemoryError: Java heap space

  1. #1
    Join Date
    Apr 2008
    Location
    the Netherlands
    Posts
    22
    Rep Power
    7

    Default java.lang.OutOfMemoryError: Java heap space

    Hi all,

    I've run into kind of a strange sync problem. My ZD gave me an error that the server was unavailable, but checking the webinterface it was purring like a kitten. So i thought it was a network glitch. Just in case , as a control i set up a ping to my server and to google. About 10 minutes later i got this error again, and checking the pings, no packet loss.

    The ZD logs produces something about out of memory.. I have an ubuntu 8.04 running with 2 Gb internal , and checking my mem usage reveals that i'm not out at all.

    2008-08-11 10:12:09,707 FATAL [btpool0-21] [name=mayk@mayk.org;aname=local@host.local;mid=3;ip =127.0.0.1;ua=ZimbraWebClient - PRISM (Linux)/0.0;] system - handler exception
    java.lang.OutOfMemoryError: Java heap space
    at java.lang.AbstractStringBuilder.expandCapacity(Unk nown Source)
    at java.lang.AbstractStringBuilder.append(Unknown Source)
    at java.lang.StringBuilder.append(Unknown Source)
    at com.zimbra.cs.mime.Mime.decodeText(Mime.java:773)
    at com.zimbra.cs.mime.Mime.getStringContent(Mime.java :508)
    at com.zimbra.cs.service.mail.ToXML.addContent(ToXML. java:1696)
    at com.zimbra.cs.service.mail.ToXML.addPart(ToXML.jav a:1618)
    at com.zimbra.cs.service.mail.ToXML.addParts(ToXML.ja va:1515)
    at com.zimbra.cs.service.mail.ToXML.encodeMessageAsMP (ToXML.java:752)
    at com.zimbra.cs.service.mail.GetMsg.handle(GetMsg.ja va:104)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:411)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:268)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:160)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:188)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:716)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:406)
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:211)
    at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.handler.RewriteHandler.handle(Re writeHandler.java:176)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:844)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:644)


    Hope to hear what's producing this..

    Greets,

    Mayk

  2. #2
    Join Date
    Sep 2005
    Posts
    78
    Rep Power
    10

    Default

    Looks like you have a message with a really large body or large text attachment. Do you know which message is causing the problem? If not, turn on debug logging for the zimbra.soap category and repro the OOME. This will log the GetMsg request, which has the message ID. I filed bug 30745 for this issue:

    Bug 30745 - OOME when handling GetMsg
    Last edited by bburtin; 08-12-2008 at 10:12 AM.

Similar Threads

  1. Current space used by a user (quota)
    By jasper in forum Developers
    Replies: 0
    Last Post: 06-18-2008, 07:18 AM
  2. Replies: 1
    Last Post: 06-06-2007, 08:21 AM
  3. Servlets failing
    By michael-fig in forum Installation
    Replies: 4
    Last Post: 03-24-2007, 01:46 PM
  4. ZIMBRA!!!!! Error zmcontrol status and others
    By orison in forum Installation
    Replies: 8
    Last Post: 02-03-2007, 07:52 PM
  5. java.lang.OutOfMemoryError: Java heap space
    By igeorg in forum Administrators
    Replies: 20
    Last Post: 08-25-2006, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •