Comments (6)
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.
This is not a bug, but I have decided to re-open it as this needs some clarification.
- 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:
- 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
- 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.
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.
from apache2buddy.
from apache2buddy.
changes pushed live, from staging
from apache2buddy.
Related Issues (20)
- Buddy cannot load includes HOT 4
- Support new debian stable HOT 4
- make it compatible with Litespeed HOT 1
- Plans to Support AlmaLinux 8.x and CloudLinux 7.9? HOT 5
- AmazonLinux Docker: Cannot find the 'hostname' executable. HOT 2
- AmazonLinux [ !! ] Python scripting failed. Python requires package 'distro' or 'platform' to determine the Operating System and Version. HOT 6
- Newer versions of python throw deprecation warnings HOT 5
- [ LOW PRIORITY ] Unable to detect apache on nonstandard ports - EOL Ubunutu 1604 with --skip-os-version-check HOT 1
- SS support along with netstat HOT 10
- Apache2buddy does not find apache on bitnami installation HOT 10
- --- a2bchk.sh --- showing MD5 mismatch HOT 4
- Add support for Ubuntu 22.04 HOT 8
- Add tests for ansible playbook in all Jenkins stages HOT 1
- Debian 12 support
- Running ISPconfig on ARM64: Bullseye with Linux 5.10.110-rockchip-rk3588: uninitialized value $apache_proc_php in concatenation (.) or string at - line 2524 (#1) HOT 1
- sub detect_php_memory_limit has hardcoded php executable path
- Support for Oracle Linux Server HOT 1
- Error: Illegal division by zero at line 987 HOT 4
- Support for SLES 12 with worker MPM HOT 1
- including Gentoo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apache2buddy.