GithubHelp home page GithubHelp logo

Comments (36)

richardforth avatar richardforth commented on May 26, 2024

I knew I would get a pokemon quote in somewhere, so here it is, I thought I had "caught them all". Can you please paste in the example output of where it is appearing and I will get it fixed for you.

PS No I don't play Pokemon Go

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

Hahaha...here is the output :

>         Your server's physical RAM:                                   8192 MB
>         Remaining Memory after other services considered:             7460 MB
>         Apache's MaxClients directive:                                256       <--------- Current Setting
>         Apache MPM Model:                                             prefork
>         Largest Apache process (by memory):                           5 MB
> [ !! ]  Your MaxClients setting is too low.
>         Your recommended MaxClients setting is between 1147 and 1275.           <------- Acceptable Range (10% of MAX)
>         Max potential memory usage:                                   1497 MB
>         Percentage of TOTAL RAM allocated to Apache:                  18.29  %
>         Percentage of REMAINING RAM allocated to Apache:              20.08  %
> --------------------------------------------------------------------------------
> 

In my httpd.conf there's no MaxClients directive, and replaced with MaxRequestWorkers (https://httpd.apache.org/docs/current/mod/mpm_common.html)

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Hi,

I was also scanning through the codebase and found the same, so thanks for confirming. I'll get that looked into as a priority.

Rich

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Theres a static string print statement there with no logic to say is this apache2.4 or 2.2, the previous logic did the correct job (pulls the right data) but still uses $maxclients as a variable, so i just need to change the wording with an if statement, though in a future version I may rewrite the entire block of code that is checking for MaxClients / MaxRequestWorkers, but thats a much bigger job.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Hi junglon,

Interestingly, as I was attempting changes in staging, I notice that code is already in place to differentiate between versions, can you show me a complete output? As I think that there might be an issue with the logic here not picking up that you are on 2.4

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Code already in place:

                        if ( our $apache_version =~ m/.*\s*\/2.4.*/) {
                                show_shortcrit_box(); print "\t${RED}Your MaxRequestWorkers setting is too low.${ENDC}\n"; # exempt from NOINFO directive.
                        } else {
                                show_shortcrit_box(); print "\t${RED}Your MaxClients setting is too low.${ENDC}\n"; # exempt from NOINFO directive.
                        }
                        if ( our $apache_version =~ m/.*\s*\/2.4.*/) {
                                print "\t${YELLOW}Your recommended MaxRequestWorkers setting is between $min_rec_maxclients and $max_rec_maxclients.${ENDC}\t\t<------- Acceptable Range (10% of MAX)\n";
                        } else {
                                print "\t${YELLOW}Your recommended MaxClients setting is between $min_rec_maxclients and $max_rec_maxclients.${ENDC}\t\t<------- Acceptable Range (10% of MAX)\n";
                        }

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Looking forward to seeing the full output. I will try to work out what is going wrong here in your case.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

I need to leave now, but I will check out your output later this evening.

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

Here is the full output :

[root@host ~]# ./apache2buddy.pl --no-check-pid
########################################################################################
##       ___                     __        ___      ____            __    __          ##
##      /   |  ____  ____ ______/ /_  ___ |__ \    / __ )__  ______/ /___/ /_  __     ##
##     / /| | / __ \/ __ `/ ___/ __ \/ _ \__/ /   / __  / / / / __  / __  / / / /     ##
##    / ___ |/ /_/ / /_/ / /__/ / / /  __/ __/   / /_/ / /_/ / /_/ / /_/ / /_/ /      ##
##   /_/  |_/ .___/\__,_/\___/_/ /_/\___/____/  /_____/\__,_/\__,_/\__,_/\__, /       ##
##         /_/ apache2buddy.pl                                          /____/        ##
##                                                                                    ##
########################################################################################

About...
[ INFO     ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO     ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO     ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO     ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO     ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO     ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK       ] This script is being run as root.
[ OK       ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK       ] 'php' exists and is available for use: /usr/local/bin/php

[ OK       ] The port (port 80) is a valid port.
[ INFO     ] We are attempting to discover the operating system type and version number ...
[ INFO     ] OS Name: CentOS
[ INFO     ] OS Release: 7.2
[ OK       ] Apache2buddy supports this OS Release/Version.
[ INFO     ] Hostname: 
[ INFO     ] Primary IP: 
[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ INFO     ] The process running on port 80 is not Apache. Falling back to process list...
[ INFO     ] Apache is actually listening on port 80
[ INFO     ] The process running on port 80 is 0.
[ INFO     ] Apache has been running 0d 0h 01m 19s.
[ INFO     ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO     ] Apache is using prefork model.
[ WARNING  ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO     ] Apache runs as nobody.
[ INFO     ] Your server has 8192 MB of PHYSICAL memory.
[ WARNING  ] MaxClients directive not found, assuming default values.
[ INFO     ] Your MaxClients setting is 256.
[ INFO     ] Your ServerLimit setting is 500.
[ WARNING  ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO     ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO     ] MySQL Detected => Using 877.82 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

