Jump to content

Recommended Posts

Posted

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

Posted

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
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...