The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/bin/grep -c < /var/log/exim_mainlog causing extreme server load

Discussion in 'General Discussion' started by GOT, Feb 6, 2004.

  1. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Anyone else seeing this? I have this problem on two servers so far, one RH9 and the other RHEL. These two processes are killing the boxes:

    root 94.13 173.91 2.0
    Top Process %CPU 99.9 /bin/grep -c < /var/log/exim_mainlog
    Top Process %CPU 99.7 /bin/grep -c [-]> /var/log/exim_mainlog

    Anyone know what is calling them and why?

    Thanks!

    Jon
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    mv /var/log/exim_mainlog /var/log/exim_mainlog.bak

    touch /var/log/exim_mainlog

    then chown and chmod it to the same settings as exim_mainlog.bak

    The reason it is eating up resources is because the log file is too big. So rename and create an empty one. If it is that big, you might want to see if you have a spammer on your system somewhere.
     
  3. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    I think it is because of the MyDoom virus.

    It turns out it is related to mrtg calling the log files to process. I am just going to take the mrtg portions out of mrtg and run it that way.

    Thanks!
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Do you have DMA turned on ?
     
  5. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Yup:

    hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100)
    hdb: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100)

    It would be nice to be able to have the mail stats back, though, that's for sure!
     
Loading...

Share This Page