Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm unable to start apache2 due to memory issue.

service apache2 start

Action 'start' failed.
The Apache error log may have more information. 

tail -n 100 /var/log/apache2/error.log

fork: Cannot allocate memory
unable to fork new process

This is the output of my apache2.conf file

<IfModule mpm_prefork_module>
    StartServers        150
    MinSpareServers      10
    MaxSpareServers     150
    MaxClients          150
    MaxRequestsPerChild   2000

Any ideas? :)


share|improve this question

How much RAM do you have on your server?

It seems that your 'StartServers' variable is set too high.

StartServers – this is how many Apache instances should start when Apache is started on your server.

Set it to a lower value, for example 10 or so, and your should be able to start the Apache service.

share|improve this answer
Also, if this is it, I would strongly suggest lowering MaxSpareServers and possibly MaxClients as well. – Michael Kjörling Jun 3 '14 at 12:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .