I've 8GB memory almost 6GB to 7GB is being eaten by mailscanner+sendmail. Please help to manage memory for each process.

asked 03 May '10, 18:44

Gladiator's gravatar image

accept rate: 0%

edited 03 May '10, 20:22

Web31337's gravatar image


Please accept an answer so the question/answer can be finished. Or provide more details so we can help.

(20 Apr '11, 13:44) rfelsburg ♦

I think more information is required.

I don't what your comfort level with computers is, but helpful information would be....

what variant of linux are you running ? can you copy and paste the output of the following command (run at terminal screen as a priveleged user )

ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS

this will list all programs in the computer by their memory usage.


answered 03 May '10, 19:34

54Rigger's gravatar image

accept rate: 0%

Cool one-liner. Requests for more information should be a comment though.

(04 May '10, 16:44) David Mackin...

A quick fix might be to edit your limits.conf file to set some boundaries which isn't a bad idea in itself. However, if your mail programs are taking up that much memory, you probably have some bigger problems. You may want to find out what is taking up the memory. "du" will be helpful in finding the large files and directories. It may be that sendmail is misconfigured. However, in some distros, mail is sent when certain errors are encountered, so there could be another offending program.


answered 07 May '10, 07:18

kainosnous's gravatar image

accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 03 May '10, 18:44

Seen: 1,159 times

Last updated: 20 Apr '11, 13:44

powered by OSQA