Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/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!
    PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    904
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Chesapeake, 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    318
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GOT

    GOT Get Proactive!
    PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    904
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Chesapeake, 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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

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

    GOT Get Proactive!
    PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    904
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Chesapeake, 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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice