Page 1 of 1

High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 5:33 am
by pmesco
Hello, im using vestacp on my site with over 150,000 unique visitors per day and im very happy how vestacp handle my site. But its just came to my attention that when my Nginx usage reach to 1900 current connection its sometimes display error 500 internal server error and when i refresh its working fine.

MY SERVER NOW:
-16GB Ram
-8 Core Processor
-CentOS 6.5 x64
from digitalocean.com

Is there anything i can do to increase my Nginx usage cause its always stacking in 1900 and i already move to bigger server.
Or is there anything you can suggest to avoid 500 internal server error.
Sorry for my english.

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 6:27 am
by skurudo
Yep, I have one or two suggestion. ;-)

You need optimize your server settings and reise settings in nginx/apache/mysql. But don't do it carelessly, you need set parameters, which your server can handle. What's 500 error is? It's webserver error. I think apache2 cant' handle all requests.

Use need cache everywhere and everything you can. If your cms/site engine can, use memcache and nginx cache.

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 6:28 am
by skurudo
And one more think, VestaCP don't make your server cool. It's a tool to make your server, but there is no magic - tunings need ;-)

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 1:58 pm
by getgmb
I have configured my nginx settings,my server has 8 processor and i increase my worker_processes to 8 and it seems fixed. But i more query, how do i increase my httpd current connections? cause the max current connections is 400.

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 1:59 pm
by getgmb
skurudo wrote:What's 500 error is?
500 Internal Server Error - Nginx

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 2:17 pm
by skurudo
getgmb wrote:500 Internal Server Error - Nginx
In over 9000 cases this is webserver error.

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 2:20 pm
by skurudo
getgmb wrote:I have configured my nginx settings,my server has 8 processor and i increase my worker_processes to 8 and it seems fixed. But i more query, how do i increase my httpd current connections? cause the max current connections is 400.
/etc/httpd/conf/httpd.conf

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 200

MaxRequestsPerChild 4000
</IfModule>

param ServerLimit > MaxClients
or you get error when apache/httpd test configuration

Re: High Traffic experience error 500 internal server error

Posted: Fri May 29, 2015 4:06 pm
by pmesco
skurudo wrote:
getgmb wrote:500 Internal Server Error - Nginx
In over 9000 cases this is webserver error.
Yes but when i refresh its working fine, only when i reach 1900 nginx current connection its showing this error.