Questions tagged [mpm-worker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
300 votes
4 answers
195k views

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 ...
Tiffany Walker's user avatar
56 votes
5 answers
58k 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: ...
Aron Rotteveel's user avatar
30 votes
5 answers
92k views

What is the meaning of "AH00485: scoreboard is full, not at MaxRequestWorkers"?

My Environment CentOS 6.4 X86_64 Apache 2.4.4 PHP 5.4.16 (FPM) 2 Intel Xeon E5-2620 @ 2.00GHz (8 core, 16 threads in each processor) 48GB RAM registered memory. 3 Hard Disk 15RPM 145GB in RAID0 (by ...
Jose Nobile's user avatar
20 votes
4 answers
61k views

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 ...
Andrew Fashion's user avatar
19 votes
1 answer
10k views

Apache 2.2 mpm_worker: more threads or more processes?

When using the Worker MPM in Apache, you can fiddle with the number of child processes and the number of server threads per child process. What are the advantages and disadvantages of each? Under ...
sh-beta's user avatar
  • 6,838
9 votes
2 answers
2k views

1GB VPS - Apache Worker MPM - FCGID - Max concurrent connections - RAM CAP

I have spent a week or two researching and setting up my server to run Apache with the Worker MPM and FCID. I am trying to optimize it to allow for the most concurrent connections possible. It has ...
user1287874's user avatar
6 votes
2 answers
4k views

worker MPM and PHP

I read a lot of posts saying I should't use worker MPM with PHP. My question is whether this is still valid or could it be that working with the worker MPM is not recommended. The reason I ask ...
Kuf's user avatar
  • 449
4 votes
3 answers
16k 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 ...
usef_ksa's user avatar
  • 835
4 votes
2 answers
4k views

Relation between PHP-FPM settings and mpm_worker (Apache)

I've a site running Magento on the following setup: Apache 2.4 with mpm_worker PHP-FPM Total RAM in server: 14GB (10GB avilable to Apache/PHP) Each PHP-FPM process consumes approximately 80MB of RAM....
JanC's user avatar
  • 153
3 votes
2 answers
8k views

Apache 2.2 eventually using all memory (worker mpm)

I'm tuning up a Apache 2.2 server (it's shared with MySQL + Courier + Mongo + Postgre). The server is bare metal (no virtualizataion) with 2 quad-core Xeon (total 16 core) and 12GB ECC RAM (upgrading ...
Daniel Costa's user avatar
3 votes
1 answer
7k views

Error enabling MPM Worker

I am struggling to enable MPM Worker I uncommented #HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd and restarted Apache but I am receiving these error: Starting httpd: httpd.worker: Syntax ...
Maca's user avatar
  • 1,063
3 votes
1 answer
3k 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 ...
Hussein Galal's user avatar
3 votes
1 answer
479 views

apache mpm_worker server failed to respond

I'm trying to update our current Apache 2.4.9 configuration from using prefork to worker mpm. I'm doing some simple load testing using jmeter to compare the performance between the 2. My first test is ...
aka_tony's user avatar
2 votes
2 answers
4k views

The apache2handler SAPI is not supported by pthreads

It has been weeks now that I cannot install pthreads. I am going to list the error logs then I will list my configuration options. These are the errors I get:(Apache Error Log) The apache2handler ...
D.elp's user avatar
  • 131
2 votes
1 answer
2k views

Apache memory spikes, possible causes?

Last Friday (10/7/2011) we started having httpd.worker processes grow from the typical 10-15M memory reserved to 10G+ (gigabytes) in a matter of 1-2 minutes. This obviously brings the server to a ...
Rich Taylor's user avatar
2 votes
1 answer
2k views

Apache MPM workers stuck in G (gracefully finishing) growing - "scoreboard is full"

Running MPM worker, Apache 2.4.46, Debian 9 Gracefully finishing workers just grows over time, they dont seem to ever finish. Eventually I run out of capacity and get "scoreboard is full" ...
Hayden Thring's user avatar
2 votes
1 answer
11k views

Apache HTTPD configuration for high load [duplicate]

Good day, I want to be able to serve at least 7000 (preferably 10k) concurrent requests from my Apache Httpd. I have configured my httpd.conf with MPM worker with the following setup ServerLimit ...
Franz See's user avatar
  • 189
2 votes
0 answers
594 views

Configuring mod_wsgi daemon mode processes and threads

I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
eldos's user avatar
  • 241
2 votes
0 answers
416 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 ...
Filip's user avatar
  • 227
2 votes
0 answers
187 views

Apache worker mpm, one process and many threads: understanding performance

Got a mod_perl-written serverside program. Im using shared apache worker mpm memory with one process only, and ~ 60 threads. Im using locks to temporary secure the access to the shared memory, just 0....
user2148543's user avatar
1 vote
2 answers
2k views

Viability of Apache (MPM Worker), FastCGI PHP 4/5.2/5.3, and MySQL 5

My server will be hosting numerous PHP web applications ranging from Joomla, Drupal, and some legacy (read: PHP4) and other custom-built code inherited from clients. This will be a development machine ...
Adrian's user avatar
  • 113
1 vote
3 answers
6k views

What could cause apache2 to not run index.php files through PHP FastCGI handler?

I'm trying to run PHP using FastCGI (mod-fcgid) under apache 2 with the worker MPM. I've used this blog post as a reference. It seems I've got everything working except one thing: When apache serves ...
Tobi's user avatar
  • 163
1 vote
2 answers
5k views

Apache2 full CPU Usage after exiting with error ('unable to create worker thread')

I've got my Apache2.4 (mpm_worker) instance exiting with following log: [Mon May 27 11:27:33.196177 2019] [core:warn] [pid 567365:tid 139765793668032] AH00045: child process 567368 still did not exit,...
Sunchezz's user avatar
1 vote
2 answers
2k views

switching to worker mpm for apache 2 on RHEL 4

I am thinking of switching from the non threaded prefork mpm to the hybrid multi-process multi-threaded worker mpm for apache (2.0.52). It runs on a Intel(R) Xeon(TM) Quad core machine running ...
letronje's user avatar
  • 429
1 vote
1 answer
3k views

Invalid argument: AH03139: ap_queue_pop failed

Short version, I upgraded from Fedora Server 23 to Fedora Server 24, and now my apache (httpd-2.4.23-4.fc24.x86_64) error_log is filling up with these messages: [Mon Nov 28 20:30:39.486187 2016] [...
Mike Bobbitt's user avatar
1 vote
2 answers
2k views

Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down

Recently, I have changed from Apache mpm-prefork (PHP module) to mpm-worker (PHP-FPM) due to memory issues. I am running a quite-large PHP application that requires ~20-30M per prefork process. ...
BurninLeo's user avatar
  • 910
1 vote
3 answers
2k views

Does single Apache worker serves only 1 request or more than that?

I am facing a problem in Apache server when the number of users reaches around 250 concurrent. The problem occurred only when the idle worker number was set to 0. So my question is, does a single ...
Koptan's user avatar
  • 11
1 vote
1 answer
1k views

Thread Safe php-pecl-memcache and php-pecl-mongo

I'm looking to switch a Fedora server running Apache from prefork to worker. Everything seems to be fine except the php libraries for Mongo and Memcache. Has anyone had any success getting these to ...
dtbarne's user avatar
  • 167
1 vote
2 answers
1k views

Apache mpm_worker + php : processes not terminating

I'm seeing a weird issue on our web servers where the Apache processes seem to be remaining in limbo with 1 or 2 threads. This is disconcerting for me since I was just thinking I wanted to impose a ...
jonathanserafini's user avatar
1 vote
1 answer
242 views

Stopping apache worker of a vhost

Apache runs in worker mod. Multiple vhosts are configured. On of the vhosts runs in a loop, spawning childs. I want to kill this one while keeping the other good vhosts running. An apache2ctl restart ...
dr0i's user avatar
  • 231
1 vote
1 answer
4k views

apache mpm-worker (Module mpm_worker does not exist!)

I am newbie and I have Ubuntu 12.04 box where I installed Apache using command apt-get install apache2 It installed everything fine. Then I needed mpm-worker so I installed mpm-worker using command ...
Farooq's user avatar
  • 11
1 vote
2 answers
3k 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 ...
Paul Draper's user avatar
1 vote
2 answers
13k views

Connection reset by peer: mod_fcgid: error reading data from FastCGI server Issues

Help is greatly needed for our server. We are experiencing random "Connection reset by peer: mod_fcgid: error reading data from FastCGI server" errors which cause a 500 internal server error. If the ...
user145857's user avatar
1 vote
1 answer
549 views

which caching system to work with mpm_worker and mod_fcgid?

I was planning to use APC for my Apache Server based on mpm_worker and mod_fcgid but I found out that APC and also xCache doesn't work with mod_fcgid. so what do you suggest?
Zim3r's user avatar
  • 1,484
1 vote
1 answer
2k views

Enable PHP-ZTS and MPM Workers in Apache to lower memory footprint, but still keep MySQL?

My question is quite similar to this one in that I'm trying to reduce the memory footprint of my website on a somewhat meager shared hosting solution. I'm going to be playing around with my own ...
daveycroqet's user avatar
1 vote
2 answers
1k views

how can be switch from prefork to worker MPM in running apache on solaris10

bash-3.00# /usr/apache2/bin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c bash-3.00# bash-3.00# /usr/apache2/bin/httpd -v Server version: Apache/2.0.63 Server built: ...
pankaj's user avatar
  • 21
1 vote
2 answers
1k views

Does mod_dav_svn support the Apache mpm-worker module?

Does the subversion mod_dav_svn support Apache's MPM-Worker thread configuration? I'm finding very little documentation so far on this, and I'm looking for better ways to make use of my subversion ...
Scott Markwell's user avatar
1 vote
1 answer
4k views

Apache2 worker mpm too many processes

I've got Apache installed with the worker mpm which seems to have too many processes active in spite of the configurations in place. I'll detail the configs below : StartServers 2 MinSpareThreads 10 ...
jonathanserafini's user avatar
1 vote
2 answers
2k views

How do I configure apache2/mpm-worker + fcgid?

Is there any good tutos there? Currently I'm using apache2/mod_php which is not efficient.
apache's user avatar
  • 3,297
1 vote
2 answers
3k views

What values to set for Apache 2 worker server pool management?

I recently switched from Apache 2.2 prefork to Apache 2.2 worker, but I have no idea what would be a great MPM config to start with. On prefork, I used : MaxClients 256 StartServers 190 ...
Julien's user avatar
  • 510
1 vote
0 answers
2k views

How to increase amount of concurrent connections in apache2?

I am running into traffic issues as apache 2.4.18 maxes out on concurrent connections: ps auxf | grep apache2 | wc -l 258 As soon as 258 is reached the server is waiting to serve new connections ...
merlin's user avatar
  • 2,112
1 vote
0 answers
966 views

Which mpm setting to use to limit the number of connections on Centos 7 apache

I am googling around and finding myself going down a rabbit hole and getting nowhere. My over all goal is to limit the number of connections that can be made at the same time to Apache on a Centos 7 ...
James Connigan's user avatar
1 vote
1 answer
2k views

How to tune apache with mpm_event

regarding apache tuning, there are lots of good documents and posts on the web eg. How To Tune Apache on Ubuntu 14.04 Server unfortunately almost all of them describe how to tune apache with ...
Muhammad Naderi's user avatar
1 vote
0 answers
630 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, ...
Mike's user avatar
  • 11
1 vote
1 answer
687 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 (~ 25-...
dev101's user avatar
  • 123
1 vote
1 answer
567 views

Reducing memory for worker MPM in Apache

I've moved from the prefork MPM to the worker MPM due to a process limit I was hitting on my VPS. However, memory usage increased after switching over (which is odd since the worker MPM is supposed ...
ShyM's user avatar
  • 11
1 vote
1 answer
785 views

Configuring Apache2/mpm-worker not to eat up all the server's RAM

Th server is running around 40 WordPress sites. Originally I'd set the server up using mod_php and mpm-prefork back when the server had 2GB of memory, and it was running comfortably well. Recently, ...
Mortanis's user avatar
0 votes
1 answer
8k views

apache in centos 7 doesn't start with mpm event

Hi I've tried to switch from prefork to apache MPM event as followed: vim /etc/httpd/conf.modules.d/00-mpm.conf # Select the MPM module which should be used by uncommenting exactly # one of the ...
Mr P's user avatar
  • 3
0 votes
2 answers
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) ...
jalal allam's user avatar
0 votes
1 answer
2k views

List of PHP modules that are thread safe

I'd like to try running Apache in a threaded MPM with mod_php. Does anyone have a list of PHP modules that are thread safe so I can tell if its going to be safe to do or not?
chizou's user avatar
  • 477