N
N
nnmnews2012-10-11 11:29:10
Apache HTTP Server
nnmnews, 2012-10-11 11:29:10

Apache consumes a lot of memory

Good day!

My question is - Is it normal that on a system with FreeBSD each Apache process consumes 400MB of memory?
And is it possible to somehow reduce his appetite?

apache config

# ps aux | grep httpd
www    64457  3.7  0.5 392552 61684  ??  S    12:15PM   0:30.89 /usr/local/sbin/httpd -DNOHTTPACCEPT
www    64448  2.7  0.5 392424 64940  ??  S    12:13PM   0:26.99 /usr/local/sbin/httpd -DNOHTTPACCEPT
www    64499  2.3  0.5 391912 57036  ??  S    12:24PM   0:05.09 /usr/local/sbin/httpd -DNOHTTPACCEPT
root   64446  0.0  0.1 389736 15032  ??  Ss   12:13PM   0:00.08 /usr/local/sbin/httpd -DNOHTTPACCEPT
www    64447  0.0  0.6 393064 69404  ??  I    12:13PM   0:31.16 /usr/local/sbin/httpd -DNOHTTPACCEPT

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2012-10-11
@nnmnews

Are you sure that each process consumes 400 megabytes? As far as I remember, most of the memory for these processes is shared, so the total consumption != the consumption of each process * their number.
On the other hand, 400 meters is a lot. You should tinker with the settings or install Nginx.

V
ValdikSS, 2012-10-11
@ValdikSS

You need to look one column to the right than you are looking at now. Those. each process takes up ~60MB of RAM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question