Questions tagged [mpm-worker]
The mpm-worker tag has no usage guidance.
78
questions
0
votes
1
answer
63
views
Apache Server 2.4.57 / Increasing the maximum number of conections/requests accepted & Check the number of concurrent process
We are using the following configuration and as far as I know this configuration can execute 8000 requests/processes concurrent.
Apache Server Version: 2.4.57, Server MPM: event
<IfModule ...
0
votes
2
answers
420
views
Need help troubleshooting Apache2 MPM Worker on Ubuntu, system keeps crashing?
I am on Ubuntu Server 22.04 using Apache2 2.4.56. I have PHP FPM 8.1 installed, and should be using MPM Worker enabled via module:
a2query -m
setenvif (enabled by maintainer script)
dir (enabled by ...
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" ...
0
votes
1
answer
815
views
Why does apache work only with mpm-prefork?
I have 2 websites of wordpress on LAMP (Linux, Apache2, MariaDB and PHP-FPM).
If I disable mpm-prefork and enable either mpm-worker or mpm-event, apache shows only a blank page (I have a few wordpress ...
1
vote
1
answer
238
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 ...
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 ...
1
vote
0
answers
957
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 ...
0
votes
0
answers
2k
views
Apache2 MPM_Event Conf to avoid Scoreboard full error
I have a couple servers running apache2 service to hose REST APIs and traffic is descent. For now, apache2 is set to start 2 servers so I see two 222-data processes. Rarely, but from time to time, ...
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,...
0
votes
1
answer
2k
views
How do you tell Apache 2.4 which MPM to use on Amazon Linux?
How do I select which Apache MPM to use? talks about the pros and cons of the different MPMs. This question is: How does one tell Apache 2.4 which MPM to use?
0
votes
1
answer
1k
views
How could I setup prefork mpm in my m4.xlarge AWS instance with 16GB RAM
Background: I have six webservers behind an ELB, each webserver running 2 virtual host sites. My httpd.conf file doesnt have the configuration for prefork mpm or worker mpm or event mpm.
I tried: I ...
0
votes
0
answers
945
views
How to figure out the optimum settings for Apache 2.4 PHP-FPM mpm_worker?
I'm struggling to figure out the correct settings for my Ubuntu server.
It has 16 CPUs and 48GB of Ram. However, it seems to be taking a while to respond to requests. Recently, I switched to PHP-FPM ...
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 ...
0
votes
1
answer
982
views
Why apache2-mpm-prefork should be removed when install apache2-mpm-worker?
I have a packageA, which depends on apache2-mpm-prefork. packageA was installed. Now I tried to install apache2-mpm-worker, but the output is:
me@XXX:~$ sudo apt-get install apache2-mpm-worker
...
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] [...
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 ...
0
votes
1
answer
164
views
Is there a difference between MaxClient value for mpm prefork and worker?
I would like to know if there is a difference between MaxClient value for mpm prefork and worker.
I'm actualy capable of calculating this value for mpm_prefork (${ALLOWEDMEM} / ${AVGMEMAPACHEUSED} )...
0
votes
1
answer
2k
views
Apache2 seems busy
I have an Ubuntu 14.04.4 LTS server running Apache/2.4.7 and my error.log file is frequently getting this kind of message below:
[Thu Sep 01 19:45:40.571637 2016] [mpm_prefork:info] [pid 1696] ...
0
votes
1
answer
5k
views
Configuring apache2-mpm-worker with php5
I have a ubuntu 14.04.4 server box and I have installed apache2 and php5 packages but after enabling mpm_worker and restart apache I got following error
" Apache is running a threaded MPM, but your ...
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
...
1
vote
0
answers
629
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, ...
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 ...
0
votes
1
answer
1k
views
Are the php-zts extensions needed when the mpm is event?
my php is correctly installed and working, but at Apache startup I have all the current loaded extensions with warning messages like...
[23-Dec-2015 21:47:45 UTC] PHP Warning: PHP Startup: bz2: ...
0
votes
0
answers
952
views
apache (httpd) problems with mpm_worker
UPDATE: Seems that the mysql deamon is the bottleneck!! Working on it - will let you know if this fixed my problems (and not switching to another mpm).
UPDATE2: that was not the reason for my problem ....
0
votes
0
answers
47
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:
https://i.stack.imgur.com/WrlNz.png
It was even worse some days ago, so I ...
0
votes
0
answers
126
views
How do you configure Apache 2.2 / 2.4 to apply back pressure
What I'm trying to accomplish is to get Apache to return a 503 (server busy) under heavy load. I'm using the worker MPM module. What I'm seeing is that when MaxClients is reached, Apache just hangs ...
1
vote
1
answer
683
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-...
0
votes
1
answer
740
views
Apache with Worker MPM AND php-fpm
I am willing to shift my application server from default prefork MPM module to worker MPM. My server configuration is
OS - CentOS 6
Apache - Apache/2.2.15 (Unix)
PHP 5.4.35 (fpm-fcgi)
CPU - 4
RAM - 8 ...
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 ...
0
votes
0
answers
5k
views
Apache Worker MPM / PHP-FPM Tuning
I have a VPS running CentOS 6.5, Apache 2.2, PHP-FPM v5.4 and MySQL 5.5. I take advantage of APC and Memcache. The VPS has 8 cores and 8GB RAM. I'm running a medium volume site (15,000 users / day, ...
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
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 ...
0
votes
1
answer
2k
views
Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?
I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
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....
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 ...
0
votes
0
answers
94
views
Debian 7, Apache2, PHP w/ FCID - what am I doing wrong?
A lot of the documentation and search results came from those who have multiple users/sites and not sure if my situation applies to theirs or if it will open it up more than needed.
My situation: ...
0
votes
1
answer
1k
views
Apache graceful restart, reduces the max process count
I have configured apache with "Worker" MPM module.
See the worker module settings:
<IfModule mpm_worker_module>
StartServers 4
ServerLimit 20
MaxClients ...
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
...
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 ...
0
votes
1
answer
85
views
Apache worker mpm changes having no impact
I am trying to load test my apache server with jmeter (10 hosts, 10 threads) with various mpm config. I tried various settings from maxclient 150 to 3000, but there is negligible difference in the ...
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.
...
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....
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 ...
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 ...
0
votes
1
answer
2k
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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
1
answer
565
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 ...