Portal Home > Knowledgebase > Articles Database > 8 Apache process?


8 Apache process?




Posted by Moutrap, 03-17-2008, 09:10 PM
Hello, Ive recently installed installed and configured stuff on my new box but after, I realised abnormal memory usage. Mysql server is taking 256mb, there are somewhere between 6 and 10 apache process taking up at least 40mb each. Furthermore, when I do: top, I see that the memory usage is increasing by about 120ko each 3 sec. I am running centos 5.1 and have a load of 0. Basically, there is no one on the server appart from me. On the server I have at home running debian, I run all thoose thing and it take up 200mb max. Would any of you have an idea on what I should do?

Posted by dysk, 03-17-2008, 10:52 PM
What you're looking at is the result of two things: (1) The memory usage reported by top is the total memory space that is allocated to that process. However, multi-processed programs share a lot of their memory between processes, so the total memory isn't just 40mb*8. It's much less than that (2) Linux aggressively buffers disks into memory, so the real memory usage is the total memory used minus the buffer size. Hope this helps clear it up for you.

Posted by applicurearun, 03-18-2008, 07:00 AM
Please provide apache logs for audit.

Posted by Moutrap, 03-18-2008, 08:29 PM
Hi, The memory usage I saw of apache process were reported by webmin. In top, I see sometime 950mb memory usage(then I reboot to get back to about 300mb) but in webmin I see 190mb usage. I am totaly confused. So the memory that I see that is taken by apache would not be true? The apache log(the one I know), located in /etc/httpd/logs dont really provide anything that would help. The only thing apart from php error and denied access on directory are: [Sun Mar 16 12:07:41 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Mar 16 12:07:41 2008] [notice] Digest: generating secret for digest authentication ... [Sun Mar 16 12:07:41 2008] [notice] Digest: done But I dont think this is really more interesting... Thanks for your response



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
cluster cpus? (Views: 575)
remote screen sharing (Views: 588)
Suhosin install (Views: 599)