Is there a way to log the amount of memory used by each process in linux? One of our servers has a memory usage spike that brings down the machine from time to time and the logging would really help us find the root cause.
|
feedback
|
|
If your needs aren't very complex perhaps you could make do with
This logs the top ten processes (by memory use) every minute. | |||
|
feedback
|
|
The cleanest solution would be to put in a cron job which does something similar to
This would log | |||
|
feedback
|