Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often face the problem that something is eating away on my memory, but I can't put my finger on what it is.

I have redis, mysql, ruby, php and apache running on the same server, it's been running fine, but all of a sudden something is consuming too much memory. The TOP command doesn't tell me anything that worries me.

How can I find the problem?

share|improve this question

closed as off topic by Jorge Castro, Marco Ceppi Dec 2 '10 at 14:09

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 4 down vote accepted

Try htop in a screen session, press F6, order by MEM, and you'll see that. Alternatively you can set up a munin-node, and get a graph that visualizes your system-behavior. atop -m also works very well for me. Some systems hide super-use processes. In that case perform your analysis as root.

share|improve this answer

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