Answer the question
In order to leave comments, you need to log in
How to display the load on the server machine as a percentage?
Task: using PhP to get the total (cpu, ram, disks) load on the server machine in order to convert it immediately to the% format...
How to do it?
I heard something about load average ...
It would be desirable to get the
RAM and CPU load as a percentage
Answer the question
In order to leave comments, you need to log in
$cpu = `ps aux`;
$ram = `cat /proc/meminfo`;
$storage = `df -h`;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question