Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    10

    Pause a php scirpt if CPU gets too high

    Looking for a way to make my php cron job to sleep if the CPU use gets too high lets say it sleeps for 30sec - 1 min and checks the CPU and if its still too high it sleeps for another minute or so and keeps doing that until the CPU use had gone down

    Dose anyone have any idea how to do this without breaking the script?


    Thanks

  2. #2
    Join Date
    Oct 2011
    Posts
    547
    See steps 3 and 4 in this link

  3. #3
    Join Date
    Nov 2012
    Posts
    10
    Thanks, anyone got something else ?

Tags for this Thread

Posting Permissions

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