Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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 Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-2009, 01:53 AM
Loyal Member
 
Posts: 81
Default [SOLVED] zmlogwatch killing system

When I try to let zimbra run, zmlogwatch will eat up 100% of my RAM. I've tried reinstalling Zimbra but it continues to eat up 100% of my 4GB RAM.

I have absolutely no idea how to fix this and it really sucks because I have no mail server now.
Reply With Quote
  #2 (permalink)  
Old 04-28-2009, 03:03 AM
Moderator
 
Posts: 7,928
Default

Well you could always just disable zmlogwatch ? Could you post a top etc so we can see what is happening ? Also, do you have strace installed so we can see what the process is actually doing ?
__________________
Reply With Quote
  #3 (permalink)  
Old 04-28-2009, 03:49 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by MTecknology View Post
When I try to let zimbra run, zmlogwatch will eat up 100% of my RAM. I've tried reinstalling Zimbra but it continues to eat up 100% of my 4GB RAM.

I have absolutely no idea how to fix this and it really sucks because I have no mail server now.
Upgrade or new Install? Is the version in your profile the one you're currently running? When did this start and what happened prior to this problem appearing (i.e. and operating system updates)? How long does it take before it gets to 100% and does it stay there?
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 04-28-2009, 07:07 AM
Loyal Member
 
Posts: 81
Default More Details

How do I disable that one piece? It's hard for me to really post any output because the entire system locks up and I only have remote access to it. I can try to output top to a file in a screen session, but that's probably about the best I can do.

When I try to start zimbra, it locks up at starting mailbox (iirc).

What happened right before this is that a backup failed and filled up an entire directory in /. This was a system backup, not a zimbra backup. I noticed it because I tried to install an application on the system and apt died saying there was no space left. I ran rm -rf /mnt/backup2131/ and right when it finished, things started locking up.

Sorry, I suppose this would have been good information earlier. It was a very late night. (sleep at 0500)

I can install strace but I have no idea how to use it.
Reply With Quote
  #5 (permalink)  
Old 04-28-2009, 07:37 AM
Loyal Member
 
Posts: 81
Default

Not sure if these are abnormally large or not...

root@vindico:/opt/zimbra/db/data# du -hs *
19M ibdata1
101M ib_logfile0
101M ib_logfile1
1.4M mboxgroup{any others here}
23M mboxgroup2
30M mboxgroup3
Reply With Quote
  #6 (permalink)  
Old 04-28-2009, 08:37 AM
Loyal Member
 
Posts: 81
Default Outputs

wow... strace is amazingly easy to use.

strace -u zimbra /opt/zimbra/bin/zmcontrol start 2&> log
Gives me the attached file.

I'm also piping top -u zimbra -b to a file. The following snippet was there to start but mysqld starting up doesn't seem like such a big deal considering it was during startup and died off.

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25626 zimbra 20 0 135m 22m 4076 S 100 0.6 0:29.08 mysqld
28064 zimbra 20 0 669m 634m 2680 S 4 16.0 0:01.70 zmlogprocess

Hopefully the attached files help. I have no mail server right now and I know I'm missing a lot of important email messages.

I'm still running 'top -u zimbra -b -d 30 -n 480 > top' but things seem to magically be working better now. Even though the log process is still eating up the entire system.

I'll post an update later. Maybe Zimbra realized I'm upset with it and saw my 'Loyal Member' status and decided that it should cut me some slack. I'm not really sure what I did to earn that status (unless it's forum membership lenght), but I enjoy seeing it change.
Attached Files
File Type: gz strace.gz (13.2 KB, 9 views)
File Type: gz top.gz (15.6 KB, 8 views)
Reply With Quote
  #7 (permalink)  
Old 04-28-2009, 11:05 AM
Loyal Member
 
Posts: 81
Default Issue Verified

It's definitely zmlogprocess that's causing the issue. I ran 'killall zmlogprocess' and things magically picked up speed and life became great.

It's eating up nearly all to all of my 4GB RAM which is significantly overkill from what it should be doing.

How can I flush the log cache and anything else to give it a fresh start?
Reply With Quote
  #8 (permalink)  
Old 04-28-2009, 12:48 PM
Loyal Member
 
Posts: 81
Default Issue Solved

Solved the issue using this Logger - Zimbra :: Wiki

Hurray! Massive and irritating issue solved.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.