Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    cPanel/Enkompass Access Level

    Root Administrator

    Default WHM Daily Process Logs - Top Processes

    I'm currently trying to investigate a high usage issue I'm running into on my server for a few accounts. Under the Daily Process Log, I am looking at the Top Processes and see the problem areas - but the actual process just says [php]. Does anyone know of a tools that I can use to actually inspect an account to see what PHP processes are the hogs here? I've heard that xhprof could be a possibility - but want to make sure I'm using the right tool for the job. Thanks!

  2. #2
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Hello

    First, check "WHM >> Service Configuration >> Configure PHP and SuExec" to see which handler you are using for PHP. You may want to consider switching to suPHP if it's not already enabled. Under this option, PHP scripts will be executed by the user who owns the VirtualHost serving the request.

    The following document explains each PHP handler:

    Apache PHP Request Handling

    Also, does anything show up under "user" in the daily process log for this specific process?

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  3. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Hi,
    Really appreciate the response. Yes, I currently am using suPHP as the PHP Handler. I do see the specific user account - which correlates to an account on my server. There's got to be some type of "magic tool" out there that can help me figure out why this account is using so many resources

    It's a Joomla! site if that matters... Thanks!

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    It could be an out of date Joomla itself or addon for that Joomla. If the Joomla is up to date proper, and it has some addon modules the user has added, have him disable them for a bit and see if load goes down. Have him check them for updates, and/or remove them. If you have ConfigServer Firewall installed it will alert you to scripts running out of control and can even be configured to kill it, wrap it and move it out of the way if needed.

    It could very well be an out of date mod on the site. if its not the script itself causing issues it could be an attacker hitting that out of date script trying to get in.

    I'd start by looking at the site and whats going in with it first before much else. Depending on the site owner's knowledge of maintaining the updates for the mods and site, you can sometimes find a real mess when you look closer at the files, names of the mods etc.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  5. #5
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Hi,
    Thanks again for the response. I've made sure their J! install is up-to-date, so I think it's almost a matter of determining "the" component/php function that is so heavy, thus my quest for a magic tool that can profile php functions based on memory usage. Thanks!

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Based on the discussion of xhprof at Profiling with XHProf – techPortal location, it seems that it might provide the debugging you are seeking for your PHP script. You might simply try installing it to see the results.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    I went ahead and installed xhprof and created a guide on how to configure it with cPanel:

    http://forums.cpanel.net/f42/install...ml#post1048751
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Wow, thanks for doing that!

  9. #9
    Member
    Join Date
    Nov 2011
    Posts
    302
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Quote Originally Posted by cPanelTristan View Post
    I went ahead and installed xhprof and created a guide on how to configure it with cPanel:

    http://forums.cpanel.net/f42/install...ml#post1048751
    Hi Tristan ,

    Thanks for the URL. Is there any harm to run xhprof on shared/reseller server ?

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Why would there be harm in running a perl debugging script onto a shared machine? If you do not want it to be accessible, it could be password protected as I indicated in the guide. If you did not mean for security purposes, then please define what is meant by harm in this context. Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  11. #11
    Member
    Join Date
    Nov 2011
    Posts
    302
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Thanks for your explanation. I meant there are hundreds of accounts hosted on shared server.
    So if xhprof installed on server will it consume more resources causing overload on server ?

  12. #12
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: WHM Daily Process Logs - Top Processes

    Are you going to install it on one account or all the accounts? If you install it on all the accounts, it might well cause an issue mainly due to the session data being written for many accounts who might utilize it, which would take up space in /tmp folder.

    I cannot see most users using it, since it is a developer tool to track down coding function calls for improving the PHP code. As such, it is only really useful for someone developing code.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Daily Process Log : WHM
    By Cindu in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-10-2011, 10:55 PM
  2. Top Process: [php5] showing in WHM tons of times
    By bls24 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-06-2008, 10:08 AM
  3. Top process
    By ncconquer in forum New User Questions
    Replies: 0
    Last Post: 09-07-2005, 01:26 AM
  4. Top Processes - Anyone know what this is?
    By dgs in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 11-01-2003, 01:30 PM
  5. Top Process
    By xp2u in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-03-2003, 02:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube