CTXMedia Well-known member Nov 8, 2011 #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. Cheers, Shaun
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. Cheers, Shaun
Slavik XenForo moderator Staff member Nov 8, 2011 #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.
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.
CTXMedia Well-known member Nov 8, 2011 #3 Thanks, I'll give it a go. [Edit: All set up - writing at 2 mins. intervals so I should be able to compare pre/post XF migration server load levels.]
Thanks, I'll give it a go. [Edit: All set up - writing at 2 mins. intervals so I should be able to compare pre/post XF migration server load levels.]