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

Discussion in 'Server Configuration and Hosting' started by CyclingTribe, Nov 8, 2011.

  1. CyclingTribe

    CyclingTribe Well-Known Member

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

    Slavik 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.
    GeeksChat likes this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

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

Share This Page