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

learn more… | top users | synonyms

0
votes
1answer
42 views

Apache Keeps reverting to mpm_prefork (Apache 2.4.7 / Ubuntu 14.04.2)

I have had this problem for over a year now whereby each time there is a security update to Ubuntu and I have to reboot the server, Apache 2.4 decides to start using the mpm_prefork worker despite the ...
-1
votes
1answer
35 views

mpm_prefork values for 2-4 GB RAM [duplicate]

I have bought new linode (1GB). On this page :https://www.linode.com/docs/websites/lamp/install-lamp-on-ubuntu-16-04 Linode says: Below are the suggested values for a 1GB Linode: ...
0
votes
0answers
48 views

Host Multiple Apache/PHP Websites on a Single Server and Protect Them From Eachother

My company hosts about 20 websites that all have somewhat mediocre traffic. At any given time there are likely to be 5-6 simultaneous users across all sites with that number going as high as 50 after ...
2
votes
0answers
36 views

Apache spawning workers even though there's almost no access

Lately Apache has been spawning workers even though there seems to be no reason for it. After ~10 minutes of a restart, it keeps spawning workers until it reaches the maximum number and new requests ...
1
vote
0answers
51 views

Is Apache Prefork working fast then Worker MPM to serve static content?

I have found so many stuff related to Apache worker MPM is working fast than Prefork MPM, i know nginx is another option but i want to stick on apache as for use of htaccess and some other features, ...
3
votes
2answers
66 views

ubuntu 14.04 Apache 2.4.7 mpm_event Files and FilesMatch not working

We recently switched our Apache 2.4.7 mode from mpm_pre-fork to mpm_event. Since then we haven't been able to get our Files directive to work. <Files "*.php"> Header set Cache-Control ...
0
votes
1answer
633 views

Switching from MPM Worker to Event with PHP-FPM

CentOS 7, Apache 2.4, FPM/FastCGI, MariaDB My 512M VPS is eating up memory with one development WordPress site, so I'm hoping this will lead me down a path of better tuning; if not, please inform. I ...
-2
votes
1answer
73 views

Is there a way for Apache to control how much memory it reserves?

Apache seems to have no control over how much memory it reserves. In MPM prefork you control the maximum number of processes you want to allow, but whatever number you use there, there is always a ...
0
votes
0answers
202 views

Invalid Mutex directory in argument file

