Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I am using a 512MB Ubuntu 12 VPS. I'd like to get a daily (maximum) memory consumption log, as a reference to add more memory or not.

Is there a tool for this?

share|improve this question

marked as duplicate by Michael Hampton, Khaled, Dave M, dunxd, EEAA Feb 27 '13 at 17:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 1 down vote accepted

I recommend Munin for trending your system statistics.

$ sudo apt-get install munin munin-node

This will install two packages, munin for aggregating data and munin-node for collection of data from your system. When munin has been running for a while, you can take a look at the visualized data from it and consider if you need more memory or not.

By default, munin will create HTML-files in the directory /var/cache/munin/www. Serve these files by a web server and start watching your system trends.

It is also a great tool for trending other statistics.

share|improve this answer

For detailed statistics, install sysstat and learn how to use sar(1). You know you need more memory when the paging traffic goes high.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.