Results 1 to 9 of 9

Thread: Tomcat Crashes when sending mail

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Oregon
    Posts
    11
    Rep Power
    8

    Default Tomcat Crashes when sending mail

    Last Friday I came into to work to find zimbra crashed and people annoyed. Looking at the logs I found (in mailbox.log) that there was a problem ( java.lang.OutOfMemoryError: Java heap space ) Looking through the forum I found a few references to this and tried some of the suggestions. None worked. I tried setting the tomcat_java_heap_precent or whatever to a high number and renaming the redo.log in case there was something hanging in there, but no luck.

    My problem seems a little different than some others. Tomcat only crashes when sending mail. I can get to my inbox from the webmail client. But as soon as I hit send on a new message the memory usage on the zimbra server by the java service goes to about 75% (all free memory) and them bam, its crashed.

    Its a decent machine with a gig of ram. Most times it has 300 - 500 MB ram free. Gets down to about 30mb when zimbra is acting up.


    So, what do I need to do to fix this?
    I like zimbra and it seems easy to administer and works good with samba. I would hate to go back to OpenXchange (a pain to administer) but we need email.

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

    Default

    Hi ND,
    There are a couple things that can cause this. For example, if you a user has 1,000 messages in a box, then just deletes them all, it might consume the rest of your RAM, and cause tomcat to crash. That's not a bug, it just requires more memory.

    That, however, is less likely. In order to solve this, we'll need the /opt/zimbra/log/mailbox.log and /opt/zimbra/tomcat/logs/catalina.out

    Keep in mind that cat.out gets rewritten each time you start the Zimbra server, so you'll need to preserve the "evidence"

    It would also be useful if you updated your profile to reflect which version of Zimbra and OS you're running, for future reference.

    Good luck,
    john

  3. #3
    Join Date
    Mar 2007
    Location
    Oregon
    Posts
    11
    Rep Power
    8

    Default logs

    I attached the logs in a zip file. I gave you the whole catalina log and the last two complaints out of mailbox.log (there were lots that all looked the same.) And I changed the email addresses to protect the innocent

    Thanks for the help.


    -- Nick
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2007
    Location
    Oregon
    Posts
    11
    Rep Power
    8

    Default

    No ideas? Do you need any more information?
    I wish I could get this fixed myself but I am sadly at a loss.



    Thanks,

    -- Nick

  5. #5
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    Are you using a server other than the Zimbra server for sending email? (Zimbra Admin console --> Servers --> myzimbraserver.mydomain.com --> MTA tab). I was having a similar problem a few weeks ago, and found that the issue was with my separate MTA server. When that was having problems and wouldn't accept messages from the Zimbra server I got the "Java heap space" errors.

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

    Default

    Also, this may be a redo log issue. Try moving it out, and start Zimbra.

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •