Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: java.lang.OutOfMemoryError: Java heap space

  1. #1
    Join Date
    Mar 2008
    Posts
    15
    Rep Power
    7

    Default java.lang.OutOfMemoryError: Java heap space

    Hey there guys,

    I've been using Zimbra Desktop for quite awhile and have been very happy with it. Another employee wanted to start testing it as well and we immediately ran into a problem.

    The sync of his mailbox starts but then dies with the bellow error message at the end of the log.

    Now I already looked and saw that this was "fixed" for a previous iteration but I'm now running into it again running the latest version of Zimbra Desktop.

    Any ideas? Can I post more information that would be helpful?

    Directly before this message it appears to be syncing the calendar, and the behavior is you see the zdesktop.exe process use more and more memory until roughly 315MB when it dies.

    Originally this employee was running it on his machine with 1GB of memory, so we figured it was memory and upped his memory to 1.5GB which had no affect.

    Then I decided to try it on my machine which has 4GB of memory and the SAME EXACT issue! Something specific with his mailbox but what and how to fix it?

    Thanks,

    Iskondi

    2009-03-10 13:12:33,380 FATAL [mid=5] [mid=5;] system - Caught out of memory error
    java.lang.OutOfMemoryError: Java heap space
    at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtili ty.java:240)
    at javax.mail.internet.MimeMessage.parse(MimeMessage. java:325)
    at javax.mail.internet.MimeMessage.<init>(MimeMessage .java:196)
    at com.zimbra.cs.mime.Mime$FixedMimeMessage.<init>(Mi me.java:140)
    at com.zimbra.cs.service.mail.ParseMimeMessage.import MsgSoap(ParseMimeMessage.java:109)
    at com.zimbra.cs.service.mail.SetCalendarItem.getSetC alendarItemData(SetCalendarItem.java:151)
    at com.zimbra.cs.service.mail.SetCalendarItem.parseSe tAppointmentRequest(SetCalendarItem.java:209)
    at com.zimbra.cs.mailbox.InitialSync.setCalendarItem( InitialSync.java:801)
    at com.zimbra.cs.mailbox.InitialSync.syncCalendarItem (InitialSync.java:679)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:264)
    at com.zimbra.cs.mailbox.InitialSync.prioritySync(Ini tialSync.java:394)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:374)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:384)
    at com.zimbra.cs.mailbox.InitialSync.sync(InitialSync .java:171)
    at com.zimbra.cs.mailbox.InitialSync.sync(InitialSync .java:154)
    at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync .java:180)
    at com.zimbra.cs.mailbox.OfflineMailbox.sync(OfflineM ailbox.java:140)
    at com.zimbra.cs.mailbox.OfflineMailbox.syncOnTimer(O fflineMailbox.java:121)
    at com.zimbra.cs.mailbox.DesktopMailbox$1.run(Desktop Mailbox.java:436)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)

  2. #2
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    8

    Default

    There is probably an event in his calendar that somehow got corrupted on server.

    Can you turn on Debug Logging (Account Setup...) and try to figure out which event was causing the problem by looking at the "SOAP requests" captured in log/zdesktop.log, when it runs out of memory? (if you attach the log/zdesktop.log, we may help you to locate the event)

    Once you know which event is causing this, you can login using web client to delete it and recreate it if needed.





    Quote Originally Posted by iskondi View Post
    Hey there guys,

    I've been using Zimbra Desktop for quite awhile and have been very happy with it. Another employee wanted to start testing it as well and we immediately ran into a problem.

    The sync of his mailbox starts but then dies with the bellow error message at the end of the log.

    Now I already looked and saw that this was "fixed" for a previous iteration but I'm now running into it again running the latest version of Zimbra Desktop.

    Any ideas? Can I post more information that would be helpful?

    Directly before this message it appears to be syncing the calendar, and the behavior is you see the zdesktop.exe process use more and more memory until roughly 315MB when it dies.

    Originally this employee was running it on his machine with 1GB of memory, so we figured it was memory and upped his memory to 1.5GB which had no affect.

    Then I decided to try it on my machine which has 4GB of memory and the SAME EXACT issue! Something specific with his mailbox but what and how to fix it?

    Thanks,

    Iskondi

    2009-03-10 13:12:33,380 FATAL [mid=5] [mid=5;] system - Caught out of memory error
    java.lang.OutOfMemoryError: Java heap space
    at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtili ty.java:240)
    at javax.mail.internet.MimeMessage.parse(MimeMessage. java:325)
    at javax.mail.internet.MimeMessage.<init>(MimeMessage .java:196)
    at com.zimbra.cs.mime.Mime$FixedMimeMessage.<init>(Mi me.java:140)
    at com.zimbra.cs.service.mail.ParseMimeMessage.import MsgSoap(ParseMimeMessage.java:109)
    at com.zimbra.cs.service.mail.SetCalendarItem.getSetC alendarItemData(SetCalendarItem.java:151)
    at com.zimbra.cs.service.mail.SetCalendarItem.parseSe tAppointmentRequest(SetCalendarItem.java:209)
    at com.zimbra.cs.mailbox.InitialSync.setCalendarItem( InitialSync.java:801)
    at com.zimbra.cs.mailbox.InitialSync.syncCalendarItem (InitialSync.java:679)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:264)
    at com.zimbra.cs.mailbox.InitialSync.prioritySync(Ini tialSync.java:394)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:374)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:384)
    at com.zimbra.cs.mailbox.InitialSync.sync(InitialSync .java:171)
    at com.zimbra.cs.mailbox.InitialSync.sync(InitialSync .java:154)
    at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync .java:180)
    at com.zimbra.cs.mailbox.OfflineMailbox.sync(OfflineM ailbox.java:140)
    at com.zimbra.cs.mailbox.OfflineMailbox.syncOnTimer(O fflineMailbox.java:121)
    at com.zimbra.cs.mailbox.DesktopMailbox$1.run(Desktop Mailbox.java:436)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)

  3. #3
    Join Date
    Mar 2008
    Posts
    15
    Rep Power
    7

    Default

    Below are the last entries I see in the log... So I should delete the last entry on this list?

    Thanks!!
    Iskondi


    2009-03-10 13:11:49,442 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33427: pack-out of the DeltaNet Shipment:
    2009-03-10 13:11:49,552 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33350: remind laura japanese power cords
    2009-03-10 13:11:49,661 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33309: Lock out check sum
    2009-03-10 13:11:49,771 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33128: Plexus
    2009-03-10 13:11:49,880 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 32976:
    2009-03-10 13:11:49,974 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 32845: Lunch Rob/Chunmeng - Monday 11/3/08
    2009-03-10 13:12:33,380 FATAL [mid=5] [mid=5;] system - Caught out of memory error

  4. #4
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    8

    Default

    No, the last entry "Lunch Rob/Chunmeng - Monday 11/3/08" was created successfully.

    That's why you need to turn on Debug Logging and see which one it was processing before it ran out of memory.

    Quote Originally Posted by iskondi View Post
    Below are the last entries I see in the log... So I should delete the last entry on this list?

    Thanks!!
    Iskondi


    2009-03-10 13:11:49,442 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33427: pack-out of the DeltaNet Shipment:
    2009-03-10 13:11:49,552 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33350: remind laura japanese power cords
    2009-03-10 13:11:49,661 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33309: Lock out check sum
    2009-03-10 13:11:49,771 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 33128: Plexus
    2009-03-10 13:11:49,880 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 32976:
    2009-03-10 13:11:49,974 DEBUG [mid=5] [mid=5;] offline - initial: created appointment 32845: Lunch Rob/Chunmeng - Monday 11/3/08
    2009-03-10 13:12:33,380 FATAL [mid=5] [mid=5;] system - Caught out of memory error

  5. #5
    Join Date
    Mar 2008
    Posts
    15
    Rep Power
    7

    Default

    Ahhh sorry, I mistakenly thought that when it said, "DEBUG" in the logs that it was already IN DEBUG mode. I'll turn that on and look for the offender. I'll post back what I find.

    Thanks,

    Iskondi

  6. #6
    Join Date
    Mar 2008
    Posts
    15
    Rep Power
    7

    Default

    Welp before I could get back to work with the employee on this he cleaned up a ton of his email/calendar and the sync worked like a champ.

    Thanks all!

    Iskondi

  7. #7
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    7

    Default

    I experienced a similar problem, and was lucky to find the problem child (email message) by identifying the prior successful items in the log and then deleting the suspicious one that I assumed was causing the problem. Had that not worked, I might have had to start all over as I couldn't get to "Account Details" to turn debug on until after I'd deleted the problem message.

  8. #8
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    4
    Rep Power
    8

    Default

    Hi all,

    my sync stalls too. I turned debugging on but I cannot locate the message that is causing the problems. Does anybody know what I should be looking for?

    Here is my "zdesktop.log":

    Sonntag, 12. Dezember 2010 11:43:46 Europe/Berlin
    2010-12-12 11:43:53,292 INFO [btpool0-6] [mid=2;] offline - >>>>>>>> name=dave@inexio.net;version=2.0.1;build=10659;rel ease=GA;os=Mac OS X i386 10.6.5;server=5.0.10
    2010-12-12 11:43:53,292 DEBUG [btpool0-6] [mid=2;] request - <NoOpRequest xmlns="urn:zimbraMail"/>
    2010-12-12 11:43:53,377 DEBUG [btpool0-6] [mid=2;] response - <NoOpResponse xmlns="urn:zimbraMail"/>
    2010-12-12 11:43:53,378 DEBUG [btpool0-6] [mid=2;] offline - resuming initial sync
    2010-12-12 11:43:53,379 DEBUG [btpool0-6] [mid=2;] offline - initial: folder already exists (id=11 type=folder): ROOT
    2010-12-12 11:43:53,438 DEBUG [btpool0-6] [mid=2;] offline - delta: updated folder (11): ROOT
    2010-12-12 11:43:53,439 DEBUG [btpool0-6] [mid=2;] offline - initial: folder already exists (id=1 type=folder): USER_ROOT
    2010-12-12 11:43:53,467 DEBUG [btpool0-6] [mid=2;] offline - delta: updated folder (1): USER_ROOT
    2010-12-12 11:43:53,467 DEBUG [btpool0-6] [mid=2;] offline - initial: folder already exists (id=14688 type=folder): Kunden+Lieferanten
    2010-12-12 11:43:53,495 DEBUG [btpool0-6] [mid=2;] offline - delta: updated folder (14688): Kunden+Lieferanten
    2010-12-12 11:43:53,495 DEBUG [btpool0-6] [mid=2;] offline - initial: folder already exists (id=11995 type=folder): Netcon
    2010-12-12 11:43:53,510 DEBUG [btpool0-6] [mid=2;] offline - delta: updated folder (11995): Netcon
    2010-12-12 11:43:53,526 DEBUG [btpool0-6] [mid=2;] request - GET https://zimbra.zimmer-associates.de/...,303611,302379
    2010-12-12 11:43:58,434 DEBUG [btpool0-6] [mid=2;] offline - message id=327044 streamed to /Users/dave/Library/Zimbra Desktop/store/incoming/1292150437232-3.msg
    2010-12-12 11:44:04,317 ERROR [btpool0-6] [mid=2;] offline - sync failure: dave@inexio.net
    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2786)
    at java.io.ByteArrayOutputStream.write(ByteArrayOutpu tStream.java:94)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1765)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1718)
    at javax.mail.internet.MimeMessage.<init>(MimeMessage .java:234)
    at com.zimbra.cs.mime.Mime$FixedMimeMessage.<init>(Mi me.java:90)
    at com.zimbra.cs.mime.ExpandMimeMessage$ForkMimeMessa ge.onModification(ExpandMimeMessage.java:49)
    at com.zimbra.cs.mime.TnefConverter.visitMultipart(Tn efConverter.java:149)
    at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:223)
    at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:176)
    at com.zimbra.cs.mime.ExpandMimeMessage.expand(Expand MimeMessage.java:86)
    at com.zimbra.cs.mime.ParsedMessage.init(ParsedMessag e.java:286)
    at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:229)
    at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:223)
    at com.zimbra.cs.mime.ParsedMessage.<init>(ParsedMess age.java:178)
    at com.zimbra.cs.mailbox.InitialSync.saveMessage(Init ialSync.java:1159)
    at com.zimbra.cs.mailbox.InitialSync.saveMessage(Init ialSync.java:1129)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsZi p(InitialSync.java:1082)
    at com.zimbra.cs.mailbox.InitialSync.syncMessages(Ini tialSync.java:936)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeI tems(InitialSync.java:397)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeI tems(InitialSync.java:354)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:250)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:198)
    at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:182)
    at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync .java:177)
    at com.zimbra.cs.mailbox.ZcsMailbox.sync(ZcsMailbox.j ava:119)
    at com.zimbra.cs.service.offline.OfflineSync.handle(O fflineSync.java:44)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:420)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:274)

  9. #9
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    8

    Default

    this is the message: /Users/dave/Library/Zimbra Desktop/store/incoming/1292150437232-3.msg

  10. #10
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    4
    Rep Power
    8

    Default

    I have deleted the message as suggested but it did not work, the errors keep coming. The file that stalls is always 25,6 MB in size???

    I have deleted the folder "Netcon" on both the server as well as on Zimbra Desktop but I keep getting this strange error message. Any ideas?

    2010-12-27 15:31:43,285 INFO [sync-mbox-dave@inexio.net] [] offline - >>>>>>>> name=dave@inexio.net;version=2.0.1;build=10659;rel ease=GA;os=Mac OS X i386 10.6.5;server=5.0.10
    2010-12-27 15:31:43,286 DEBUG [sync-mbox-dave@inexio.net] [] request - <NoOpRequest xmlns="urn:zimbraMail"/>
    2010-12-27 15:31:43,488 DEBUG [sync-mbox-dave@inexio.net] [] response - <NoOpResponse xmlns="urn:zimbraMail"/>
    2010-12-27 15:31:43,488 DEBUG [sync-mbox-dave@inexio.net] [] offline - resuming initial sync
    2010-12-27 15:31:43,490 DEBUG [sync-mbox-dave@inexio.net] [] offline - initial: folder already exists (id=11 type=folder): ROOT
    2010-12-27 15:31:43,534 DEBUG [sync-mbox-dave@inexio.net] [] offline - delta: updated folder (11): ROOT
    2010-12-27 15:31:43,535 DEBUG [sync-mbox-dave@inexio.net] [] offline - initial: folder already exists (id=1 type=folder): USER_ROOT
    2010-12-27 15:31:43,573 DEBUG [sync-mbox-dave@inexio.net] [] offline - delta: updated folder (1): USER_ROOT
    2010-12-27 15:31:43,574 DEBUG [sync-mbox-dave@inexio.net] [] offline - initial: folder already exists (id=14688 type=folder): Kunden+Lieferanten
    2010-12-27 15:31:43,608 DEBUG [sync-mbox-dave@inexio.net] [] offline - delta: updated folder (14688): Kunden+Lieferanten
    2010-12-27 15:31:43,608 DEBUG [sync-mbox-dave@inexio.net] [] offline - initial: folder already exists (id=11995 type=folder): Netcon
    2010-12-27 15:31:43,639 DEBUG [sync-mbox-dave@inexio.net] [] offline - delta: updated folder (11995): Netcon
    2010-12-27 15:31:43,681 DEBUG [sync-mbox-dave@inexio.net] [] request - GET https://zimbra.zimmer-associates.de/...,303611,302379
    2010-12-27 15:31:53,335 DEBUG [sync-mbox-dave@inexio.net] [] offline - message id=327044 streamed to /Users/dave/Library/Zimbra Desktop/store/incoming/1293459983094-4.msg
    2010-12-27 15:32:01,237 ERROR [sync-mbox-dave@inexio.net] [] offline - sync failure: dave@inexio.net
    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2786)
    at java.io.ByteArrayOutputStream.write(ByteArrayOutpu tStream.java:94)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1765)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1718)
    at javax.mail.internet.MimeMessage.<init>(MimeMessage .java:234)
    at com.zimbra.cs.mime.Mime$FixedMimeMessage.<init>(Mi me.java:90)
    at com.zimbra.cs.mime.ExpandMimeMessage$ForkMimeMessa ge.onModification(ExpandMimeMessage.java:49)
    at com.zimbra.cs.mime.TnefConverter.visitMultipart(Tn efConverter.java:149)
    at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:223)
    at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:176)
    at com.zimbra.cs.mime.ExpandMimeMessage.expand(Expand MimeMessage.java:86)
    at com.zimbra.cs.mime.ParsedMessage.init(ParsedMessag e.java:286)
    at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:229)
    at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:223)
    at com.zimbra.cs.mime.ParsedMessage.<init>(ParsedMess age.java:178)
    at com.zimbra.cs.mailbox.InitialSync.saveMessage(Init ialSync.java:1159)
    at com.zimbra.cs.mailbox.InitialSync.saveMessage(Init ialSync.java:1129)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsZi p(InitialSync.java:1082)
    at com.zimbra.cs.mailbox.InitialSync.syncMessages(Ini tialSync.java:936)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeI tems(InitialSync.java:397)
    at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeI tems(InitialSync.java:354)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:250)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:300)
    at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:198)
    at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:182)
    at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync .java:177)
    at com.zimbra.cs.mailbox.ZcsMailbox.sync(ZcsMailbox.j ava:119)
    at com.zimbra.cs.mailbox.ZcsMailbox.syncOnTimer(ZcsMa ilbox.java:100)
    at com.zimbra.cs.mailbox.SyncMailbox$1.run(SyncMailbo x.java:262)
    at java.util.TimerThread.mainLoop(Timer.java:512)

Similar Threads

  1. [SOLVED] Error running mailboxd after script backup
    By ttortosa in forum Administrators
    Replies: 5
    Last Post: 10-22-2008, 02:33 AM
  2. java.lang.OutOfMemoryError: Java heap space
    By mayk.backus in forum Error Reports
    Replies: 1
    Last Post: 08-12-2008, 10:07 AM
  3. Replies: 1
    Last Post: 06-06-2007, 08:21 AM
  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
  •