grep: /var/log/apache2/error.log: No such file or directory
[ OK       ] MaxClients has not been hit recently.

Analyzing apache memory use...
[ INFO     ] httpd is currently using 146.69 MB of memory.
[ INFO     ] The smallest apache process is using 4.82 MB of memory
[ INFO     ] The average apache process is using 5.17 MB of memory
[ INFO     ] The largest apache process is using 5.48 MB of memory

Results...
[ OK       ] Going by the average Apache process, Apache can potentially use 1323.53 MB RAM:
                Without considering services: 16.16 % of total installed RAM
                Considering extra services: 18.10 % of remaining RAM
[ OK       ] Going by the largest Apache process, Apache can potentially use 1402.89 MB RAM:
                Without considering services: 17.13 % of total installed RAM
                Considering extra services: 19.19 % of remaining RAM

Generating reports...
### GENERAL FINDINGS & RECOMMENDATIONS ###
--------------------------------------------------------------------------------
Apache2buddy.pl report for server:

Settings considered for this report:

        Your server's physical RAM:                                   8192 MB
        Remaining Memory after other services considered:             7314 MB
        Apache's MaxClients directive:                                256       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxClients setting is too low.
        Your recommended MaxClients setting is between 1200 and 1334.           <------- Acceptable Range (10% of MAX)
        Max potential memory usage:                                   1402 MB
        Percentage of TOTAL RAM allocated to Apache:                  17.13  %
        Percentage of REMAINING RAM allocated to Apache:              19.19  %
--------------------------------------------------------------------------------
A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/26 15:30:22 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1275" Smallest: "4.92 MB" Avg: "5.14 MB" Largest: "5.85 MB" Highest Pct Remaining RAM: "20.08%" (18.29% TOTAL RAM)
2016/07/26 18:18:35 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1405" Smallest: "4.93 MB" Avg: "5.07 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "18.22%" (16.25% TOTAL RAM)
2016/07/26 18:20:38 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1381" Smallest: "5.05 MB" Avg: "5.19 MB" Largest: "5.29 MB" Highest Pct Remaining RAM: "18.53%" (16.54% TOTAL RAM)
2016/07/26 18:21:28 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1402" Smallest: "4.82 MB" Avg: "5.01 MB" Largest: "5.21 MB" Highest Pct Remaining RAM: "18.26%" (16.29% TOTAL RAM)
2016/07/26 18:22:04 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1334" Smallest: "4.82 MB" Avg: "5.17 MB" Largest: "5.48 MB" Highest Pct Remaining RAM: "19.19%" (17.13% TOTAL RAM)
`

I'm using nginx as reverse proxy (using Engintron) but currently I'm disabling it for testing purposes.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Ah that's why. It [apache] was compiled from source. Interestingly it
doesn't get the apache version when it falls back to the process list. And
I notice it doesn't recognise it as apache properly. I think this is
because I am looking for standard binaries not /usr/local binaries.

I'm not intending to support packages that are compiled from source, as the
options become infinite and unmanageable.

But there are a few tweaks I can make here anyway (esp. Regarding it not
picking up a version for compiled versions) I will work on it this evening
and may need you to run some further tests.

I bet if you were to install apache 2.4 using yum, this problem will go
away.

On 26 Jul 2016 12:28 p.m., "junglon" [email protected] wrote:

Here is the full output :

[root@host ~]# ./apache2buddy.pl --no-check-pid
########################################################################################

___ __ ___ ____ __ __

/ | ____ ____ _/ / ___ | \ / __ ) __/ // / __

/ /| | / __ / __ `/ **_/ __ / _ **/ / / __ / / / / __ / __ / / / /

/ ___ |/ // / // / /__/ / / / __/ __/ / // / // / // / // / /_/ /

// |/ ./,/// ///__/ //,_/,_/,_/_, /

// apache2buddy.pl /___/

########################################################################################

About...
[ INFO ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK ] This script is being run as root.
[ OK ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK ] 'php' exists and is available for use: /usr/local/bin/php

[ OK ] The port (port 80) is a valid port.
[ INFO ] We are attempting to discover the operating system type and version number ...
[ INFO ] OS Name: CentOS
[ INFO ] OS Release: 7.2
[ OK ] Apache2buddy supports this OS Release/Version.
[ INFO ] Hostname: host.temanhost.com
[ INFO ] Primary IP: 103.43.45.108
[ INFO ] We are checking the service running on port 80...
[ INFO ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ INFO ] The process running on port 80 is not Apache. Falling back to process list...
[ INFO ] Apache is actually listening on port 80
[ INFO ] The process running on port 80 is 0.
[ INFO ] Apache has been running 0d 0h 01m 19s.
[ INFO ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO ] Apache is using prefork model.
[ WARNING ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO ] Apache runs as nobody.
[ INFO ] Your server has 8192 MB of PHYSICAL memory.
[ WARNING ] MaxClients directive not found, assuming default values.
[ INFO ] Your MaxClients setting is 256.
[ INFO ] Your ServerLimit setting is 500.
[ WARNING ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO ] MySQL Detected => Using 877.82 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

