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-prefork]

Multi-Processing Module (MPM) implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3.

0
votes
1answer
40 views

Apache Server Status Sending Reply with extrem high SS

I'm currently running into a really strange issue. My apache (prefork - 2.2.15) is running into MaxClients Limit and is therefore not responding to requests anymore. The Server-Status is showing a ...
0
votes
0answers
27 views

Increase in memory utilization after upgrading to httpd 2.4.34 from 2.4.23 for 7.2

We upgraded from httpd 2.4.23 to 2.4.32 . After upgrade, we noticed mpm module got changed from preforx to event in 2.4.23 $ /apps/httpd.2.4.23/bin/httpd -M | grep mpm mpm_prefork_module (...
1
vote
1answer
210 views

Apache Start Fails due to missing mpm module

I originally posted this question on StackOverflow. Before it was taken down as off topic, the answer and comments were leading to MPM not being loaded I tried sudo apt-get install apache-mpm-prefork ...
1
vote
0answers
40 views

Apache not running as user with mpm_itk

I have mpm_prefork and mpm_itk loaded with Apache (on CentOS). A httpd -M | grep mpm reveals the following: mpm_itk_module (shared) mpm_prefork_module (shared) I my vhost configuration I have ...
0
votes
2answers
470 views

How to reduce server load with Apache PHP

Our Linode server load has increased in the last month running CentOS 7. I have upgraded to MariaDB 10.3 with PHP 7.2 now on CentOS 7.5 with 16GB of ram and 6 cores. MariaDB also on the server using ...
0
votes
0answers
77 views

One app, several virtual host and multiple apache instances

We are having a problem in witch from time to time our apache2 server stops working. When I try to restart it I need to first kill several existing running instances of apache. Like this: sudo ...
0
votes
1answer
437 views

reducing number of child processes on mpm prefork

I have a small CGI application served via Apache2 and I would like to reduce the number of child processes that Apache2 maintains. Here's the configuration (very basic) that I have for mpm_prefork....
0
votes
0answers
1k views

AH00052: child pid [PID] exit signal Aborted (6) - Apache error

I have an installation of Apache/2.4.18 running on Ubuntu 16.04. Apache is configured as Prefork MPM. PHP 7.0.22 Checking the error log at /var/log/apache2/error.log I see lots of these errors: [Fri ...
0
votes
0answers
31 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
894 views

Apache2,4 + Prefork + Keep-alive On

I'm trying to speed up a website with a lot of images that are served from a separate subdomain static.example.com (same IP as www.) Using the pingdom tool noticed that first 5-6 requests (on static....
0
votes
1answer
1k views

How can I increase 5000 concurrent request with mpm_prefork on Apache

I've configured Apache web server on my CentOs sever machine. I want to increase 5000 concurrent request with MPM_Prefork. Please suggest best Prefork configuration for that. I've done Prefork ...
0
votes
1answer
914 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
0answers
428 views

Apache uses 100% CPU but only part of RAM on heavy load

I am running a Website that gets heavy usage at a particular time. I run apache 2.4 on an EC2 Ubuntu 16.04 server with 4 Core CPU and 16GB of RAM and 2GB Swap. Size of the average apache process is ...
0
votes
2answers
78 views

How many users can my server take? [duplicate]

I was told to switch to nginx or at least to mpm_worker. But really, how can I estimate if my server is not really overloaded even with mpm_prefork? My system is: GCP 1 CPU + 3,75GB Debian 8 Apache ...
0
votes
1answer
320 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 ...
3
votes
1answer
1k views

Elastic Beanstalk Log Rotation Causing Apache Restart

I have already worked through AWS Elastic Beanstalk - Apache is restarting constantly Our elastic beanstalk instances are reporting the following message in the error_log [Mon Jun 26 22:01:01....
0
votes
0answers
1k views

Switch to Apache Event MPM from Prefork in Debian 8

With a2query -M command, I found out that Apache 2.4 uses Prefork, so today, I want to switch to Event MPM. I installed Event MPM with apt-get install apache2-mpm-event command and restarted Apache as ...
0
votes
1answer
687 views

Apache .conf file ignored

I'm running Apache Apache/2.4.25 (Amazon) using prefork and I'm trying to adjust ServerLimit and MaxRequestWorkers. I'm using the following settings: <IfModule prefork.c> ServerLimit 40 ...
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
638 views

Apache 2.4 list prefork directive values from command line

I am unable to find values of MPM Prefork directives like MaxRequestWorkers/MaxSpareThreads etc in my config file. Is there a way to list these values from command line? -bash-4.2# httpd -v Server ...
0
votes
1answer
1k views

mpm_prefork:error (11)Resource temporarily unavailable: AH00159: fork: Unable to fork new process

After having some issues I have rebuilt my server on a new, clean Fedora 24 platform. It's a fairly busy server, and now when it starts up, I get a flood of these messges in apache's error_log: [Thu ...
0
votes
1answer
363 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 ...
0
votes
1answer
767 views

<IfModule prefork> in Apache 2.4 (Amazon) is not in httpd.conf

I am running an AWS EC2 instance with LAMP (apache 2.4 (amazon). I am trying to tune the prefork module but I can't find it. I have checked the httpd.conf file and it is not in there. I have ...
1
vote
2answers
3k views

WINNT Apache MPM “ThreadsPerChild” configuration on Windows Server 2008 R2

I am getting error and unable to start Apache when I set my ThreadPerChild to 200 , although I still have 60% free RAM. Server is Windows Server 2008 R2 With 4GB RAM. How to utilize more RAM to apache ...
5
votes
1answer
340 views

Apapche + php-fpm + mysql too slow on powerful server

I'm trying to test load a LAMP application that my team developed and deployed on AWS ubuntu 14.04 using jmeter. We are using AWS CDN to serve static files, mysql and apache are on the same host. ...
0
votes
1answer
757 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
117 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
592 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
3answers
335 views

Prevent Apache2 from writing startup information in error log

Apache2 is always writing startup information into the error log. See the following output: [Fri Aug 26 12:57:54.298895 2016] [ssl:warn] [pid 4287] AH01873: Init: Session Cache is not configured [...
0
votes
0answers
167 views

Apache maximum memory size per child

Running apache 2.0 on ubuntu 14.04 (MPM prefork), I'm seeing multiple child workers with variable "RES" megabyte values (as expected). While I have plenty of RAM to handle all of these processes (i.e. ...
0
votes
1answer
1k views

Apache Keeps reverting to mpm_prefork (Apache 2.4.7 / Ubuntu 14.04.2)

I have had this problem for over a year now whereby each time there is a security update to Ubuntu and I have to reboot the server, Apache 2.4 decides to start using the mpm_prefork worker despite the ...
0
votes
1answer
974 views

mpm_prefork values for 2-4 GB RAM [duplicate]

I have bought new linode (1GB). On this page :https://www.linode.com/docs/websites/lamp/install-lamp-on-ubuntu-16-04 Linode says: Below are the suggested values for a 1GB Linode: File:/etc/...
2
votes
0answers
114 views

Apache spawning workers even though there's almost no access

Lately Apache has been spawning workers even though there seems to be no reason for it. After ~10 minutes of a restart, it keeps spawning workers until it reaches the maximum number and new requests ...
1
vote
0answers
403 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, ...
3
votes
2answers
164 views

ubuntu 14.04 Apache 2.4.7 mpm_event Files and FilesMatch not working

We recently switched our Apache 2.4.7 mode from mpm_pre-fork to mpm_event. Since then we haven't been able to get our Files directive to work. <Files "*.php"> Header set Cache-Control "no-...
1
vote
1answer
4k views

Switching from MPM Worker to Event with PHP-FPM

CentOS 7, Apache 2.4, FPM/FastCGI, MariaDB My 512M VPS is eating up memory with one development WordPress site, so I'm hoping this will lead me down a path of better tuning; if not, please inform. I ...
-2
votes
1answer
100 views

Is there a way for Apache to control how much memory it reserves?

Apache seems to have no control over how much memory it reserves. In MPM prefork you control the maximum number of processes you want to allow, but whatever number you use there, there is always a ...
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 ...
2
votes
2answers
1k views

Optimize Apache for high concurrent requests

I am running a Apache2 Ubuntu server which serves the API request from mobile apps. Recently I am facing a bottleneck that when the request getting higher (more concurrent users), the request ...
1
vote
1answer
135 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-...
1
vote
0answers
397 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 ...
18
votes
2answers
57k 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
538 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 ...
1
vote
1answer
143 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 2-...
0
votes
0answers
1k 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 ...
3
votes
0answers
164 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 ...
0
votes
2answers
6k 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
620 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 ...
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 ...
20
votes
1answer
48k 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 ...