XFileSharing Pro - need help about nginx
- 
				upmorefiles
- Posts: 23
- Joined: Aug 14, 2012 9:10 am
need help about nginx
Hi Sir nowadays after some times nginx is giving connection timed out error so i need to increase the number of connections so can you tell me thanks
			
									
									
						change below parameters as per your server
http://wiki.nginx.org/CoreModule#worker_rlimit_nofile
http://wiki.nginx.org/CoreModule#worker_processes
http://wiki.nginx.org/EventsModule#worker_connections
			
									
									
						http://wiki.nginx.org/CoreModule#worker_rlimit_nofile
http://wiki.nginx.org/CoreModule#worker_processes
http://wiki.nginx.org/EventsModule#worker_connections
- 
				upmorefiles
- Posts: 23
- Joined: Aug 14, 2012 9:10 am
sir here is my server details so can you please let me know how many parameters i have to setankurs wrote:change below parameters as per your server
http://wiki.nginx.org/CoreModule#worker_rlimit_nofile
http://wiki.nginx.org/CoreModule#worker_processes
http://wiki.nginx.org/EventsModule#worker_connections
Dual opteron 6128
32GB ram
4 x 2TB
1Gbit
SW raid1
CentOS 64bit
i hope u will i will get the best answer thanks once again !
- 
				sherayusuf3
- Posts: 94
- Joined: Jan 18, 2009 4:29 am
on nginx.conf file
add "worker_rlimit_nofile 30000;" after "worker_processes 4"
and change "worker_connections 4096;"
on /etc/security/limits.conf
add :
nginx soft nofile 10000
nginx hard nofile 30000
on /etc/sysctl.conf add:
fs.file-max = 999999
reboot your server to take effect (quick n dirty way)
			
									
									
						add "worker_rlimit_nofile 30000;" after "worker_processes 4"
and change "worker_connections 4096;"
on /etc/security/limits.conf
add :
nginx soft nofile 10000
nginx hard nofile 30000
on /etc/sysctl.conf add:
fs.file-max = 999999
reboot your server to take effect (quick n dirty way)

 Facebook
 Facebook Twitter
 Twitter