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

Thread: Mailbox stops about once every 2 weeks

  1. #1
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default Mailbox stops about once every 2 weeks

    We deployed Zimbra a little over a month ago. It runs fine for about 2 weeks and then the Mailbox process stops. I scoured the logs and the only two lines I could find that indicated something are these:

    /var/log/messages

    May 19 00:30:03 server zimbramon[30374]: 30374:info: 2006-05-19 00:30:01, STATUS: server.domain.com: mailbox: Stopped

    /opt/zimbra/log/zimbra.log

    2006-05-19 00:29:40,012 FATAL [ImapSSLServer-52239] [] system - Fatal error occurred while handling connection
    java.lang.OutOfMemoryError: Java heap space

    I did a zmcontrol stop and then zmcontrol start and everything is running fine. This is the second time this has happened, and I would like to prevent it from occuring one way or another.

    Thanks,
    Justin

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Hi Justin Rock,

    How much RAM do you have?

    What are your specs?

    What build are you running (OS and ZCS)?

  3. #3
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default

    Quote Originally Posted by wannabetenor
    Hi Justin Rock,

    How much RAM do you have?

    What are your specs?

    What build are you running (OS and ZCS)?

    Versions:

    OS: CentOS release 4.3 (Final)
    ZCS: Release 3.1.0_GA_332.RHEL4_20060414125354 CentOS4 FOSS edition

    System Specs:
    Dell PowerEdge 1850
    Dual Proc: Dual 2.8ghz Xeon
    Memory: 1GB
    Drive: Raid 1 - 73GB

    Current Usage (after about 8 hour uptime):
    Drive:
    /dev/mapper/VolGroup00-LogVol00 66G 6.7G 56G 11% /
    /dev/sda1 99M 13M 82M 13% /boot
    none 506M 0 506M 0% /dev/shm
    /dev/shm 150M 72K 150M 1% /opt/zimbra/amavisd-new-2.3.3/tmp

    Memory:
    total used free shared buffers cached
    Mem: 1034428 691012 343416 0 1552 84368
    -/+ buffers/cache: 605092 429336
    Swap: 2031608 98712 1932896

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Do you have the latest version of Java?

  5. #5
    Join Date
    Feb 2006
    Posts
    34
    Rep Power
    9

    Default

    I have the same problem- but the MTA seizes up about once a day.

    This is a personal server, only about 5 users.

    On FC4, 3.1.1, with 3Gigs RAM. I run a stop/start script every few hours.

    Can the version of Java matter that much?

  6. #6
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default

    Quote Originally Posted by wannabetenor
    Do you have the latest version of Java?
    Java Version 1.5.0_06

  7. #7
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    I pulled some information off the net.

    There are three possible causes for an OutOfMemoryError. The first is that the JVM has a real memory leak, caused by a bug in the internal implementation of the JVM heap management. This is extremely unlikely. All JVMs are tested very strenuously for this, and it would be the absolute top priority bug if anyone found such a bug. So you can pretty much eliminate this possibility. I have noticed; however, this appears alot of 1.4 and 1.5 versions of JVM.

    The second possible cause of an OutOfMemoryError is that you simply haven't got enough memory available for the workings of Zimbra. This seems unlikely because you seem to have enough, but you never know. There are two possible solutions to this situation, either increase the available JVM heap size, or decrease the amount of memory your application needs. Increasing the available JVM heap size is simply done with the -Xmx parameter to the JVM. If you still have the memory problem because you have already increased this parameter as much as possible (up to available RAM, don't exceed real system memory or your application will page and crawl to a halt), then you need to reduce the amount of memory being used by your application. Reducing application memory may be simple, you may just be allowing some collections to be too big, for example using many large buffers.

    The third possible cause of an OutOfMemoryError is the most common, unintentional object retention. You are hanging on to objects without realizing it and this is causing your heap to grow and grow until you have nothing spare.

    Dealing with an OutOfMemoryError:

    Is it an internal JVM bug? Extremely unlikely. Highest priority JVM bug if true (so how come no one else has found it yet?)
    Not enough memory for actual application needs?
    Two options:
    Increase the maximum heap size with -Xmx parameter (or Perm space size with -XX:MaxPermSize).

    I have searched bugzilla and havn't found much, so I will do a little more investigating.

    Meanwhile, (I know this will work on FC4 but not centos), do a yum update java. Perhaps that will help.

    I'll let you know what I find. Maybe phoenix, kevinh, sam, or bobby will have more input than I.
    Last edited by jholder; 05-19-2006 at 06:19 PM.

  8. #8
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    1GB seems ok for a modest number of users. We do plan to make some fixes and changes to memory usage in the next major release. Also plan to include a auto-restart on OOME so you don't have any down time.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  9. #9
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default

    Thanks. I may try increasing the heap size and see how long it runs for and determine if that makes a difference. At this point, I think a weekly bounce will be the work around so I stop getting called in the morning when the first employees show up. Thanks again.

  10. #10
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default

    Could large amounts of deferred mail cause this problem? I just noticed we have over 1000 emails sitting in deferred. If this continues to increase; could it cause the OutOfMemory error?

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 12:19 AM
  2. Mailbox and logger not starting - SLES9 M3 Beta436
    By DanielP in forum Installation
    Replies: 49
    Last Post: 08-25-2008, 03:23 AM
  3. Restore mail to another user's mailbox
    By zaf in forum Administrators
    Replies: 4
    Last Post: 02-08-2008, 07:26 AM
  4. MTA and Mailbox die periodically...
    By andreturpin in forum Administrators
    Replies: 3
    Last Post: 06-21-2006, 06:31 PM
  5. Internet Explorer waits forever to load mailbox
    By shanson in forum Administrators
    Replies: 7
    Last Post: 04-07-2006, 09:27 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
  •