The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ApacheBuddy - Help you tune your Apache configuration

Discussion in 'Workarounds and Optimization' started by Astral God, Jul 4, 2013.

  1. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
    #1 Astral God, Jul 4, 2013
    Last edited by a moderator: Apr 7, 2015
  2. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
  3. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    ?

    The output comes from a VPS with cPanel ... :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page