• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Logging server load over a period of time (Debian)

CyclingTribe

Well-known member
#1
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)

Cheers,
Shaun :D
 

Slavik

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

Make a script file with

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

That should work i guess.
 

CyclingTribe

Well-known member
#3
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.]