Apache using up all memory with no visitors on website
Try this answer over on Server Fault. This is definitely not a programming question.
https://serverfault.com/questions/408611/apache-httpd-process-utilizing-all-my-servers-memory
Apache 2.4 hits rlimit_nproc: hidden processes?
Found the problem thanks to the suggestion from @sarnold. My Application depends on mpm_prefork
and up till Ubuntu 13.04, this module was automatically enabled when the apache2-mpm-prefork
package is installed. I assumed this was still the case, but it turned out that it was running mpm_event
.
It seems that in Apache 2.4 the packaging of MPM's has changed and mpm_prefork
needs to be enabled manually after installation:
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo service apache2 restart
Now the problems seem to have disappeared.
Related Topics
Linux Sed Command - Using Variable with Backslash
How to Setup the Passwords-Less Authentication Between Two Different Accounts
Looking for Files Not Owned by a Specific User
List Files Over a Specific Size in Current Directory and All Subdirectories
How to Set the Grep After Context to Be "Until the Next Blank Line"
Linux: Merging Multiple Files, Each on a New Line
In Linux, What Do All the Values in the "Top" Command Mean
Jmeter - Loopback Address Error When Launching Jmeter-Server on Linux
Running Apt-Get for Another Partition/Directory
Trailing Arguments with Find -Exec {} +
Multiple Ip Addresses on Google Cloud Compute
Check Free Disk Space for Current Partition in Bash
I Want to Contribute to the Linux Kernel
How to Print Only the Hex Values from Hexdump Without the Line Numbers or the Ascii Table
New to Linux Kernel/Driver Development
How to Automatically Pipe to Less If the Result Is More Than a Page on My Shell