grep: /var/log/apache2/error.log: No such file or directory
[ OK ] MaxClients has not been hit recently.

Analyzing apache memory use...
[ INFO ] httpd is currently using 146.69 MB of memory.
[ INFO ] The smallest apache process is using 4.82 MB of memory
[ INFO ] The average apache process is using 5.17 MB of memory
[ INFO ] The largest apache process is using 5.48 MB of memory

Results...
[ OK ] Going by the average Apache process, Apache can potentially use 1323.53 MB RAM:
Without considering services: 16.16 % of total installed RAM
Considering extra services: 18.10 % of remaining RAM
[ OK ] Going by the largest Apache process, Apache can potentially use 1402.89 MB RAM:
Without considering services: 17.13 % of total installed RAM
Considering extra services: 19.19 % of remaining RAM

Generating reports...

GENERAL FINDINGS & RECOMMENDATIONS


Apache2buddy.pl report for server: host.temanhost.com (103.43.45.108):

Settings considered for this report:

    Your server's physical RAM:                                   8192 MB
    Remaining Memory after other services considered:             7314 MB
    Apache's MaxClients directive:                                256       <--------- Current Setting
    Apache MPM Model:                                             prefork
    Largest Apache process (by memory):                           5 MB

[ !! ] Your MaxClients setting is too low.
Your recommended MaxClients setting is between 1200 and 1334. <------- Acceptable Range (10% of MAX)
Max potential memory usage: 1402 MB
Percentage of TOTAL RAM allocated to Apache: 17.13 %

Percentage of REMAINING RAM allocated to Apache: 19.19 %

A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/26 15:30:22 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1275" Smallest: "4.92 MB" Avg: "5.14 MB" Largest: "5.85 MB" Highest Pct Remaining RAM: "20.08%" (18.29% TOTAL RAM)
2016/07/26 18:18:35 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1405" Smallest: "4.93 MB" Avg: "5.07 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "18.22%" (16.25% TOTAL RAM)
2016/07/26 18:20:38 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1381" Smallest: "5.05 MB" Avg: "5.19 MB" Largest: "5.29 MB" Highest Pct Remaining RAM: "18.53%" (16.54% TOTAL RAM)
2016/07/26 18:21:28 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1402" Smallest: "4.82 MB" Avg: "5.01 MB" Largest: "5.21 MB" Highest Pct Remaining RAM: "18.26%" (16.29% TOTAL RAM)
2016/07/26 18:22:04 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1334" Smallest: "4.82 MB" Avg: "5.17 MB" Largest: "5.48 MB" Highest Pct Remaining RAM: "19.19%" (17.13% TOTAL RAM)
`

I'm using nginx as reverse proxy (using Engintron) but currently I'm
disabling it for testing purposes.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFpUV10M1DOT8_md0tD-cDtB09JaaSXDks5qZe9bgaJpZM4JU5-O
.

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

This is standard cpanel installation (compiled using EasyApache), so I think there's a lot of apache installation configured like this. It will be useful if the script can be used to check it.

Thanks

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ INFO     ] The process running on port 80 is not Apache. Falling back to process list...
[ INFO     ] Apache is actually listening on port 80
[ INFO     ] The process running on port 80 is 0.

These lines concern me, heres my thoughts:

  1. Lines 1 and 2 are contradictory, I need to add a valid path of '/usr/local/apache/bin/httpd' so it is detected as apache, however, I may add a WARN to say that we do not support apache installed from source. This will not prevent the script form running but is a warning to say we are on dodgy ground (anlything out of /usr/local is unsupported, and we definately do not support cPanel / Plesk / Other Control Panels that have their own packaged versions of apache.)
  2. The last line, is spitting out a 0. This is supposed to be the version number, as it does'nt match 2.4, everything reverts to 2.2 semantics.
  3. Fixing 1 should allow it to find the correct version and stop 2 from happening, but lets see.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Changes are being uploaded to staging, stand by for test commands...

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Hi Junglon,

Here is your test command:

curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/staging/apache2buddy.pl | perl
This fix addresses Lines 1 and 2, which (hopefully) prevent line 4 showing the 0, and giving a valid apache version for the rest of the script, can you please paste your full output again for me but this time using the staging branch code using the command above

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

If by chance it doesnt work, here's what i am tryiing to do and will need your help with:

We need to take the binary path: /usr/local/apache/bin/httpd

and use it to construct a command similar to this:
/usr/local/apache/bin/httpd -V 2>&1 | grep "Server version"

If you can do some local testing and find out how to get that "Server version" line for me, that will be a big help. Basically once we have that we can tell if it is 2.2 or 2.4 etc.... then that should fix your MaxRequestWorkers issue.

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

Using staging..

[root@host /]# ./apache2buddy.pl --no-check-pid
########################################################################################
##       ___                     __        ___      ____            __    __          ##
##      /   |  ____  ____ ______/ /_  ___ |__ \    / __ )__  ______/ /___/ /_  __     ##
##     / /| | / __ \/ __ `/ ___/ __ \/ _ \__/ /   / __  / / / / __  / __  / / / /     ##
##    / ___ |/ /_/ / /_/ / /__/ / / /  __/ __/   / /_/ / /_/ / /_/ / /_/ / /_/ /      ##
##   /_/  |_/ .___/\__,_/\___/_/ /_/\___/____/  /_____/\__,_/\__,_/\__,_/\__, /       ##
##         /_/ apache2buddy.pl                                          /____/        ##
##                                                                                    ##
########################################################################################

