Apache, 20+ long running connections with little memory usageRecommendations on VM memory allocation...
Will expression retain the same definition if particle is changed?
Trocar background-image com delay via jQuery
How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?
Are these two graphs isomorphic? Why/Why not?
The (Easy) Road to Code
Strange opamp's output impedance in spice
What does *dead* mean in *What do you mean, dead?*?
Do Paladin Auras of Differing Oaths Stack?
Help! My Character is too much for her story!
Should we avoid writing fiction about historical events without extensive research?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
Is this Paypal Github SDK reference really a dangerous site?
What is this tube in a jet engine's air intake?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
When to use a QR code on a business card?
When an outsider describes family relationships, which point of view are they using?
How do we create new idioms and use them in a novel?
I am the person who abides by rules, but breaks the rules. Who am I?
Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother
"If + would" conditional in present perfect tense
(Codewars) Linked Lists-Sorted Insert
Computation logic of Partway in TikZ
What do you call someone who likes to pick fights?
Locked Away- What am I?
Apache, 20+ long running connections with little memory usage
Recommendations on VM memory allocation General/Hyper-VApache crashing VPS - need to reduce memory usageUnexplained cache RAM drops on Linux machineSet total memory limit with TorqueRandom server load spikes, number of tasks doubles, CPU/Memory consistentHigh CPU usage by unknown Apache processesUnable to diagnose downtime / memory issues with Apache and mod_wsgiReducing Apache Memory usage and Average Process Size ValueHow to determine if EC2 LAMP instance is network-bound?How to deal with out of memory issues on multi user systems?
I have a small server, 2 GB memory (an AWS t2.small) that I would like to run cron jobs on. These crons run by specific URLs getting hit (an AWS setup I can’t change), and take maybe 1 – 2 minutes each to complete.
At some points during the day there are ~20 crons that run at exactly the same time. Predictably, this is causing memory usage to spike and shut things down. I reduced MaxClients
to 6, which fixed the memory usage spike problem, but this is causing some crons to silently not be run.
From my understanding of MaxClients
, these crons are silently failing because only 6 connections are allowed at one time? Is there any way my little server can handle these spikes of 20 connections and keep memory usage stable? It seems like my goal would be "allow 20+ connections, but only allocate a small amount of memory to each".
Thanks for your help
apache-2.4 memory
New contributor
add a comment |
I have a small server, 2 GB memory (an AWS t2.small) that I would like to run cron jobs on. These crons run by specific URLs getting hit (an AWS setup I can’t change), and take maybe 1 – 2 minutes each to complete.
At some points during the day there are ~20 crons that run at exactly the same time. Predictably, this is causing memory usage to spike and shut things down. I reduced MaxClients
to 6, which fixed the memory usage spike problem, but this is causing some crons to silently not be run.
From my understanding of MaxClients
, these crons are silently failing because only 6 connections are allowed at one time? Is there any way my little server can handle these spikes of 20 connections and keep memory usage stable? It seems like my goal would be "allow 20+ connections, but only allocate a small amount of memory to each".
Thanks for your help
apache-2.4 memory
New contributor
add a comment |
I have a small server, 2 GB memory (an AWS t2.small) that I would like to run cron jobs on. These crons run by specific URLs getting hit (an AWS setup I can’t change), and take maybe 1 – 2 minutes each to complete.
At some points during the day there are ~20 crons that run at exactly the same time. Predictably, this is causing memory usage to spike and shut things down. I reduced MaxClients
to 6, which fixed the memory usage spike problem, but this is causing some crons to silently not be run.
From my understanding of MaxClients
, these crons are silently failing because only 6 connections are allowed at one time? Is there any way my little server can handle these spikes of 20 connections and keep memory usage stable? It seems like my goal would be "allow 20+ connections, but only allocate a small amount of memory to each".
Thanks for your help
apache-2.4 memory
New contributor
I have a small server, 2 GB memory (an AWS t2.small) that I would like to run cron jobs on. These crons run by specific URLs getting hit (an AWS setup I can’t change), and take maybe 1 – 2 minutes each to complete.
At some points during the day there are ~20 crons that run at exactly the same time. Predictably, this is causing memory usage to spike and shut things down. I reduced MaxClients
to 6, which fixed the memory usage spike problem, but this is causing some crons to silently not be run.
From my understanding of MaxClients
, these crons are silently failing because only 6 connections are allowed at one time? Is there any way my little server can handle these spikes of 20 connections and keep memory usage stable? It seems like my goal would be "allow 20+ connections, but only allocate a small amount of memory to each".
Thanks for your help
apache-2.4 memory
apache-2.4 memory
New contributor
New contributor
New contributor
asked 8 mins ago
KayakinKoderKayakinKoder
101
101
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
KayakinKoder is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957566%2fapache-20-long-running-connections-with-little-memory-usage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
KayakinKoder is a new contributor. Be nice, and check out our Code of Conduct.
KayakinKoder is a new contributor. Be nice, and check out our Code of Conduct.
KayakinKoder is a new contributor. Be nice, and check out our Code of Conduct.
KayakinKoder is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957566%2fapache-20-long-running-connections-with-little-memory-usage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown