Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Desktop > Error Reports

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2009, 02:19 PM
Intermediate Member
 
Posts: 15
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)
Reply With Quote
  #2 (permalink)  
Old 03-10-2009, 03:25 PM
Zimbra Employee
 
Posts: 627
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)
Reply With Quote
  #3 (permalink)  
Old 03-10-2009, 03:26 PM
Intermediate Member
 
Posts: 15
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
Reply With Quote
  #4 (permalink)  
Old 03-10-2009, 03:33 PM
Zimbra Employee
 
Posts: 627
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
Reply With Quote
  #5 (permalink)  
Old 03-10-2009, 03:36 PM
Intermediate Member
 
Posts: 15
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
Reply With Quote
  #6 (permalink)  
Old 03-13-2009, 09:59 AM
Intermediate Member
 
Posts: 15
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
Reply With Quote
  #7 (permalink)  
Old 03-20-2009, 01:46 PM
Junior Member
 
Posts: 5
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.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0