Hello everybody,

Me and my team are implementing the new website for our company. The problem we have now is that even caching and using eaccelerator the memory consuption for the apache service is very high.

I would like to know if arround 120mb of ram in every apache running process is normal. We have a lot of modules activated and also our own code. I've tried to tune the apache server and restrict the number of users but with this amount of memory I can not serve very many users and I will have 500 users currently connected.

The main question here is : Is it normal this memory cosuption? I want to know if this is normal or not for me to know where to optimize: drupal, apache or hardware.

Thank you so much.

pd: We are using apache prefork due to php5 is not thread-safe and libapache-mod-php5 can not be used with worker. We know database is not the problem and I also have tried with fastcgi+php+apache-worker, but the size of the allocated memory for the processes is also around 120mb.

Comments

ladaja’s picture

Nobody knows how big their processes are?

djalloway’s picture

I was running a very bloated site and my Apache processes were at ~50Mb each.
I've also realized that it may be certain modules that I was using that are to blame, as I have had other heavy sites that never hit that high but with a different module set.

I've moved over to NGINX + PHP-CGI and it's working much better now ~20Mb each process.

ladaja’s picture

Were you using Drupal on the site you described above?
I think we have too many modules running but I'm afraid we can't disable most of them.