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

1
vote
0answers
20 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
1answer
38 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 ...
-1
votes
1answer
174 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
67 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
174 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
21 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
194 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
0answers
61 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
157 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 ...
1
vote
2answers
7k 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
193 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
70 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
803 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
74 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
1k 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
291 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
529 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 ...
9
votes
1answer
12k 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
562 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
692 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
239 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
631 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
780 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
45 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
80 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 ...
1
vote
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
167 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
279 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
453 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
873 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
357 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
410 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 ...
0
votes
0answers
141 views

apache servers open slots decreases during logrotate

Our production uses 10 web servers behind a load balancer. Every one hour a logrotate runs and copy truncates the log file. During that time, we find number of apache open process decreases and ...
-2
votes
3answers
520 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
698 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
976 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
3k 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
581 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 ...
4
votes
1answer
8k 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
151 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 ...
142
votes
2answers
60k 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
7k 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 ...
0
votes
1answer
863 views

Custom www-data user in Ubuntu

I use apache2-mpm-itk to run one of my web applications with a custom uid and gid, both for audit and security reasons. This works nicely, however I am not sure what kind of privileges this user would ...
0
votes
1answer
2k views

Why does Apache have MaxClients and ServerLimit?

I'm using prefork apache 2.2 and I can't seem to figure out why there is a MaxClients directive and a ServerLimit directive. I understand that you need to increase both of these in step -- google has ...
6
votes
2answers
4k views

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 ...