Simple long-term statistics of RAM/CPU/SWAP from SAR
After installing the package sysstat, enable it and leave it run for many days. Then use these scripts to postprocess all collected data. The output will be similar to this:
# weekpeaks.sh ave mem usage 19.2567 ave swap usage 53991.7 ave CPU usage 2.69001 max mem usage 9.09147 max swap usage 98556 max CPU usage 9.49Memory is in Kb, all other values are percentages. Download the weekpeaks tarball and install it by doing:
# tar -C /tmp -zxvf weekpeaks.tar.gz