Logging server load over a period of time (Debian)


Formerly CyclingTribe
Does anyone know how to write a log of server load over time in Debian - just a plain text with date/time load?

I'd like to start logging now on a 10 min. interval so I can compare once I've migrated XF.

Any help appreciated. (y)

Shaun :D


XenForo moderator
Staff member
Set up a cron job to run a script every 10 minutes.

Make a script file with

uptime | tee -a /var/log/serverload.txt
save it and chmod+x it.

That should work i guess.


Formerly CyclingTribe
Thanks, I'll give it a go. (y)

[Edit: All set up - writing at 2 mins. intervals so I should be able to compare pre/post XF migration server load levels.]