Results 1 to 2 of 2

Thread: java.lang.OutOfMemoryError: Java heap space

  1. #1
    Join Date
    Apr 2008
    the Netherlands
    Rep Power

    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] [;aname=local@host.local;mid=3;ip =;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(
    at com.zimbra.cs.mime.Mime.getStringContent( :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 (
    at com.zimbra.cs.service.mail.GetMsg.handle(GetMsg.ja va:104)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng
    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
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se
    at org.mortbay.jetty.handler.ContextHandler.handle(Co
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(
    at org.mortbay.jetty.handler.HandlerCollection.handle (
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
    at org.mortbay.jetty.handler.RewriteHandler.handle(Re
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
    at org.mortbay.jetty.Server.handle(
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt
    at org.mortbay.jetty.HttpConnection$ ntent(
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:644)

    Hope to hear what's producing this..



  2. #2
    Join Date
    Sep 2005
    Rep Power


    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 09:12 AM.

Similar Threads

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