Apache on ubuntu responding incoming requests with 500 http code
I am getting a good traffic (incoming requests) to my PHP-mysql based web-application on
apache2 configured with Ubuntu 16.4(16GB RAM, 6vCPUs) on Digital Ocean
It works fine if traffic is low but it is giving 500 (HTTP) error to most of requests when traffic is high (Max it can be 1000000 hits/day and each request process will take less then 1 sec or even much less)
My apache2 configuration:
Timeout 150
KeepAlive On
MaxKeepAliveRequests 2000
KeepAliveTimeout 5
<IfModule prefork.c>
StartServers 10
MinSpareServers 15
MaxSpareServers 25
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 5000
</IfModule>
I can see a lots of 500 responses in my apache access.log
Below is written in article https://www.digitalocean.com/community/tutorials/how-to-optimize-apache-web-server-performance but it is not clear how to achieve (Even my server has 16 GB RAM)
a Wordpress site I manage is hosted on a 1GB droplet using 4 php-fpm processes and is able to serve over 950 simultaneous users at one time. This translate to a peak capacity of about 42 million page views per day, should this website ever become popular enough!
ubuntu memory apache-http-server http
add a comment |
I am getting a good traffic (incoming requests) to my PHP-mysql based web-application on
apache2 configured with Ubuntu 16.4(16GB RAM, 6vCPUs) on Digital Ocean
It works fine if traffic is low but it is giving 500 (HTTP) error to most of requests when traffic is high (Max it can be 1000000 hits/day and each request process will take less then 1 sec or even much less)
My apache2 configuration:
Timeout 150
KeepAlive On
MaxKeepAliveRequests 2000
KeepAliveTimeout 5
<IfModule prefork.c>
StartServers 10
MinSpareServers 15
MaxSpareServers 25
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 5000
</IfModule>
I can see a lots of 500 responses in my apache access.log
Below is written in article https://www.digitalocean.com/community/tutorials/how-to-optimize-apache-web-server-performance but it is not clear how to achieve (Even my server has 16 GB RAM)
a Wordpress site I manage is hosted on a 1GB droplet using 4 php-fpm processes and is able to serve over 950 simultaneous users at one time. This translate to a peak capacity of about 42 million page views per day, should this website ever become popular enough!
ubuntu memory apache-http-server http
add a comment |
I am getting a good traffic (incoming requests) to my PHP-mysql based web-application on
apache2 configured with Ubuntu 16.4(16GB RAM, 6vCPUs) on Digital Ocean
It works fine if traffic is low but it is giving 500 (HTTP) error to most of requests when traffic is high (Max it can be 1000000 hits/day and each request process will take less then 1 sec or even much less)
My apache2 configuration:
Timeout 150
KeepAlive On
MaxKeepAliveRequests 2000
KeepAliveTimeout 5
<IfModule prefork.c>
StartServers 10
MinSpareServers 15
MaxSpareServers 25
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 5000
</IfModule>
I can see a lots of 500 responses in my apache access.log
Below is written in article https://www.digitalocean.com/community/tutorials/how-to-optimize-apache-web-server-performance but it is not clear how to achieve (Even my server has 16 GB RAM)
a Wordpress site I manage is hosted on a 1GB droplet using 4 php-fpm processes and is able to serve over 950 simultaneous users at one time. This translate to a peak capacity of about 42 million page views per day, should this website ever become popular enough!
ubuntu memory apache-http-server http
I am getting a good traffic (incoming requests) to my PHP-mysql based web-application on
apache2 configured with Ubuntu 16.4(16GB RAM, 6vCPUs) on Digital Ocean
It works fine if traffic is low but it is giving 500 (HTTP) error to most of requests when traffic is high (Max it can be 1000000 hits/day and each request process will take less then 1 sec or even much less)
My apache2 configuration:
Timeout 150
KeepAlive On
MaxKeepAliveRequests 2000
KeepAliveTimeout 5
<IfModule prefork.c>
StartServers 10
MinSpareServers 15
MaxSpareServers 25
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 5000
</IfModule>
I can see a lots of 500 responses in my apache access.log
Below is written in article https://www.digitalocean.com/community/tutorials/how-to-optimize-apache-web-server-performance but it is not clear how to achieve (Even my server has 16 GB RAM)
a Wordpress site I manage is hosted on a 1GB droplet using 4 php-fpm processes and is able to serve over 950 simultaneous users at one time. This translate to a peak capacity of about 42 million page views per day, should this website ever become popular enough!
ubuntu memory apache-http-server http
ubuntu memory apache-http-server http
asked Jan 24 at 5:23
Ankit DixiAnkit Dixi
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
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%2fsuperuser.com%2fquestions%2f1397761%2fapache-on-ubuntu-responding-incoming-requests-with-500-http-code%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
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1397761%2fapache-on-ubuntu-responding-incoming-requests-with-500-http-code%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