When you build a server architecture for a project, your often want to test the performance afterwards. That’s true especially when the only way to know the application needs is to test them.
Most distributions already come with the needed tools to measure your performance of the operating system with tools like top, free, vmstat, iostat, mpstat and sar. The latter is usually configured to run periodically through cron to collect statistics all the time.
But when you want to analyze the data, creating a graph is much better way to do it. I found two ways to do that easily:
- Using kSar, which reads the sar files and lets you choose which graph to show. As this is a java application its platform independent and can be using everywhere.
- Using sar2rrd and RRDTool.
I used the first method as it lets the user creates the graphs with a GUI, and makes my life easier. kSar also support creating a PDF report from the raw data, and thus lets the user/me to send an easy report for others to review.
If you need to follow graphs for many systems over time, I would advise you to install Cacti, which collects the data and summarize it nicely with a web intreface.
Munin!!!
i use both sar (ksar) and cacti to monitor our servers and i am very happy with the results. low impact on the server and a very fine tuned performance overview of the many aspects of the entire system.
i think munin is equally nice to have.
(i do not remember why we do not use it any more…)
here are some “last year” cacti data from our LTSP servers.
http://docs.google.com/Doc?id=dfs4fjnj_190f58h9xfs
enjoy
You should try collectd: http://collectd.org/