Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default Processes that continue for hundreds of hours.

    Again we are finding that since the last cPanel update, we frequently discover one or two processes, usually FTP or MYSQL, that run for hundreds of hours, gradually eating up more and more CPU as time goes on.

    These processes have to be killed with the -9 option, e.g.

    kill -9 2232


    The loads that this kind of thing produces tend to generate complaints if we happen to miss this on one of our cPanel servers.

    I suppose I could stick on a bandaid by doing a cron that will reboot FTP and MYSQL every hour. But, really guys, this kind of thing just should not occur. Is there anything else we can do upgrade out of this bug, or to implement a fix here?

    We are currently running:

    WHM 10.8.0 cPanel 10.8.1-R30
    RedHat Enterprise 3 i686 - WHM X v3.1.0

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    If something is chewing up resources you have to find out why. That is, MySQL have a look at what the MySQL children are actually doing (status). Check which resources the processes in question have open (lsof) and check what the actual process is doing (strace).
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Thanks for the reply Chirpy.


    Hmmm when attempting to run strace I get:

    /usr/bin/strace -p 23261
    attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted

    Even though I am logged in as root. Perhaps this is due to some of the other security implementations that we have in place. (When I read "ptrace" it still causes a shutter in memory of the bygone Cobalt days, )

    Regarding lsof, interesting, but not very useful as it renders up tons of items. I am looking at the man page now to see how I can limit this listing to just mysql, for example.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    ptrace can fail for various reasons - if the process is <defunct> or has since died you'll get a permission denied. I presume you have libcap installed? IIRC that's required to ptrace processes.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. hundreds of pkgacct processes
    By Darph Bobo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-09-2007, 11:34 PM
  2. hundreds of httpd processes after MailScanner upgrade
    By vla in forum E-mail Discussions
    Replies: 0
    Last Post: 08-21-2007, 08:23 PM
  3. Authprog processes running for hours
    By Bdzzld in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-05-2006, 04:05 AM
  4. Hundreds of MySQL processes!
    By Blue|Fusion in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-25-2005, 11:52 AM
  5. cpanellogd processes hundreds of em
    By nerdzoll in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-18-2004, 10:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube