0

Our Apache server crashes whenever we have short bursts of traffic (200+ users at a given time). We have to manually restart it to get it back online.

I'm hoping to find out some common issues that we could look into to resolve this issue. Please let me know any details that could help troubleshoot this further.


Error Log

[mpm_prefork:error] [pid 13775] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

prefork settings

<IfModule mpm_prefork_module>
        StartServers              16
        MinSpareServers           24
        MaxSpareServers           50
        MaxRequestWorkers         100
        MaxConnectionsPerChild    0
</IfModule>

DigitalOcean Droplets

Web Server

  • Ubuntu 14.04 x64
  • 1GB Ram / 1 Core / 30GB SSD / 2TB Transfer
  • Laravel 5.0

MySQL Database Server

  • Ubuntu 14.04 x64
  • 1GB Ram / 1 Core / 30GB SSD / 2TB Transfer
  • max_connections: unlimited

We experience a crash whenever we get a spike in traffic:

server graphs

Aaron
  • 199

1 Answers1

0

The error log you posted says "consider raising the MaxRequestWorkers setting". This will allow more simultaneous connections.

I suggest you consider raising the MaxRequestWorkers setting then report back. If you don't know how, Google is your friend, but it looks like you found it already.

Use something like Siege for performance and scalability testing, preferably in your test environment.

Tim
  • 33,870
  • 7
  • 56
  • 84