About...
[ INFO     ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO     ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO     ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO     ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO     ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO     ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK       ] This script is being run as root.
[ OK       ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK       ] 'php' exists and is available for use: /usr/local/bin/php

[ OK       ] The port (port 80) is a valid port.
[ INFO     ] We are attempting to discover the operating system type and version number ...
[ INFO     ] OS Name: CentOS
[ INFO     ] OS Release: 7.2
[ OK       ] Apache2buddy supports this OS Release/Version.
[ INFO     ] Hostname: 
[ INFO     ] Primary IP: 
[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ WARNING  ] Apache seems to have been installed from source, its technically unsupported, we may get errors
[ WARNING  ] Server version: Apache/2.4.23 (Unix)
[ INFO     ] The process running on port 80 is Apache.
[ INFO     ] Apache has been running 0d 0h 01m 28s.
[ INFO     ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO     ] Apache is using prefork model.
[ WARNING  ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO     ] Apache runs as nobody.
[ INFO     ] Your server has 8192 MB of PHYSICAL memory.
[ WARNING  ] MaxClients directive not found, assuming default values.
[ INFO     ] Your MaxClients setting is 256.
[ INFO     ] Your ServerLimit setting is 500.
[ WARNING  ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO     ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO     ] MySQL Detected => Using 995.44 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

grep: /var/log/apache2/error.log: No such file or directory
[ OK       ] MaxClients has not been hit recently.

Analyzing apache memory use...
[ INFO     ] httpd is currently using 138.46 MB of memory.
[ INFO     ] The smallest apache process is using 4.80 MB of memory
[ INFO     ] The average apache process is using 5.13 MB of memory
[ INFO     ] The largest apache process is using 5.38 MB of memory

Results...
[ OK       ] Going by the average Apache process, Apache can potentially use 1313.29 MB RAM:
                Without considering services: 16.04 % of total installed RAM
                Considering extra services: 18.25 % of remaining RAM
[ OK       ] Going by the largest Apache process, Apache can potentially use 1377.29 MB RAM:
                Without considering services: 16.82 % of total installed RAM
                Considering extra services: 19.14 % of remaining RAM

Generating reports...
### GENERAL FINDINGS & RECOMMENDATIONS ###
--------------------------------------------------------------------------------
Apache2buddy.pl report for server: 

Settings considered for this report:

        Your server's physical RAM:                                   8192 MB
        Remaining Memory after other services considered:             7196 MB
        Apache's MaxClients directive:                                256       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxClients setting is too low.
        Your recommended MaxClients setting is between 1203 and 1337.           <------- Acceptable Range (10% of MAX)
        Max potential memory usage:                                   1377 MB
        Percentage of TOTAL RAM allocated to Apache:                  16.82  %
        Percentage of REMAINING RAM allocated to Apache:              19.14  %
--------------------------------------------------------------------------------
A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/27 01:21:14 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1039" Smallest: "5.06 MB" Avg: "5.37 MB" Largest: "6.93 MB" Highest Pct Remaining RAM: "48.12%" (42.30% TOTAL RAM)
2016/07/27 01:24:10 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1038" Smallest: "5.06 MB" Avg: "5.41 MB" Largest: "6.93 MB" Highest Pct Remaining RAM: "48.15%" (42.30% TOTAL RAM)
2016/07/27 01:24:19 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1038" Smallest: "4.67 MB" Avg: "5.38 MB" Largest: "6.93 MB" Highest Pct Remaining RAM: "48.15%" (42.30% TOTAL RAM)
2016/07/27 01:27:09 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1175" Smallest: "5.06 MB" Avg: "5.31 MB" Largest: "6.13 MB" Highest Pct Remaining RAM: "21.79%" (19.16% TOTAL RAM)
2016/07/27 01:31:28 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1337" Smallest: "4.80 MB" Avg: "5.13 MB" Largest: "5.38 MB" Highest Pct Remaining RAM: "19.14%" (16.82% TOTAL RAM)

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

