I want to know the memory and CPU usage in php, because I’m using cronejobs sometimes the CPU is overloaded so in this case I don’t wan to start more process, I just want to skip this cron.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think better way is get load avarage, because it depends not only on CPU, but on HDD speed also.
Here is a doc: http://php.net/manual/en/function.sys-getloadavg.php