Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mpm-worker]

The tag has no usage guidance.

0
votes
0answers
11 views

Apache Settings & Optimization Advice [duplicate]

I was hoping to get some expert advice on the best settings for apache. We have a dedicated server with this configuration: 2.0GHz Octa-Core D-1540 Broadwell Xeon 64GB 480GB SSD with RAID 5 ...
0
votes
0answers
33 views

Apache - which is good option on php mysql only api server? Prefork or worker

I have never used apache. I used nginx with php-fpm always. This time, I am using only php and mysql. So I thought apache can perform better than nginx on this case. My default installation contains ...
0
votes
1answer
990 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
1answer
344 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
0answers
575 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
1answer
3k 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
1answer
380 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
1answer
1k 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] [...
0
votes
1answer
786 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
1answer
122 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
1answer
609 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
1answer
3k 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
1answer
2k 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
0answers
410 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, ...
1
vote
2answers
2k 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
1answer
725 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
0answers
205 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
0answers
31 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 ...
0
votes
0answers
100 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
1answer
138 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
1answer
455 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
1answer
2k 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
0answers
4k 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, ...
1
vote
0answers
289 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
2
votes
1answer
329 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
1answer
857 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 ...
3
votes
2answers
2k 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
2answers
6k 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
0answers
84 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
1answer
618 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 ...
0
votes
2answers
2k 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
0answers
271 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
76 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
2answers
1k 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
0answers
161 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....
24
votes
3answers
46k 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
3answers
877 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
1answer
1k 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
1answer
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
1answer
10k 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
1answer
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
2answers
10k 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
1answer
475 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 ...
1
vote
1answer
500 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?
0
votes
1answer
2k views

PHP Thread Safe end 2012?

Considering this question and answer List of PHP modules that are thread safe and Is PHP Thread Safe My question is, is PHP thread safe in 2012?
6
votes
2answers
3k 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 ...
0
votes
1answer
1k views

Problems setting up worker MPM

Can't get MPM Worker to work.. I've installed the php-zts package, uncommented #HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd and restarted the httpd service. the httpd printout: [root@web06 ...
0
votes
1answer
3k views

apache2: mpm configuration

After several nagios messages like "CRITICAL - load average: 135.12, 92.20, 44.09" and oom-killer, I checked the configuration again and again, with different settings, but no success. The only work-...
252
votes
4answers
135k 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 ...
1
vote
1answer
599 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, ...