GithubHelp home page GithubHelp logo

Comments (4)

richardforth avatar richardforth commented on July 26, 2024

A change has been committed to staging branch for testing.

from apache2buddy.

richardforth avatar richardforth commented on July 26, 2024

Testing went kinda well, (it works) but the display needs prettifying and putting in the right place,

from apache2buddy.

richardforth avatar richardforth commented on July 26, 2024

Testing completed:

Output looks like:

[ INFO     ] Your MaxClients setting is 256.
[ INFO     ] Current Apache Process Count is 18, including the parent PID.
[ INFO     ] Your ServerLimit setting is 256.

(note that number is CYAN or RED if greater than or equal to "maxclients")

Code block:

curl https://raw.githubusercontent.com/richardforth/apache2buddy/staging/apache2buddy.pl | grep -A10 "Check 14.1"


        # Check 14.1
        # Get current number of running apache processes
        # This resolves Issue #15: https://github.com/richardforth/apache2buddy/issues/15
        our $maxclients;
        our $current_proc_count = `ps aux | egrep "httpd|apache2" | grep -v apache2buddy | grep -v grep | wc -l`;
        chomp ($current_proc_count);
        if ($current_proc_count >= $maxclients) {
                if ( ! $NOINFO ) { show_info_box(); print "Current Apache Process Count is ${RED}$current_proc_count${ENDC}, including the parent PID.\n" }
        } else {
                if ( ! $NOINFO ) { show_info_box(); print "Current Apache Process Count is ${CYAN}$current_proc_count${ENDC}, including the parent PID.\n" }
        }

from apache2buddy.

richardforth avatar richardforth commented on July 26, 2024

Merged this change from staging to master branch

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.