Skip to content

Instantly share code, notes, and snippets.

View moraleslevi's full-sized avatar
🌴
I may be slow to respond.

Levi Morales moraleslevi

🌴
I may be slow to respond.
View GitHub Profile
@moraleslevi
moraleslevi / apache-prefork-tune.sh
Created May 9, 2017 20:17
This is a script you can run on apache servers to help calculate MaxRequestWorkers/ServerLimit based on available free memory.
#!/bin/bash
echo -e "\n*** Memory Output ***\n"
free -m
echo -e "\nEnter the amount of free memory (in MB), followed by [ENTER]:"
read FREE