reckless edit on line 849 from :
if ( $process_name eq '/usr/sbin/httpd' || $process_name eq '/usr/sbin/httpd.worker' ) {
to
if ( $process_name eq '/usr/local/apache/bin/httpd' || $process_name eq '/usr/sbin/httpd.worker' ) {
solve my problems

output :

[root@host ~]# ./apache2buddy.pl --no-check-pid
########################################################################################
##       ___                     __        ___      ____            __    __          ##
##      /   |  ____  ____ ______/ /_  ___ |__ \    / __ )__  ______/ /___/ /_  __     ##
##     / /| | / __ \/ __ `/ ___/ __ \/ _ \__/ /   / __  / / / / __  / __  / / / /     ##
##    / ___ |/ /_/ / /_/ / /__/ / / /  __/ __/   / /_/ / /_/ / /_/ / /_/ / /_/ /      ##
##   /_/  |_/ .___/\__,_/\___/_/ /_/\___/____/  /_____/\__,_/\__,_/\__,_/\__, /       ##
##         /_/ apache2buddy.pl                                          /____/        ##
##                                                                                    ##
########################################################################################

About...
[ INFO     ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO     ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO     ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO     ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO     ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO     ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK       ] This script is being run as root.
[ OK       ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK       ] 'php' exists and is available for use: /usr/local/bin/php

[ OK       ] The port (port 80) is a valid port.
[ INFO     ] We are attempting to discover the operating system type and version number ...
[ INFO     ] OS Name: CentOS
[ INFO     ] OS Release: 7.2
[ OK       ] Apache2buddy supports this OS Release/Version.
[ INFO     ] Hostname: 
[ INFO     ] Primary IP: 
[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ INFO     ] The process running on port 80 is not Apache. Falling back to process list...
[ INFO     ] Apache is actually listening on port 80
[ INFO     ] The process running on port 80 is Apache/2.4.23 (Unix).
[ INFO     ] Apache has been running 0d 0h 03m 57s.
[ INFO     ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO     ] Apache is using prefork model.
[ WARNING  ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO     ] Apache runs as nobody.
[ INFO     ] Your server has 8192 MB of PHYSICAL memory.
[ INFO     ] Your MaxRequestWorkers setting is 500.
[ INFO     ] Your ServerLimit setting is 500.
[ WARNING  ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO     ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO     ] MySQL Detected => Using 996.06 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

grep: /var/log/apache2/error.log: No such file or directory
[ OK       ] MaxClients has not been hit recently.

Analyzing apache memory use...
[ INFO     ] httpd is currently using 145.84 MB of memory.
[ INFO     ] The smallest apache process is using 4.96 MB of memory
[ INFO     ] The average apache process is using 5.13 MB of memory
[ INFO     ] The largest apache process is using 5.51 MB of memory

Results...
[ OK       ] Going by the average Apache process, Apache can potentially use 2565.01 MB RAM:
                Without considering services: 31.32 % of total installed RAM
                Considering extra services: 35.65 % of remaining RAM
[ OK       ] Going by the largest Apache process, Apache can potentially use 2755.01 MB RAM:
                Without considering services: 33.64 % of total installed RAM
                Considering extra services: 38.29 % of remaining RAM

Generating reports...
### GENERAL FINDINGS & RECOMMENDATIONS ###
--------------------------------------------------------------------------------
Apache2buddy.pl report for server: 

Settings considered for this report:

        Your server's physical RAM:                                   8192 MB
        Remaining Memory after other services considered:             7195 MB
        Apache's MaxClients directive:                                500       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxRequestWorkers setting is too low.
        Your recommended MaxRequestWorkers setting is between 1174 and 1305.            <------- Acceptable Range (10% of MAX)
        Max potential memory usage:                                   2755 MB
        Percentage of TOTAL RAM allocated to Apache:                  33.64  %
        Percentage of REMAINING RAM allocated to Apache:              38.29  %
--------------------------------------------------------------------------------
A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/27 01:24:10 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1038" Smallest: "5.06 MB" Avg: "5.41 MB" Largest: "6.93 MB" Highest Pct Remaining RAM: "48.15%" (42.30% TOTAL RAM)
2016/07/27 01:24:19 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1038" Smallest: "4.67 MB" Avg: "5.38 MB" Largest: "6.93 MB" Highest Pct Remaining RAM: "48.15%" (42.30% TOTAL RAM)
2016/07/27 01:27:09 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1175" Smallest: "5.06 MB" Avg: "5.31 MB" Largest: "6.13 MB" Highest Pct Remaining RAM: "21.79%" (19.16% TOTAL RAM)
2016/07/27 01:31:28 Model: "Prefork" Memory: "8192 MB" Maxclients: "256" Recommended: "1337" Smallest: "4.80 MB" Avg: "5.13 MB" Largest: "5.38 MB" Highest Pct Remaining RAM: "19.14%" (16.82% TOTAL RAM)
2016/07/27 01:33:56 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1305" Smallest: "4.96 MB" Avg: "5.13 MB" Largest: "5.51 MB" Highest Pct Remaining RAM: "38.29%" (33.64% TOTAL RAM)

MaxClients directive showing MaxRequestWorker value

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Ah...interesting....

[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ WARNING  ] Apache seems to have been installed from source, its technically unsupported, we may get errors
[ WARNING  ] Server version: Apache/2.4.23 (Unix)

That bit is good......hmmm

But I notice it is still saying MaxClients in the report section.

Fascinating.

We ARE making progress, so this is good! Thank you :)

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Also that last line should be INFO not warning....will fix that up too.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024
        Apache's MaxClients directive:                                500       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxRequestWorkers setting is too low.
        Your recommended MaxRequestWorkers setting is between 1174 and 1305.            <------- Acceptable Range (10% of MAX)

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

That top line needs changing...

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

The reckless edit would break other things, I have added extra logic further down. so it should be ok, just running some local test first then will send it up to staging. Stand by, :)

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Hi,