I have just setup apache2 on ubuntu, when I run apache2 -V I get this error. My website works fine but apache and all php files load very slow. [Sat Sep 26 17:09:49.994452 2015] [core:warn] [pid ...
0
votes
0answers
26 views

Apache2 loads slow - free resources

My site needs about 10 - 12 seconds to load, even if the cpu is just by 10% and the ram by 20%. This is my apache2 setting: http://i.imgur.com/J1vQODq.png It was even worse some days ago, so I ...
1
vote
2answers
277 views

Optimize Apache for high concurrent requests

I am running a Apache2 Ubuntu server which serves the API request from mobile apps. Recently I am facing a bottleneck that when the request getting higher (more concurrent users), the request ...
1
vote
1answer
83 views

Apache configured as mpm_worker - why it still shows as mpm_prefork?

I believe that I properly configured Apache MPM as worker under Ubuntu 13.10, including PHP-FPM and FCGI, and disabled mod_php. When I run top I can clearly see multiple Apache (~2-3 MB) and php (~ ...
1
vote
0answers
193 views

Apache crashes when running Magento on Amazon EC2 Large

So I've spent the last two days trying to figure this out. We host a pretty high-traffic Magento site on Amazon EC2 Large, using both Apache w/mpm-prefork, Varnish, and APC caching. Problem is the ...
4
votes
2answers
16k views

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 <IfModule mpm_prefork_module> StartServers ...
1
vote
1answer
224 views

Apache processes become stale but won't time out

I'm having an issue with apache2 httpd. The apache is using mpm_prefork and the web application uses php. I noticed that the machine where the apache runs suddenly drops to 0% cpu usage during the ...
0
votes
1answer
83 views

Does Apache mod_status give any insight to tuning Apache config?

Does the Apache mod_status output give any insight to tuning Apache prefork config? For example, using Apache's mod_status, I figured out that My server gets 3 requests/sec average, the range is ...
0
votes
0answers
873 views

Apache ramps up child processes until MaxRequestWorkers reached

My Ubuntu server has been running wonderfully for six months until last week when it started being a bit naughty. I've made no changes to the config in the last couple of months, so I'm scratching my ...
2
votes
0answers
83 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
0
votes
2answers
2k views

Apache Prefork MaxClients cannot exceed 256 [closed]

I manage a Centos 6.6 server (with cpanel expired license / maybe it's not important) with 8 cores and 64GB RAM and my HTTP server becomes very slow when it reaches between 250 and 300 simultaneous ...
1
vote
0answers
332 views

Apache 2.4 prefork, MySQL 5.6 and 2GB RAM

I think I'm having problem setting up Apache24 correctly. Apache seems to taking up to much RAM, and I'm not sure how to configure it. The FreeBSD server is using 50% of it's swap space. We are ...
2
votes
1answer
656 views

How does apache handles connections and requests using worker and prefork mpm modules?

I know that prefork module in apache creates one master process and several child processes to handle connections, my question is: Does each prefork child handles one connection or handles one ...
10
votes
1answer
17k views

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 ...
0
votes
0answers
603 views

Slow PHP response times from Apache Benchmark

I have a VPS running Apache (prefork mpm) with 1gb RAM and 2 x Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz. I setup 2 test files to run through Apache Benchmark: htmltest.html (basic HTML file which ...
1
vote
1answer
799 views

How to optimize prefork mpm for high traffic?

I have allocated 5GB of memory for Apache processes. While basing on the fact that each Apache process consume in average 42.5MB I've set the following on my server (while calculating as if each ...
2
votes
2answers
260 views

What are the problems of setting MaxRequestsPerChild to 1 of mpm_prefork module

For my application I had to have this configuration for it works : <IfModule mpm_prefork_module> MaxRequestsPerChild 1 </IfModule> What are the problem that I can encounter with ...
0
votes
1answer
663 views

Tuning Apache For mid-sized site

I am having trouble with my apache configuration. Right now nginx sits in front on apache as a reverse proxy, serving static assets and then passing php requests to apache. Apache is using mod_php. We ...
0
votes
2answers
835 views

What happens when mpm_prefork_module and mpm_worker_module are both used?

I came across this Apache configuration: <IfModule mpm_prefork_module> StartServers 16 MinSpareServers 16 MaxSpareServers 32 ServerLimit 400 ...
2
votes
1answer
48 views

What could cause deeply nested apache prefork children?

I'm running apache 2.2.25 with prefork and mod_perl on CentOS (mostly 6.4). Recently one instance went particularly haywire, forking off children of children of children: <snip> \_ ...
1
vote
0answers
83 views

prefork doesn't appear to be listening to MaxClients in config file

Apologies in advance if this is a stupid question, I'm new to all of this! I have prefork installed on a ubuntu server which I confirmed by running aptitude search apache2-mpm- Which gave me p ...
3
votes
2answers
1k views

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 ...
2
votes
0answers
181 views

Using Apache2 Worder MPM with Moodle

Is Moodle (I am using Moodle 2.5.2) compatible with Apache2 "Worker MPM" (in contrast to "Prefork MPM"). If it is indeed compatible, has has anyone tried both and is able to say which performs better ...
0
votes
1answer
45 views

prefork and apache doc. what is meant by request?

(I am already aware of worker and event and how they differ from prefork, this is a prefork only question) First question: What is meant by "request" on this page? ...
4
votes
0answers
2k views

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 ...
2
votes
1answer
1k views

When/how does Apache kill a child process that you spawn in PHP?

Not sure if this is more appropriate for Server Fault or Stack Overflow, but here goes. I'm using mod_php on Apache MPM prefork and spawning a new process like-so: <?php exec("/usr/bin/php -f ...
4
votes
2answers
1k views

Trying to understand how keep-alive works

Today we encountered a problem on the server, when files/scripts took more that 3 seconds to load. The solution was simple - just increasing MaxClients to the estimated memory limit. But I am worried ...
0
votes
2answers
306 views

How to decide on MPM module (worker.c, prefork.c or something else

We have several sites running on one server. (CentOS, Hostgator "Elite") A few of the sites are fairly large and our main site is large enough that Google has indexed > 1,000,000 pages. I complained ...
0
votes
2answers
516 views

Apache: configure prefork in a per-virtualhost way

I host different sites on the same Linux server (an AWS EC2 instance), I would like to give these sites different limits via a virtualhost specific configuration. Is this possible?
0
votes
1answer
949 views

How to customize MPM for optimum performance on apache?

I'm quite new to configuring apache. There is planty of tutorials but rarely comprehensive how to do something. What i'm wondering is: How do i change which MPM profile to be used my apache? How do ...
0
votes
1answer
394 views

apache times out with low cpu and memory usage

Since a few days i recognize that my apache2 is going very slow if it has around 90 current request. If i do a loader.io test it timeouts for example after 13 successfull requests: What i really ...
1
vote
1answer
449 views

Apache as reverse proxy: synchronous or asynchronous? [closed]

I'm using Apache to serve static content, and then reverse proxy-ing to a Rails server to process dynamic content, some of which can take a long time to generate. When Apache hands off a request to a ...
-2
votes
3answers
554 views

Apache as backend server doesnt kill childs

I have apache as backend server for nginx. Here is my config for prefork MPM which i use: StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 10 ...
0
votes
2answers
734 views

Apache 2.4 Prefork vs. PHP-FPM Event shows sig decrease in requests per second

On my Apache 2.4.2 server with a standard mod_php Prefork setup these are my server-status results Current Time: Wednesday, 24-Oct-2012 19:36:24 CDT Restart Time: Wednesday, 24-Oct-2012 01:27:30 CDT ...
13
votes
1answer
1k views

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 ...
3
votes
2answers
4k views

How do MaxSpareServers work in Apache?

I've scoured the web but I can't find out what MaxSpareServers are in Apache MPM prefork.. The MaxSpareServers directive sets the desired maximum number of idle child server processes. An idle ...
3
votes
1answer
607 views

Why are my httpd mpm_prefork processes being reaped so quickly?

[EDIT] Bad question, mostly - see my answer [/EDIT] We've got a system running RHEL6, x64. We are using a local installation of apache 2.2.22 from source. we serve primarily: mod_perl ...
6
votes
1answer
9k views

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 ...
2
votes
1answer
1k views

Apache optimization - prefork MPM

I read many posts regarding the Apache configuration, and tried to find the best values for our servers. To make sure what's best I used JMeter to simulate 2100 connections per second. After many ...
-3
votes
1answer
152 views

Single CMS site on dedicated server [duplicate]

Possible Duplicate: Can you help me with my capacity planning? We're about to launch a huge website, expecting a HUGE traffic especially in the first few weeks. It will be a Joomla CMS ...
151
votes
2answers
68k views

How do I select which Apache MPM to use?

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 which one will be best for a ...
2
votes
2answers
8k views

How to figure out how much RAM each prefork thread requires for maximum Wordpress performance on an EC2 small instance

Just read Making WordPress Stable on EC2-Micro In the "Tuning Apache" section, I can't quite figure out how he comes up with his numbers for his prefork config. He explains how to get the numbers ...