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
32 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
57 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
votes
2answers
360 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
52 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
41 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
372 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
39 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 ...
-1
votes
2answers
300 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
154 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
230 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 ...
2
votes
1answer
3k 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
467 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
365 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 ...
0
votes
0answers
40 views

MaxRequestsPerChild not working

I'm using Apache2 with mode_wsgi for my application. I have this constraint : a process can handle only one request and then must die. For this I use the option MaxRequestsPerChild of the ...
2
votes
2answers
203 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
547 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
637 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
41 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
67 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 ...
0
votes
2answers
724 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
125 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
39 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? ...
3
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
951 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 ...
3
votes
2answers
712 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
216 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
354 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
704 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
293 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 ...
0
votes
1answer
307 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
119 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
459 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
579 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
868 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 ...
2
votes
2answers
2k 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
515 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 ...
2
votes
1answer
5k 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
145 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 ...
111
votes
2answers
45k 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
6k 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
791 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
1k 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 ...
5
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 ...
2
votes
2answers
2k views

Apache with prefork model using 1000 MB memory per process

I am currently working on a site which uses Apache running on the prefork memory model. The following is the configuration from httpd.conf <IfModule prefork.c> StartServers 30 ...
0
votes
2answers
794 views

Number of workers on the Apache 2.2 status page (Scoreboard)

I installed Apache 2.2 from the Debian repository (6.0/Squeeze). By default, Debian installs the prefork module and comes with the following (default) configuration: <IfModule ...
3
votes
3answers
10k views

MPM Prefork, too many apache2 process?

I have this settings: <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 1250 MaxClients 1250 ...
6
votes
4answers
15k views

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
1
vote
2answers
726 views

Apache MaxServers not taking effect

I edited my httpd.conf to have the following StartServers 2 MinSpareServers 2 MaxSpareServers 4 MaxClients 150 MaxRequestsPerChild 0 but when I do a root@server ...
9
votes
3answers
13k views

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

I'm running CentOS 64 bit, and jsut 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 ...