Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    SMG
    SMG is offline
    Member
    Join Date
    Nov 2003
    Posts
    21

    Default crazy server load related to eximstats?

    I have a problem with one of my servers where randomly (could be 0-3 times a day) the load goes completely out of control (I once saw it hit 95). I look at process list and see a lot of mysql's, and figure ok I could restart that maybe to knock off some usage, but mysql won't restart AT ALL if I do that at that time (no method of restart works unless I do a hard reboot).

    When it's like that, also rebooting via whm, ssh or master reboot switch just makes the server hang, it doesnt actually reboot - I have to have a DC tech manually reboot it.

    For some reason the first time I saw it I suspected eximstats (I dont know why, but I do remember seeing its LOCK TABLES command sitting in mysqladmin processlist), however I also noticed ... last night the same exact thing happened. I did /scripts/restartsrv_eximstats and the load instantly began dropping from around 30 to about .25-.5 ... so obviously it has something to do with eximstats (I also tested with a few others like restarting apache and exim, but that didnt reallly help). I have a few ideas about this but before messing with my server any more I'm curious if anyone else had and fixed this problem?

  2. #2
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Eximstats solely shouldn't be the cause of your load issues. One thing that I would definately check is file system corruption. If you haven't already fsck'd the drive(s) on the server (and it's a Linux OS), then I would definately recommend that. It'll require a reboot, but it shouldn't take more than a few minutes of downtime. If it's a redhat based OS, then you can accomplish this by touching the file /forcefsck and rebooting the server. You can also accomplish the same thing by giving shutdown the "-F" flag, such that:

    shutdown -rF hh:mm

    See "man shutdown" for more information on this command.

    If the fsck doesn't help, then have your DC or NOC check the system for the cause. If it comes down to a software issue, then open a support ticket with your license provider.

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default

    yup, I too can tell you that exim is causing a considerable load on my box. How can one renice all the processes so that it DOESNT run as priority -6? I dont care about email nor do my clients as much as they care about their sites being up and loading quickly. The priority of sending email doesnt concern me.

  4. #4
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Eximstats and Exim are not the same process. Please create a new thread concerning Exim process priority. And generally, Exim doesn't use much processesing power sending messages, it's load level is mostly determined by the number of messages it receives.

  5. #5
    SMG
    SMG is offline
    Member
    Join Date
    Nov 2003
    Posts
    21

    Default

    Quote Originally Posted by cpanelben
    Eximstats solely shouldn't be the cause of your load issues. One thing that I would definately check is file system corruption. If you haven't already fsck'd the drive(s) on the server (and it's a Linux OS), then I would definately recommend that. It'll require a reboot, but it shouldn't take more than a few minutes of downtime. If it's a redhat based OS, then you can accomplish this by touching the file /forcefsck and rebooting the server. You can also accomplish the same thing by giving shutdown the "-F" flag, such that:

    shutdown -rF hh:mm

    See "man shutdown" for more information on this command.

    If the fsck doesn't help, then have your DC or NOC check the system for the cause. If it comes down to a software issue, then open a support ticket with your license provider.
    As far as I know, it has been fscked recently, because I did have a bad drive before but that drive has been unmounted and I havent had other problems since then, and when the bad drive was there techs manually rebooted and fscked both drives. The thing I don't understand is ... whereas normally I would think it could be a hard drive problem or something, this ONLY happens maybe once or twice a day tops (it hasnt happened in 1.5 days now) and EVERY time its the same thing, mysql goes out of control, and restarting eximstats fixes it ... if it was an hd problem wouldnt more than eximstats be to blame? I run batch scripts and I know mysql works fine under pressure from them, so I dunno if its anything related to the sectors on mysql, however I also noticed most of the mysql processes during this time were opening or closing tables...

  6. #6
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You should also check the database for errors. Look at the myisamchk command for more information. Here's MySQL's doc on it:

    http://dev.mysql.com/doc/mysql/en/repair.html

    A google search for "mysql repair" will give you all sorts of good info.

Similar Threads & Tags
Similar threads

  1. Replies: 12
    Last Post: 04-02-2010, 11:43 AM
  2. Sever load spikes related to MySQL access, please help with this.
    By jols in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-08-2010, 04:15 AM
  3. exim going crazy, high server load
    By horrighs in forum cPanel and WHM Discussions
    Replies: 36
    Last Post: 09-23-2005, 10:36 AM
  4. MySQL and eximstats crash under moderate load on FreeBSD
    By ee99ee in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-17-2005, 01:25 AM
  5. Exim making the server load crazy ......??
    By fmughal in forum New User Questions
    Replies: 2
    Last Post: 01-06-2005, 10:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube