Results 1 to 2 of 2

Thread: Java out of memory error

  1. #1
    Join Date
    Nov 2005
    Rep Power

    Default Java out of memory error

    Hey guys,

    About an hour ago, out of nowhere we had a problem start where the mailbox service would quit running. The pertinent section of mailbox.log is as follows --

    2011-06-02 15:07:29,410 INFO [main] [] index - Initialized Index for mailbox 42 directory: LuceneIndex{mbox=42, LockFactory@2f8bbc98} Analyzer=com.zimbra.cs.index.ZimbraAnalyzer@226e85 04
    2011-06-02 15:07:29,410 INFO [main] [] cache - initializing folder and tag caches for mailbox 42
    2011-06-02 15:07:29,540 INFO [main] [] mbxmgr - Mailbox 42 account 7d0f742b-6483-4f12-834c-d77149c45f96 LOADED
    2011-06-02 15:07:29,726 INFO [main] [] cache - setting message cache size to 2000
    2011-06-02 15:07:30,046 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.NANPHandler
    2011-06-02 15:07:30,049 INFO [main] [] zimlet - Loaded class com.zimbra.cs.zimlet.handler.RegexHandler
    2011-06-02 15:07:42,902 FATAL [main] [] system - out of memory
    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(
    at java.lang.AbstractStringBuilder.expandCapacity(Abs
    at java.lang.AbstractStringBuilder.append(AbstractStr
    at java.lang.StringBuilder.append( 119)
    at java.lang.StringBuilder.append( 115)
    at com.zimbra.common.util.StringUtil.join(StringUtil. java:658)
    at com.zimbra.cs.mime.ParsedMessage.getMainBodyLucene Document(
    at com.zimbra.cs.mime.ParsedMessage.analyzeNonBodyPar ts(
    at com.zimbra.cs.mime.ParsedMessage.analyzeFully(Pars
    at com.zimbra.cs.mailbox.Message.generateIndexData(Me
    at com.zimbra.cs.mailbox.IndexHelper.indexItemList(In
    at com.zimbra.cs.mailbox.IndexHelper.indexDeferredIte msInternal(
    at com.zimbra.cs.mailbox.IndexHelper.indexDeferredIte ms(
    at com.zimbra.cs.mailbox.IndexHelper.maybeIndexDeferr edItems(
    at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.j ava:4665)
    at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.j ava:4658)
    at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.j ava:4646)
    at com.zimbra.cs.redolog.op.CreateMessage.redo(Create
    at com.zimbra.cs.redolog.RedoPlayer.runCrashRecovery(
    at com.zimbra.cs.redolog.RedoLogManager.start(RedoLog
    at com.zimbra.cs.redolog.DefaultRedoLogProvider.start up(
    at com.zimbra.cs.util.Zimbra.startup(
    at com.zimbra.cs.util.Zimbra.startup(
    at com.zimbra.soap.SoapServlet.init( 128)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
    at org.mortbay.jetty.servlet.ServletHolder.initServle t(
    at org.mortbay.jetty.servlet.ServletHolder.doStart(Se
    at org.mortbay.component.AbstractLifeCycle.start(Abst
    at org.mortbay.jetty.servlet.ServletHandler.initializ e(
    at org.mortbay.jetty.servlet.Context.startContext(Con
    at org.mortbay.jetty.webapp.WebAppContext.startContex t(
    at org.mortbay.jetty.handler.ContextHandler.doStart(C

    The failure in the mailbox service obviously takes our mail server completely down. I see the "out of memory" error. I know at least that the server itself is not out of memory - I have 8GB memory and top shows 4GB free (not counting cached and buffers). Importantly, this error is ALWAYS triggered by the same mailbox. I was able to prevent the problem from happening by locking the account in question -- which is obviously only a temporary fix, since the account in question just so happens to be the CEO...

    zmcontrol -v

    Release 7.0.0_GA_3077.RHEL5_64_20110127201852 CentOS5_64 FOSS edition.

    Also, the mailbox is 20GB, but we have users with 40GB+ with no problem.
    Last edited by bjquinn; 06-02-2011 at 01:46 PM.

  2. #2
    Join Date
    Feb 2011
    Rep Power


    I work with bjquinn

    to update ...

    we upgraded zimbra to 7.1.1 and it fixed the issue, I don't know the bug report off the top of my head but there is a test email included as an attachment that will crash the server.

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2012, 02:16 PM
  2. [SOLVED] I broke my server trying to optimize... HELP!
    By myriad in forum Administrators
    Replies: 9
    Last Post: 09-17-2011, 06:46 AM
  3. Replies: 6
    Last Post: 03-14-2011, 04:21 AM
  4. [SOLVED] New zcs 7 install : database errors founds
    By dkbk in forum Administrators
    Replies: 4
    Last Post: 03-01-2011, 05:49 AM
  5. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 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