Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Not sure if sleep() functions will help, since the monitoring they are doing appears to be cumulative over time, and because that script is being run every five minutes it will stand out as a "heavy" script to their automatic program that is looking for such scripts. The actual CPU load from cron.php on EACH RUN is quite minimal. Sleep functions might only increase the work being done!

You could try reducing your cron period to something less often, like 10, 15 or 20 minutes.
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It's might be an error in config.php - check the dirroot parameter closely - it should be a full path to the install directory and the case should be correct.

Check also that you haven't missed out a double quote around a variable, or perhaps a semi-colon somewhere.

Post it here as an attachment if you still have trouble.