The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
84 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
298 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
180 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
25 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
154 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
0answers
109 views

SLES 11 SP3 Apache mod_proxy_ajp issue with ProxyErrorOverride in worker MPM

In SLES 11 SP3, the "ProxyErrorOverride" apache directive is not working for MPM Worker with requests proxied by AJP: When an error appear in the server-side, Apache doesn't show the error page ...
0
votes
1answer
273 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
518 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
36 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
48 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 ...
2
votes
0answers
95 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
36 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? ...
1
vote
0answers
1k 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
834 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
290 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
172 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
244 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
560 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
241 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
votes
1answer
207 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
108 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
407 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
1answer
493 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 ...
12
votes
1answer
768 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 ...
1
vote
1answer
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
452 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 ...
1
vote
1answer
3k 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
910 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
137 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 ...
90
votes
2answers
32k 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 ...
1
vote
2answers
5k 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
556 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 ...
4
votes
2answers
3k 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
1k 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
714 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
9k 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 ...
5
votes
4answers
12k 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
673 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 ...
8
votes
2answers
11k 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 ...
1
vote
2answers
5k views

switching to worker mpm for apache 2 on ubuntu

How to switch from prefork mpm to worker mpm on ubuntu server? how to roll back if there is any problem? root@myserver:~# apache2ctl -l Compiled in modules: core.c mod_log_config.c mod_logio.c ...
2
votes
2answers
673 views

About MPM Prefork MaxClient parameter on 256M RAM server

I have a question about Apache MPM Prefork configuration on VPS servers. One slicehost articles, they suggest to set MaxClients to 40 if I have 256MB RAM on my virtual server. ...
2
votes
1answer
1k views

What are the suggested MPM prefork configurations for 256M and 512M RAM server?

The suggested MPM prefork configuration on slicehost.com articles for VPS with 1GB RAM is: <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 ...
0
votes
2answers
2k views

use prefork or worker in apache configuration?

A have apache server version (Apache/2.2.13) and I want to use MPM module But I do not know what use prefork or worker and what configurations I need ? specification: Ram:4G CPU:Intel(R) Xeon(R) ...
1
vote
1answer
175 views

Why does the Apache root process answer requests?

I run an Apache prefork MPM on Ubuntu 10.04 server. It listens on port 8080. One process runs as root, and the child processes run as www-data. This is as advertised. However, the root process ...
1
vote
3answers
2k views

Apache server is spawning more and more processes, maxing out RAM and dying

We have a LAMP setup that had been working pretty well for half a year when the Apache server (MySQL servers are not on this box) just started to die. It seems to have started to spawn more and more ...
6
votes
2answers
7k views

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

apache shuts down because MaxClients reached

have a serious problem. I've got virtual server which runs Apache and two web project with a lot of visitors (about 5 hits per second). My server starts to shut down by itself. In error log I found ...
4
votes
4answers
2k views

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 ...
47
votes
5answers
48k views

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