Welcome! Log In Create A New Profile

Advanced

Re: nginx high load average

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 01/30/2013 Read message
Liu Lantao
January 29, 2013 09:52PM
'worker_processes' should be equal to total numbers of CPU cores.

What does 'high connections' mean?

Please show the result of 'cat /proc/net/sockstat', and the content of '
/usr/local/nginx/conf/vhost.conf'.


On Wed, Jan 30, 2013 at 6:09 AM, iLinux85 <nginx-forum@nginx.us> wrote:

> hello
>
> i have server running as shared server Intel(R) Xeon(R) CPU E3-1225 V2 @
> 3.20GHz 4 core and 16 g.b ram running onCentOS release 5.9 (Final) upload
> and download via php scripts like rapidshare
>
> the problem is i have high connections on this server and i want to know
> how
> could i configure the nginx correctly
>
> here is my current nginx.conf
>
>
> user nobody;
> # no need for more workers in the proxy mode
> worker_processes 1;
>
> error_log logs/error.log info;
>
> worker_rlimit_nofile 8192;
>
> events {
> worker_connections 51200; # you might need to increase this setting for
> busy servers
> use epoll; # Linux kernels 2.4.x change to rtsig
> }
>
> http {
> server_names_hash_max_size 2048;
>
> include mime.types;
> default_type application/octet-stream;
>
> sendfile on;
> tcp_nopush on;
> tcp_nodelay on;
>
> keepalive_timeout 10;
>
> gzip on;
> gzip_min_length 1100;
> gzip_buffers 4 32k;
> gzip_types text/plain application/x-javascript text/xml text/css;
> ignore_invalid_headers on;
>
> client_header_timeout 3m;
> client_body_timeout 3m;
> send_timeout 3m;
> connection_pool_size 1024;
> client_header_buffer_size 4k;
> large_client_header_buffers 4 32k;
> request_pool_size 4k;
> output_buffers 4 32k;
> postpone_output 1460;
> proxy_temp_path /home/proxy_temp;
> include "/usr/local/nginx/conf/vhost.conf";
> }
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,235709,235709#msg-235709
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/portal .
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx high load average

iLinux85 January 29, 2013 05:09PM

Re: nginx high load average

Liu Lantao January 29, 2013 09:52PM

Re: nginx high load average Attachments

GreenGecko January 30, 2013 01:10AM

Re: nginx high load average

iLinux85 January 30, 2013 12:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on December 15, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready