P
P
Petrify2011-08-04 08:34:58
ubuntu
Petrify, 2011-08-04 08:34:58

Prog on ubuntu to monitor peak memory loads?

There is: Ubuntu Lucid Lynx 32, apache, mysql and periodically popping out of all holes out of memory (and this is on the cloud, where, in general, this should not be), which I learn about after the fact from Apache and muscle logs.
Objective: To trace what kind of infection eats up memory so hard.
The question is, how can this be done?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2011-08-04
@bondbig

atop

V
vazir, 2011-08-04
@vazir

htop

V
vazir, 2011-08-04
@vazir

Well, then you need to install a monitoring tool, with scheduling, for example, I use Zabbix in the infrastructure - it can warn by mail or by Jabber / SMS what is wrong. True, you will also have to spend time studying it. And bursts can be done simply: a
script like:
#!/bin/bash
{
date
ps uax
echo
} >> /var/log/memory.log
And put in kroner for every minute, for example. A lot of logs will be generated. But it will allow you to make an analysis - who, how much and when ate and what resources.

V
Vorchun, 2011-08-04
@Vorchun

Look here:
habrahabr.ru/blogs/linux/71020/
habrahabr.ru/blogs/linux/49204/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question