New changes in staging, can you run this command for me again:

curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/staging/apache2buddy.pl | perl

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

grep: /var/log/apache2/error.log: No such file or directory

I also noticed this in your output, looks like it has made a wrong assumption about where to look for log files based on your version. Where are your log files stored? In fact, more specifically, what is the exact path to the general apache error log file?

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

working good...

[root@host ~]# ./apache2buddy.pl.2 --no-check-pid
########################################################################################
##       ___                     __        ___      ____            __    __          ##
##      /   |  ____  ____ ______/ /_  ___ |__ \    / __ )__  ______/ /___/ /_  __     ##
##     / /| | / __ \/ __ `/ ___/ __ \/ _ \__/ /   / __  / / / / __  / __  / / / /     ##
##    / ___ |/ /_/ / /_/ / /__/ / / /  __/ __/   / /_/ / /_/ / /_/ / /_/ / /_/ /      ##
##   /_/  |_/ .___/\__,_/\___/_/ /_/\___/____/  /_____/\__,_/\__,_/\__,_/\__, /       ##
##         /_/ apache2buddy.pl                                          /____/        ##
##                                                                                    ##
########################################################################################

About...
[ INFO     ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO     ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO     ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO     ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO     ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO     ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK       ] This script is being run as root.
[ OK       ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK       ] 'php' exists and is available for use: /usr/local/bin/php

[ OK       ] The port (port 80) is a valid port.
[ INFO     ] We are attempting to discover the operating system type and version number ...
[ INFO     ] OS Name: CentOS
[ INFO     ] OS Release: 7.2
[ OK       ] Apache2buddy supports this OS Release/Version.
[ INFO     ] Hostname: 
[ INFO     ] Primary IP: 
[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ WARNING  ] Apache seems to have been installed from source, its technically unsupported, we may get errors
[ INFO     ] The process running on port 80 is Apache/2.4.23 (Unix).
[ INFO     ] Apache has been running 0d 0h 01m 08s.
[ INFO     ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO     ] Apache is using prefork model.
[ WARNING  ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO     ] Apache runs as nobody.
[ INFO     ] Your server has 8192 MB of PHYSICAL memory.
[ INFO     ] Your MaxRequestWorkers setting is 500.
[ INFO     ] Your ServerLimit setting is 500.
[ WARNING  ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO     ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO     ] MySQL Detected => Using 1059.31 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

grep: /var/log/apache2/error.log: No such file or directory
[ OK       ] MaxClients has not been hit recently.

Analyzing apache memory use...
[ INFO     ] httpd is currently using 101.05 MB of memory.
[ INFO     ] The smallest apache process is using 4.93 MB of memory
[ INFO     ] The average apache process is using 5.12 MB of memory
[ INFO     ] The largest apache process is using 5.24 MB of memory

Results...
[ OK       ] Going by the average Apache process, Apache can potentially use 2560.01 MB RAM:
                Without considering services: 31.26 % of total installed RAM
                Considering extra services: 35.90 % of remaining RAM
[ OK       ] Going by the largest Apache process, Apache can potentially use 2620.01 MB RAM:
                Without considering services: 31.99 % of total installed RAM
                Considering extra services: 36.74 % of remaining RAM

Generating reports...
### GENERAL FINDINGS & RECOMMENDATIONS ###
--------------------------------------------------------------------------------
Apache2buddy.pl report for server: 

