<div>'worker_processes' should be equal to total numbers of CPU cores.<br></div><div><br></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">What does 'high connections' mean? </span><div>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Please show the result of 'cat /proc/net/sockstat', and the content of '</span>/usr/local/nginx/conf/vhost.conf'<span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">.</span></div>
<div><br><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Jan 30, 2013 at 6:09 AM, iLinux85 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello<br>
<br>
i have server running as shared server Intel(R) Xeon(R) CPU E3-1225 V2 @<br>
3.20GHz 4 core and 16 g.b ram running onCentOS release 5.9 (Final) upload<br>
and download via php scripts like rapidshare<br>
<br>
the problem is i have high connections on this server and i want to know how<br>
could i configure the nginx correctly<br>
<br>
here is my current nginx.conf<br>
<br>
<br>
user nobody;<br>
# no need for more workers in the proxy mode<br>
worker_processes 1;<br>
<br>
error_log logs/error.log info;<br>
<br>
worker_rlimit_nofile 8192;<br>
<br>
events {<br>
worker_connections 51200; # you might need to increase this setting for<br>
busy servers<br>
use epoll; # Linux kernels 2.4.x change to rtsig<br>
}<br>
<br>
http {<br>
server_names_hash_max_size 2048;<br>
<br>
include mime.types;<br>
default_type application/octet-stream;<br>
<br>
sendfile on;<br>
tcp_nopush on;<br>
tcp_nodelay on;<br>
<br>
keepalive_timeout 10;<br>
<br>
gzip on;<br>
gzip_min_length 1100;<br>
gzip_buffers 4 32k;<br>
gzip_types text/plain application/x-javascript text/xml text/css;<br>
ignore_invalid_headers on;<br>
<br>
client_header_timeout 3m;<br>
client_body_timeout 3m;<br>
send_timeout 3m;<br>
connection_pool_size 1024;<br>
client_header_buffer_size 4k;<br>
large_client_header_buffers 4 32k;<br>
request_pool_size 4k;<br>
output_buffers 4 32k;<br>
postpone_output 1460;<br>
proxy_temp_path /home/proxy_temp;<br>
include "/usr/local/nginx/conf/vhost.conf";<br>
}<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,235709,235709#msg-235709" target="_blank">http://forum.nginx.org/read.php?2,235709,235709#msg-235709</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Liu Lantao<br>EMAIL: liulantao ( at ) gmail ( dot ) com ; <br>WEBSITE: <a href="http://www.liulantao.com/portal" target="_blank">http://www.liulantao.com/portal</a> .
</div>