GithubHelp home page GithubHelp logo

Comments (6)

richardforth avatar richardforth commented on May 26, 2024

Hi,

Yes the results will be different if youve just restarted apache, This is normal behaviour,

You need to let the applications bed in, and consume memory before tuning it. You cant realistically tune ana apache server that has just been restarted

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

This is not a bug, but I have decided to re-open it as this needs some clarification.

  1. When apache first starts, or is restarted, all the assigned memory is dropped, so running apache2buddy right after a restart will NOT give you the same results as if you ran it after say 24 hours or more of operation, memory leaks in the application itself (not apache2buddy, the web application) or apache, can cause memory bloating over time, restarting apache clears all this down, so, in your case, yes apache2buddy would hve recommended 40 maxclients, but after a period of use, the memory bloat means that the recommendation changes to reflect the actual usage, recommending 16.

When you restart apache you clear off all the memory bloat caused by the apache server running in, and now apache2buddy recommends 40 again. This is perfectly normal, it just means that youre running apache2buddy too soon after a restart

I have therefore decided to address this issue in a couple of possible ways:

  1. Have apache2buddy exit abruptly if the uptime is less than 1 hour, with a recommedation to run again after 24 hours of continuous operation.

BUT If apache has an uptime of between 1 hour and 24 hours, have apache2buddy warn that the following recommendations may be misleading as apache has only just been restarted within the last 24 hours.

or

  1. If apache has an uptime of less than 24 hours, have apache2buddy warn that the following recommendations may be misleading as apache has only just been restarted within the last 24 hours. (no exit)

I havent decided which one to go with, but most likely option 2.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

My current thoughts on how to handle this:

If apache has an uptime of less than 24 hours, have apache2buddy warn something like this:

[ WARNING ] *** LOW UPTIME ***
[ ADVISORY ] The following recommendations may be misleading as apache has only just been restarted within the last 24 hours. 

The check would be fairly easy as we just need to check that “days = 0” since there’s no larger number to worry about, eg:

[ INFO ] Apache has been running 0d 0h 44m 54s.

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

image

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

image

from apache2buddy.

richardforth avatar richardforth commented on May 26, 2024

changes pushed live, from staging

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.