Settings considered for this report:

        Your server's physical RAM:                                   8192 MB
        Remaining Memory after other services considered:             7132 MB
        Apache's MaxRequestWorkers directive:                         500       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxRequestWorkers setting is too low.
        Your recommended MaxRequestWorkers setting is between 1224 and 1361.            <------- Acceptable Range (10% of MAX)
        Max potential memory usage:                                   2620 MB
        Percentage of TOTAL RAM allocated to Apache:                  31.99  %
        Percentage of REMAINING RAM allocated to Apache:              36.74  %
--------------------------------------------------------------------------------
A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/27 01:33:56 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1305" Smallest: "4.96 MB" Avg: "5.13 MB" Largest: "5.51 MB" Highest Pct Remaining RAM: "38.29%" (33.64% TOTAL RAM)
2016/07/27 01:53:20 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1382" Smallest: "4.67 MB" Avg: "5.06 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "36.16%" (31.74% TOTAL RAM)
2016/07/27 01:53:47 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1382" Smallest: "4.93 MB" Avg: "5.09 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "36.16%" (31.74% TOTAL RAM)
2016/07/27 02:22:23 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1244" Smallest: "5.06 MB" Avg: "5.18 MB" Largest: "5.73 MB" Highest Pct Remaining RAM: "40.19%" (34.98% TOTAL RAM)
2016/07/27 02:24:38 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1361" Smallest: "4.93 MB" Avg: "5.12 MB" Largest: "5.24 MB" Highest Pct Remaining RAM: "36.74%" (31.99% TOTAL RAM)

Apache log stored at /usr/local/apache/logs/error_log

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Brilliant, I will fix that last little problem then you can test once more for me, then I can push it live :)

Stand by...

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Apache log stored at /usr/local/apache/logs/error_log

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Hi,

New changes in staging, can you run this command for me again:

curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/staging/apache2buddy.pl | perl

This time the bugfix has already been confirmed, this is snagging for a different issue regarding the error log locations and is unable to determine is maxclients has been hit as a result.

Expecting 'No such file or directory error' to no longer be present.

Once confirmed all OK I will push the changes live for a final test then close out this one.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Introduced a bug / typo - fixed

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024
Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxRequestWorkers setting is too low.
        Your recommended MaxRequestWorkers setting is between 1224 and 1361.            <------- Acceptable Range (10% of MAX)

Just a word of warning as well, it looks like this is a fresh server installation so dont be fooled by the high recommendations, as you start hosting php applications on there the dynamic will change considerably as the foot print grows.

I would recommend running this again once you have deployed a website and it starts eating up memory.

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

flawless..

[root@host ~]# ./apache2buddy.pl.3 --no-check-pid
########################################################################################
##       ___                     __        ___      ____            __    __          ##
##      /   |  ____  ____ ______/ /_  ___ |__ \    / __ )__  ______/ /___/ /_  __     ##
##     / /| | / __ \/ __ `/ ___/ __ \/ _ \__/ /   / __  / / / / __  / __  / / / /     ##
##    / ___ |/ /_/ / /_/ / /__/ / / /  __/ __/   / /_/ / /_/ / /_/ / /_/ / /_/ /      ##
##   /_/  |_/ .___/\__,_/\___/_/ /_/\___/____/  /_____/\__,_/\__,_/\__,_/\__, /       ##
##         /_/ apache2buddy.pl                                          /____/        ##
##                                                                                    ##
########################################################################################

About...
[ INFO     ] apache2buddy.pl is a fork of apachebuddy.pl.
[ INFO     ] MD5SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/md5sums.txt
[ INFO     ] SHA256SUMs now availiable at https://raw.githubusercontent.com/richardforth/apache2buddy/master/sha256sums.txt
[ INFO     ] apache2buddy.pl is now released under the Apache 2.0 License. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/LICENSE
[ INFO     ] apache2buddy.pl is now hosted from github. See https://github.com/richardforth/apache2buddy
[ INFO     ] Changelogs and updates in github. See https://raw.githubusercontent.com/richardforth/apache2buddy/master/changelog

Performing Auto-Discovery, and Pre-Flight Checks...
[ OK       ] This script is being run as root.
[ OK       ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK       ] 'php' exists and is available for use: /usr/local/bin/php

[ OK       ] The port (port 80) is a valid port.
[ INFO     ] We are attempting to discover the operating system type and version number ...
[ INFO     ] OS Name: CentOS
[ INFO     ] OS Release: 7.2
[ OK       ] Apache2buddy supports this OS Release/Version.
[ INFO     ] Hostname: 
[ INFO     ] Primary IP: 
[ INFO     ] We are checking the service running on port 80...
[ INFO     ] The process listening on port 80 is /usr/local/apache/bin/httpd
[ WARNING  ] Apache seems to have been installed from source, its technically unsupported, we may get errors
[ INFO     ] The process running on port 80 is Apache/2.4.23 (Unix).
[ INFO     ] Apache has been running 0d 0h 22m 16s.
[ INFO     ] The full path to the Apache config file is: /usr/local/apache/conf/httpd.conf
[ INFO     ] Apache is using prefork model.
[ WARNING  ] Non-standard apache set-up, apache is running as UID: 99 (nobody). Expecting UID 48 ('apache' or 'www-data').
[ INFO     ] Apache runs as nobody.
[ INFO     ] Your server has 8192 MB of PHYSICAL memory.
[ INFO     ] Your MaxRequestWorkers setting is 500.
[ INFO     ] Your ServerLimit setting is 500.
[ WARNING  ] MaxRequestsPerChild directive not found.

