Tjoene Posted April 18, 2011 Posted April 18, 2011 Is there a way to determent how much server load your site causes? And what particular script of page is it that causes it? Thanks, Tjoene
jje Posted April 18, 2011 Posted April 18, 2011 Try putting this code at the very start of your PHP script: <?php $loadavg_array = explode(" ", file_get_contents("/proc/loadavg")); $loadavg = $loadavg_array[2]; ?> and put this at the very end: <?php $loadavg_array = explode(" ", file_get_contents("/proc/loadavg")); $loadavg2 = $loadavg_array[2]; $load = $loadavg2 - $loadavg; echo "Approx script server load: [ $load ]"; ?>
Guest Geoff Posted April 18, 2011 Posted April 18, 2011 Is there a way to determent how much server load your site causes? No, only the collective server load. However, we will be able to determine if your site is causing +20 load.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now