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
49 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
72 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
24 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
23 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
20 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
44 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
0answers
49 views

Apache on big server too low in performance (Cake PHP 1.3 web site), not using all the available resources

I have a "big" VM running apache 2.4.6-90, MPM Prefork, almost full dedicated to a web site programed in PHP 5.4.16 Cake 1.3 (yes, old...) that connects to a external dedicated Percona server. I ...
0
votes
1answer
119 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
234 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
765 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
39 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
2k 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
211 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
1k 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
116 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
949 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....
-1
votes
1answer
2k 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
3k 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
604 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
108 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
763 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
1k 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
5k 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
2k 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
599 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

<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
6k 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
478 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
1k 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
142 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
877 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
619 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
261 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
154 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
498 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
199 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
5k 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
106 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
37 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
2k 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
197 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
433 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
64k 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 ...