Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2004
    Location
    South East England
    Posts
    71

    Default PHP Loads (By Customer Not CPanel)

    Hi all,

    I have one customer whos site is causing massive loads on my (addmitidly not that powerfull server - celeron 2.4GHz 1GB DDR RAM) using PHP Scripts.

    Code:
    User     Domain                               CPU %  Memory %        MySQL Processes
    stealth	(domain removed)	26.89	86.72	            0.8
    Top Process	%CPU 42.0	httpd (domain removed) (/go.php?goDownload&id5263)
    what i need to know is there anyway that i can stop this from happening, either be it caping that users access to resources (suExec is in use) or any other methods. I have spoken to the customer in question and asked them to check over their scripts but its causing loads like this

    Code:
    - Events Summary:
    Total event count:   5
    Average event count: 2
    
    - Service Summary:
    No service modules enabled - edit conf.sim
    
    - System Summary:
    LOAD      [30.05 - status warning - 5 events]
    NETWORK   [eth0 - online - 0 events]
    
    - SIM Log:
    [06/05/05 17:07:30]: LOAD 76.21 (status critical)
    [06/05/05 17:07:30]: load status critical, reprioritizing processes.
    [06/05/05 17:07:30]: reniced 0 processes to prirotiy 6
    [06/05/05 17:07:30]: NETWORK is online.
    [06/05/05 17:07:59]: removed stale lock file.
    [06/05/05 17:07:59]: LOAD 72.33 (status critical)
    [06/05/05 17:07:59]: load status critical, reprioritizing processes.
    [06/05/05 17:07:59]: reniced 0 processes to prirotiy 6
    [06/05/05 17:07:59]: NETWORK is online.
    [06/05/05 17:10:11]: LOAD 54.12 (status critical)
    [06/05/05 17:10:11]: NETWORK is online.
    [06/05/05 17:12:32]: LOAD 42.66 (status warning)
    [06/05/05 17:12:32]: NETWORK is online.
    [06/05/05 17:15:01]: LOAD 30.05 (status warning)
    [06/05/05 17:15:01]: NETWORK is online.
    which i find highly worrying as it knocks the server offline breifly when loads like that happen :/ any advice is greatly apprcated.

    Kind Regards,

    Alex A. Smith
    Alex A. Smith MCP
    Wired Network LTD Managing Director

  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

    You could have a look at the mod_bandwidth apache module available through WHM Addons. If you enable phpsuexec then the Shell/For Bomb protection should come into play as php scripts are then forked into a separate process from the apache child.

    Ultimately, if someone is (ab)using the server resources beyond that which the server can cope with, the responsibility is theres to either relieve load by removing applications, or taking their site to a dedicated server where they can (ab)use as much as they like
    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
    May 2004
    Location
    South East England
    Posts
    71

    Default

    Thanks for the reply, I'm going to go over my PHP Compile settings anyways as Curl seems to be giving me problems so i'll enable phpsuexec while im in there. Shell fork/bomb protection is enabled anyways (just to be on the safe side).

    I'm liking the last idea
    Alex A. Smith MCP
    Wired Network LTD Managing Director

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    5

    Default

    What did you use to track the user down byuser/domain......looks like an advanced version of top. Please let me know as my server is experiencing high loads and I can't seem to track it down to one user

    Thanks

  5. #5
    Member
    Join Date
    May 2004
    Location
    South East England
    Posts
    71

    Default

    In WHM look under "Server Status" for "CPU/Memory/MySQL Usage" and that shows all the info that I was using. For me it lists all the domains and users and their top processes.

    Very handy. Dunno if it needs stuff compiled into Apache/PHP though so yea

    HTH
    Alex A. Smith MCP
    Wired Network LTD Managing Director

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    44

    Default

    I had the same problem and used mod_bandwidth to control it. The client was a bit upset about his transfer speeds after that and ended up cancelling service with me. I figured it was best to lose 1 customer over upsetting my entire client base because someone is abusive.

Similar Threads & Tags
Similar threads

  1. PHP 5.2.10 fsocket problems for customer
    By movielad in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-04-2009, 06:55 AM
  2. customer can download raw access logs for a foreign domain(separate customer)
    By rapidfire911 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-29-2005, 01:28 PM
  3. cPanel loads very slowly
    By Yaksha in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 01-02-2005, 01:36 PM
  4. PHPSUEXEC :: Location of custom php.ini file for customer?
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-09-2004, 07:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube