ApacheBuddy - Help you tune your Apache configuration

Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
ApacheBuddy

This will make some recommendations on tuning your Apache configuration based on your current settings and Apache's memory usage.

This script was inspired by Major Hayden's MySQL Tuner (http://mysqltuner.com)

Usage :

Code:
wget https://raw.github.com/gusmaskowitz/apachebuddy.pl/master/apachebuddy.pl
perl apachebuddy.pl
Output :

Code:
root# perl apachebuddy.pl
########################################################################
# Apache Buddy v 0.3 ###################################################
########################################################################
Gathering information...
We are checking the service running on port 80
The process listening on port 80 is /usr/local/apache/bin/httpd
The process running on port 80 is Apache/2.2.24 (Unix)
Apache has been running 4d 12h 30m 59s
The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
Apache is using prefork model

Examining your Apache configuration...
Apache runs as nobody
Your max clients setting is 50

Analyzing memory use...
Your server has 3830 MB of memory
The largest apache process is using 75.81 MB of memory
The smallest apache process is using 75.11 MB of memory
The average apache process is using 75.54 MB of memory
Going by the average Apache process, Apache can potentially use 3777.01 MB RAM (98.62 % of available RAM)
Going by the largest Apache process, Apache can potentially use 3790.51 MB RAM (98.97 % of available RAM)

Generating reports...
### GENERAL REPORT ###

Settings considered for this report:

        Your server's physical RAM:             3830MB
        Apache's MaxClients directive:          50
        Apache MPM Model:                       prefork
        Largest Apache process (by memory):     75.81MB
        [ OK ]  Your MaxClients setting is within an acceptable range.
        Max potential memory usage:             3790.5 MB

        Percentage of RAM allocated to Apache   98.97 %
More info at github.com/gusmaskowitz/apachebuddy.pl
 
Last edited by a moderator: