Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2006
    Location
    UK
    Posts
    911
    Thanks
    302
    Thanked 2 Times in 2 Posts

    Question PHP Resource usage

    How do I restrict all php sites (which are located on my server) not to consume more than a specified amount of CPU?

    FYI, I run Linux CentOS 4.4 with Apache



    Thanx

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    i dont think you can set an amount of CPU resources php can use, but unset() all your variables and mysql_free_result() to clean up unused items which could free up resources


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •