Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

High Traffic experience error 500 internal server error

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
pmesco
Posts: 15
Joined: Fri May 22, 2015 11:30 am

High Traffic experience error 500 internal server error
  • Quote

Post by pmesco » Fri May 29, 2015 5:33 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: High Traffic experience error 500 internal server error
  • Quote

Post by skurudo » Fri May 29, 2015 6:27 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: High Traffic experience error 500 internal server error
  • Quote

Post by skurudo » Fri May 29, 2015 6:28 am

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 ;-)
Top

getgmb
Posts: 5
Joined: Sat Feb 21, 2015 8:20 am

Re: High Traffic experience error 500 internal server error
  • Quote

Post by getgmb » Fri May 29, 2015 1:58 pm

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.
Top

getgmb
Posts: 5
Joined: Sat Feb 21, 2015 8:20 am

Re: High Traffic experience error 500 internal server error
  • Quote

Post by getgmb » Fri May 29, 2015 1:59 pm

skurudo wrote:What's 500 error is?
500 Internal Server Error - Nginx
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: High Traffic experience error 500 internal server error
  • Quote

Post by skurudo » Fri May 29, 2015 2:17 pm

getgmb wrote:500 Internal Server Error - Nginx
In over 9000 cases this is webserver error.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: High Traffic experience error 500 internal server error
  • Quote

Post by skurudo » Fri May 29, 2015 2:20 pm

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
Top

pmesco
Posts: 15
Joined: Fri May 22, 2015 11:30 am

Re: High Traffic experience error 500 internal server error
  • Quote

Post by pmesco » Fri May 29, 2015 4:06 pm

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.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password