I'm trying to figure out what I can do to improve my site's performance.
I would like to remove a component and observe over time what the effect of removing that component was on the performance of the site.
I would like to have numbers representing the load on the server output periodically (say, every 30 minutes) to a file for the duration of the period that the component is removed.
Then I would like to install the component back, and again have load figures output to the file for the period that the component was installed again.
I'm thinking that I can use the sar linux command like this:
sar -o /home/myacct/load.txt and have this run as a cron job every 30 minutes.
Will this work, or is there a better way?