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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Apache causing massive load spike after reboot

My server is running Ubuntu 18.04.5 LTS, with LAMP stack (PHP 7.4), and apache version 2.4.29 using Prefork MPM. My server has 16 CPUs and 29GB of RAM. This server hosts 258 websites. Whenever I ...
0
votes
1answer
19 views

Accessing default MPM prefork values in Ubuntu(debian based architecture) vs CentOS (Red Hat Enterprise Linux)

I was trying to list the MPM prefork default configuration values in apache web server. In ubuntu, apache web server, I could access the values inside /etc/apache2/mods-available/mpm_prefork.conf file....
0
votes
1answer
31 views

Does MaxClients determine the number of active users in a site

Keeping all factors constant , assuming my apache server is configured as below , in event mpm <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 2 MaxSpareServers 5 MaxClients 200 # ...
0
votes
0answers
175 views

Apache2 can't handle 200 concurrent requests with 8GB Ram and 4 core cpu

I am load testing a worpress site with loader.io , i am sending 100 concurrent requests per second, running the test in exactly 1 minute. The test fails considerably after 20 seconds or so, nothing ...
1
vote
2answers
193 views

Zero idle workers in apache2 server causing performance issues

I have a SAAS product built on php along with apache2 and mysql and it has been hosted on AWS. My production is very very slow on peak times and when I check server-status then it says idle workers ...
0
votes
0answers
35 views

Bots causing server to crash - getting error “server seems busy” in apache logs - need to update prefork settings?

So after my website ( running on a Rackspace 2GB ram centos 7 instance) went down twice this week I went through the logs and seems the culprit are bots ( search engine and others.. ) The bots seem ...
0
votes
0answers
182 views

Apache MPM_Prefork Setting for high performance

My VPS has 16GB RAM / 6 Cores and it's running on Debian 10 with Virtualmin installed. and my script needs mpm_php to work properly. Getting high traffic so I need to adjust the default setting of the ...
0
votes
0answers
62 views

How tuning Apache performance and less timeout

I have a server in these features have a server in these features : - Intel Xeon E5-1630v3 - 4c/8t - 3.7GHz /3.8GHz - 64GB DDR4 ECC 2133 MHz - SoftRAID 2x480GB SSD - 250 Mbps Bandwidth I'm ...
2
votes
2answers
147 views

Httpd server optimization for 50-100k users

I currently have an AWS EC2 instance m5.24xlarge that has : 96 vCPU 384 RAM 25 GBPs network We are currently expecting more than 50 000 concurrent users online, I have added a layer on cloudflare ...
0
votes
0answers
244 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
0answers
201 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
1answer
62 views

apachectl reports that it's in worker mode, however the configuration seems to be set to prefork

I'm using a VPS running Apache2.4 and CentOS7. I'm hitting some threading issues and would like to try to run Apache in prefork mode. If I run apachectl -V to check which mode I'm in, I get this ...
1
vote
1answer
47 views

Apache runs several processes slows server, MYSQL can't connect, always fixed after reboot

My WordPress Web Server will run for 30 - 60 minutes (then go down, and run very slowly as a server, difficult to input using Putty, or KVM terminal), after a reboot it will run fine, then Apache will ...
0
votes
1answer
187 views

Apache prefork module. Processes not being forked under heavy load

I have an apache prefork module http server running on linux machine. The machine has 8GB RAM. I have following in my /etc/httpd/conf/httpd.conf: <IfModule prefork.c> StartServers 8 ...
0
votes
1answer
363 views

Why so much maxrequestworkers suggestion by apachebuddy?

I am using a Ubuntu 18.04 server for hosting a big WordPress site, this site gets max 2500 visitor per day. My issue is my site going down every few minutes and showing 504 Gateway Time-out error. I ...
0
votes
1answer
1k 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
52 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 (...
3
votes
1answer
3k 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
1answer
281 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
2k 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
153 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 ...
1
vote
1answer
1k 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
1answer
3k 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
1answer
2k 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
4k 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
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?
1
vote
0answers
764 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
153 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
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 ...
3
votes
1answer
2k 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
2k 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
2k 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
6k 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
1k 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
2answers
3k 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
684 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
2k 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
9k 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
562 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. ...
1
vote
1answer
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
1answer
148 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
1k 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
811 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
295 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
2k 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
2k 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
181 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
537 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
237 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-...
2
votes
1answer
6k 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 ...