Detecting PHP Memory Limits...
[ INFO     ] Your PHP Memory Limit (Per-Process) is 128 MB.

Detecting additional services for consideration...
[ INFO     ] MySQL Detected => Using 1065.57 MB of memory.

Detecting If Maxclients or MaxRequestWorkers has been hit recently....

PRO TIP: If this process appears to hang, press CTRL + c to exit the program, and then
go check for a large error log file in /var/log/httpd or /var/log/apache2.

[ WARNING  ] MaxClients has been hit recently (maximum of 5 results shown), consider the dates and times below:
[Sat Jul 23 16:54:10.762308 2016] [mpm_prefork:error] [pid 24819] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Mon Jul 25 09:28:08.161588 2016] [mpm_prefork:error] [pid 8311] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Mon Jul 25 10:53:41.942580 2016] [mpm_prefork:error] [pid 19840] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

Analyzing apache memory use...
[ INFO     ] httpd is currently using 117.65 MB of memory.
[ INFO     ] The smallest apache process is using 5.06 MB of memory
[ INFO     ] The average apache process is using 5.21 MB of memory
[ INFO     ] The largest apache process is using 5.53 MB of memory

Results...
[ OK       ] Going by the average Apache process, Apache can potentially use 2605.01 MB RAM:
                Without considering services: 31.80 % of total installed RAM
                Considering extra services: 36.56 % of remaining RAM
[ OK       ] Going by the largest Apache process, Apache can potentially use 2765.01 MB RAM:
                Without considering services: 33.76 % of total installed RAM
                Considering extra services: 38.80 % of remaining RAM

Generating reports...
### GENERAL FINDINGS & RECOMMENDATIONS ###
--------------------------------------------------------------------------------
Apache2buddy.pl report for server: 

Settings considered for this report:

        Your server's physical RAM:                                   8192 MB
        Remaining Memory after other services considered:             7126 MB
        Apache's MaxRequestWorkers directive:                         500       <--------- Current Setting
        Apache MPM Model:                                             prefork
        Largest Apache process (by memory):                           5 MB
[ !! ]  Your MaxRequestWorkers setting is too low.
        Your recommended MaxRequestWorkers setting is between 1159 and 1288.            <------- Acceptable Range (10% of MAX)
        Max potential memory usage:                                   2765 MB
        Percentage of TOTAL RAM allocated to Apache:                  33.76  %
        Percentage of REMAINING RAM allocated to Apache:              38.80  %
--------------------------------------------------------------------------------
A log file entry has been made in: /var/log/apache2buddy.log for future reference.

Last 5 entries:

2016/07/27 01:53:20 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1382" Smallest: "4.67 MB" Avg: "5.06 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "36.16%" (31.74% TOTAL RAM)
2016/07/27 01:53:47 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1382" Smallest: "4.93 MB" Avg: "5.09 MB" Largest: "5.20 MB" Highest Pct Remaining RAM: "36.16%" (31.74% TOTAL RAM)
2016/07/27 02:22:23 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1244" Smallest: "5.06 MB" Avg: "5.18 MB" Largest: "5.73 MB" Highest Pct Remaining RAM: "40.19%" (34.98% TOTAL RAM)
2016/07/27 02:24:38 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1361" Smallest: "4.93 MB" Avg: "5.12 MB" Largest: "5.24 MB" Highest Pct Remaining RAM: "36.74%" (31.99% TOTAL RAM)
2016/07/27 02:47:34 Model: "Prefork" Memory: "8192 MB" MaxRequestWorkers: "500" Recommended: "1288" Smallest: "5.06 MB" Avg: "5.21 MB" Largest: "5.53 MB" Highest Pct Remaining RAM: "38.80%" (33.76% TOTAL RAM)

Thanks!

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

superb, hang tight I will push live, can you test once more before we close this out. stand by and I will tell you when....

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Ok changes have been pushed to live, can you confirm all still ok:

curl -sL apache2buddy.pl | perl

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

It's all good like the staging code

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

Sweet! Internet High Five!
http://i.imgur.com/0OGBsQR.jpg
Thanks for your assistance on this, without it we would not be able to squish this bug!

Will close this as complete! :)

from apache2buddy.

junglon avatar junglon commented on May 26, 2024

Your welcome...cheers!

from apache2buddy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.