Questions tagged [mpm-prefork]

Multi-Processing Module (MPM) implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3.

114 questions
292
votes
4 answers

How do I select which Apache MPM to use?

This is a Canonical Question about selecting the right Apache httpd MPM. I'm a little confused between the different MPMs offered by Apache - 'worker', 'event', 'prefork', etc. What are the major differences between them, and how can I decide…
Tiffany Walker
  • 6,541
  • 13
  • 53
  • 77
56
votes
5 answers

Which to install: Apache Worker or Prefork? What are the (dis-)advantages of each?

Based on the descriptions for both the Prefork and Worker MPM, it seems the prefork type is somewhat outdated, but I can't really find a proper comparison of the two types. What i'd like to know: What are the differences between the two…
Aron Rotteveel
  • 8,239
  • 17
  • 51
  • 64
23
votes
1 answer

Tuning Apache2 prefork MaxClients ServerLimit

I have a machine with 128 GB Ram that is using Apache2 as Webserver (in this machine there is no Database Server, the Database Machine is a 64 GB Ram machine that can handle 2000 max connections). I see with a monitoring tool that there are at the…
20
votes
4 answers

How can I change from prefork to worker MPM on CentOS 64bit?

I'm running CentOS 64 bit, and just found out I am running prefork MPM on my dual quad Xeon. I was told worker will give me lower memory usage and higher performance, since I run a very high traffic website. If this is true, how do I do it?
Andrew Fashion
  • 1,635
  • 7
  • 22
  • 26
18
votes
2 answers

How To Tune Apache on Ubuntu 14.04 Server

Currently on my Apache 2 (Apache 2.4.7 to be exact) on Ubuntu 14.04, I have this setting: /etc/apache2/mods-enabled/mpm_prefork.conf StartServers 20 MinSpareServers 100 MaxSpareServers…
14
votes
1 answer

Apache performance degrades dramatically above ~256 simultaneous requests

I'm running a relatively low-traffic site that experiences a large spike in visitors once a week following a site update. During this spike, site performance is extremely poor compared to the rest of the week. The actually load on the servers…
cmckendry
  • 344
  • 2
  • 9
9
votes
1 answer

Apache prefork optimization - Choosing the right `MaxRequestsPerChild` value

I'm trying to optimize our web servers to handle as much connections as possible. I read a many posts and the Apache notes. I'm trying to understand which value should I choose for MaxRequestsPerChild. At first, I've tried setting it to 4,000, but…
Kuf
  • 449
  • 2
  • 8
  • 24
9
votes
2 answers

Apache reaching MaxClients and locking the server

I currently have an Apache2 server running with mpm-prefork and mod_php on a OpenVZ VPS with 512M real / 1024M burstable RAM (no swap). After running some tests, I found that the maximum process size Apache gets is 23M, so I've set MaxClients to 25…
Rodrigo Sieiro
  • 1,171
  • 1
  • 8
  • 10
7
votes
1 answer

Apache 2.4 not closing connections

I have an Apache 2.4 webserver that runs on a micro instance of AWS with CentOS. The apache is running PHP with a prefork MPM module. The server is accessed via an Amazon load balancer which has a health check that tries to access index.php webpage…
Edi
  • 171
  • 1
  • 4
7
votes
2 answers

Hung Processes in Apache?

I'm running Apache 2.2.21 with the MPM prefork on a dedicated server. More details: Server Version: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips DAV/2 SVN/1.7.0 mod_python/3.3.1 Python/2.6.5 mod_bwlimited/1.4 PHP/5.3.6 Traffic is usually…
thexfactor
  • 191
  • 1
  • 7
6
votes
5 answers

MPM Prefork, too many apache2 process?

I have this settings: StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 1250 MaxClients 1250 MaxRequestsPerChild 1500 Is possibile…
dynamic
  • 730
  • 6
  • 17
  • 31
6
votes
4 answers

Installing apache2 with apt-get, apache2-mpm-prefork?

I have a debian 6 at 64bit. I want install lamp. On some website i find: apt-get install apache2 on some other: apt-get install apache-mpm-prefork Which one should I choose? Thanks
dynamic
  • 730
  • 6
  • 17
  • 31
5
votes
1 answer

Apapche + php-fpm + mysql too slow on powerful server

I'm trying to test load a LAMP application that my team developed and deployed on AWS ubuntu 14.04 using jmeter. We are using AWS CDN to serve static files, mysql and apache are on the same host. When there is only one user doing stuff, the…
user388194
  • 51
  • 3
5
votes
2 answers

How to apply prefork configuration for Apache in Puppet?

I'm using the puppetlabs apache module to manage my apache configuration. I got everything configured, except the Server settings for mod_prefork. There is a template for prefork and it gets variable when initializing the class somehow, but I'm not…
user196605
4
votes
4 answers

Apache memory issues

So I'm sure this has probably been asked before, but I want to make sure that I'm getting the right info. I'm running a 360 Linode box with Debian 5 and Apache 2.2. I've compiled everything myself (no apt-get). Every now and then (once every few…
mattbasta
  • 631
  • 1
  • 8
  • 17
1
2 3 4 5 6 7 8