Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: [SOLVED] ZCS 6.0 - zmlogger service using very high CPU

  1. #11
    FritzBrause is offline Partner (VAR/HSP)
    Join Date
    Jan 2008
    Location
    Berlin, Germany
    Posts
    203
    Rep Power
    7

    Default ZCS 6.0 Remove Logger & CPU Usage

    Same issue here: We upgraded from 5.018 NE to 6.0.0 NE. zmlogger was eating up 100% CPU of 2x6 GHz as soon as somebody did an Outlook Sync of a 500 MByte Mailbox. Also zmlogger caused 500 - 800 MHz basic CPU usage even if the server was idle.

    I disabled the logger service and removed the rpm:

    Code:
    su - zimbra
    zmprov ms `hostname` -zimbraServiceEnabled logger
    and as root user

    Code:
    /etc/init.d/zimbra stop
    rpm -e zimbra-logger-6.0.0_GA_1802.RHEL5-20090830122136
    /etc/init.d/zimbra start
    The CPU usage immediately dropped to the same level as of 5.0.18 and before and everything seemed to be o.k. again - without Server Status in the Admin Frontend, but this is hardly a show stopper for now.

    12 hours later the same high CPU Usage, the same slow server response . So I did some research: zmlogger service was up and running again!

    Code:
    find /opt/zimbra/ -type f -name zmlog*
    
    /opt/zimbra/log/zmlogswatch.out
    /opt/zimbra/log/zmlogprocess.state
    /opt/zimbra/libexec/zmlogprocess
    /opt/zimbra/libexec/zmlogger
    /opt/zimbra/conf/zmlogrotate
    /opt/zimbra/bin/zmlogswatchctl
    /opt/zimbra/bin/zmloggerctl
    /opt/zimbra/bin/zmloggerhostmap
    Wow! zmlogger is still there. Did "rpm -e" not remove the package? Daily logfile rotation left the commands enabled and did a restart (of cause). So this is the actual /etc/logrotate.d/zimbra file

    Code:
    /var/log/zimbra.log {
        daily
        missingok
        notifempty
        create 0644 zimbra zimbra
        postrotate
          killall -HUP syslogd 2> /dev/null || true
          su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
        endscript
        compress
    }
    
    /var/log/zimbra-stats.log {
        daily
        missingok
        notifempty
        create 0644 zimbra zimbra
        postrotate
          killall -HUP syslogd 2> /dev/null || true
          su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
        endscript
        rotate 0
    }
    which should have been removed by rpm -e as well as the program files itself.

    I manually disabled the restart command:

    Code:
    # su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1
    For now we live without the logger Service and btw without any Graphs - but this is beeing discussed in another thread already.

    I hope this will be cleaned up together with the other zmlogger issues as soon as possible because this is not an improvement over 5.x at all.

    Any recommendations how to fix this high CPU usage are very welcome.

    Regards

    Andreas

  2. #12
    cosmospt is offline Member
    Join Date
    Sep 2009
    Posts
    12
    Rep Power
    5

    Default

    I am also having the same problem on Release 6.0.0_GA_1802.UBUNTU8_64 UBUNTU8_64 FOSS edition, after upgrading from 5.0.18. Tried to do the changes recommended by speedy3k by the problem remains. I hope that will will be fixed soon.

  3. #13
    rosenbj is offline Junior Member
    Join Date
    Sep 2009
    Posts
    7
    Rep Power
    5

    Default

    Quote Originally Posted by FritzBrause View Post
    Same issue here: We upgraded from 5.018 NE to 6.0.0 NE. zmlogger was eating up 100% CPU of 2x6 GHz as soon as somebody did an Outlook Sync of a 500 MByte Mailbox. Also zmlogger caused 500 - 800 MHz basic CPU usage even if the server was idle.

    I disabled the logger service and removed the rpm:
    .
    .
    Andreas,

    Thanks so much for this posting. As I mentioned, even after the earlier changes were made, the CPU usage was still quite high. I just turned off the logger server per your instructions and my CPU usage has now actually much lower than when running 5.0.16. I have attached two CPU load graphs. A weekly graph and a daily graph. It is pretty obviuosly when Zimbra 6.0 was installed on the weekly graph. The daily graph shows the impact of removing the logger service.

    Hopefully these issues will be addressed and I can one again run this service in future releases of 6.0.x. However, at least I have my system back and responsive.

    Regards,
    Jeff
    Attached Images Attached Images

  4. #14
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    Quote Originally Posted by rosenbj View Post
    Hopefully these issues will be addressed and I can one again run this service in future releases of 6.0.x. However, at least I have my system back and responsive.
    Do feel free to check bugzilla to see if there's any bug reports or RFEs filed for this problem, if you don't find one then please file a report with as much diagnostic information as you can provide.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #15
    FritzBrause is offline Partner (VAR/HSP)
    Join Date
    Jan 2008
    Location
    Berlin, Germany
    Posts
    203
    Rep Power
    7

    Default

    The quick and dirty hack to bring down extensive zmlogger CPU usage in ZCS 6 ist as follows:

    Code:
    su - zimbra
    zmprov ms `hostname` -zimbraServiceEnabled logger
    zmcontrol stop
    zmcontrol start
    as the root user edit /etc/logrotate.de/zimbra and comment out all logger related start / reload commands e.g.

    Code:
    #      su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
    #      su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl start"
    HTH

    Andreas

  6. #16
    Himanshu is offline Advanced Member
    Join Date
    Jan 2008
    Posts
    223
    Rep Power
    7

    Default

    Quote Originally Posted by rosenbj View Post
    Andreas,

    Thanks so much for this posting. As I mentioned, even after the earlier changes were made, the CPU usage was still quite high. I just turned off the logger server per your instructions and my CPU usage has now actually much lower than when running 5.0.16. I have attached two CPU load graphs. A weekly graph and a daily graph. It is pretty obviuosly when Zimbra 6.0 was installed on the weekly graph. The daily graph shows the impact of removing the logger service.

    Hopefully these issues will be addressed and I can one again run this service in future releases of 6.0.x. However, at least I have my system back and responsive.

    Regards,
    Jeff
    Those Graphs look Good . Which Tool are u using to Monitor CPu Utilization ?

  7. #17
    rosenbj is offline Junior Member
    Join Date
    Sep 2009
    Posts
    7
    Rep Power
    5

    Default

    Quote Originally Posted by Himanshu View Post
    Those Graphs look Good . Which Tool are u using to Monitor CPu Utilization ?
    Monitorix - Monitorix Project by Jordi Sanfeliu (aka Mikaku)

    It does a lot more than CPU load (ie - Network, TCP Ports, Disk I/O, etc.). Graphs can be displayed as daily, weekly, monthly or yearly. I was using SAR (with kSar GUI) but found this a lot more robust (and nicer looking graphs).

    Best regards,
    Jeff

  8. #18
    Himanshu is offline Advanced Member
    Join Date
    Jan 2008
    Posts
    223
    Rep Power
    7

    Default

    Quote Originally Posted by rosenbj View Post
    Monitorix - Monitorix Project by Jordi Sanfeliu (aka Mikaku)

    It does a lot more than CPU load (ie - Network, TCP Ports, Disk I/O, etc.). Graphs can be displayed as daily, weekly, monthly or yearly. I was using SAR (with kSar GUI) but found this a lot more robust (and nicer looking graphs).

    Best regards,
    Jeff
    Thanks a Lot...

  9. #19
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Have to agree .. Just switched to a less powerful Mini-ITX server and load average, with zmlogger running, was 2+. Disabled zmlogger and it is now down to average 0.5.

  10. #20
    mackoftrack's Avatar
    mackoftrack is offline Special Member
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    135
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Have to agree .. Just switched to a less powerful Mini-ITX server and load average, with zmlogger running, was 2+. Disabled zmlogger and it is now down to average 0.5.
    Is it safe to just disable zmlogger?
    I'm getting 100% CPU by zmlogger since upgrading to 6.0.1 also...

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mail is being queued, not delivered!
    By icepick94 in forum Administrators
    Replies: 12
    Last Post: 01-22-2009, 07:03 AM
  2. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  3. Replies: 41
    Last Post: 10-29-2007, 02:36 PM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 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
  •