Hi My Nginx - Ubuntu is limiting to 500 hits per second. I tried many settings. But i am not able to increase visitors count more than 500 per second. Can you help me with this?by agriz - Requests for Paid Services
Sir, I can see any message there. Additionally, There are the sysctl.conf file i modified net.ipv6.conf.all.accept_ra=2 net.core.rmem_max = 16777216 net.core.rmem_default = 31457280 net.ipv4.tcp_rmem = 4096 87380 16777216 net.core.wmem_max = 16777216 net.ipv4.tcp_wmem = 4096 16384 16777216 net.ipv4.tcp_mem = 65536 131072 262144 net.ipv4.udp_mem = 65536 131072 262144 net.ipv4.udp_rmeby agriz - Nginx Mailing List - English
worker_processes auto; pid /run/nginx.pid; worker_rlimit_nofile 100000; error_log /var/log/nginx/error.log crit; events { worker_connections 4000; multi_accept on; use epoll; } http { include /etc/nginx/mime.types; sendfile on; tcp_nopush on; tcp_nodelay on; directio 4m; types_hash_max_size 2048; client_body_buffer_size 15K; client_max_body_size 8m; keepalby agriz - Nginx Mailing List - English
It is a 8 core system. 32 gb ram. But only 500 connections are accepted per second. I optimized network settings and nginx settings. I can pay. But i cant give server details. You have to fix the problem. worker_processes auto; pid /run/nginx.pid; worker_rlimit_nofile 100000; error_log /var/log/nginx/error.log crit; events { worker_connections 4000; multi_accept on; use epolby agriz - Requests for Paid Services
worker_processes auto; pid /run/nginx.pid; worker_rlimit_nofile 100000; error_log /var/log/nginx/error.log crit; events { worker_connections 4000; multi_accept on; use epoll; } http { include /etc/nginx/mime.types; sendfile on; tcp_nopush on; tcp_nodelay on; directio 4m; types_hash_max_size 2048; cby agriz - How to...
Sir, codeigniter is executing everything from index.php The coding which has been done are in the controller, model and view folders. The actual url which user see is different. It is routed. Can we get that url?by agriz - Nginx Mailing List - English
slowlog = /var/log/php-fpm/slow.log request_slowlog_timeout = 1s This following two lines are added in the php config file. Once it is added and restart php-fpm, the slow.log file is created. (request: "GET /index.php") executing too slow (1.072177 sec), logging This error is displayed in error.log file of php-fpm. But there is no additional details. I am not able to trace whichby agriz - Nginx Mailing List - English
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 52 total children I am getting this error. top -c %Cpu(s): 70.6 us, 8.2 sy, 0.0 ni, 20.8 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st php-fpm max_children = 700 pm.start_servers = 30 pm.min_spare_servers = 20 pm.max_spare_servers = 40 pm.max_reqby agriz - How to...
Is there a way to see how nginx is performing? How do i confirm that nginx is overloaded to its maximum?by agriz - How to...
I forget to mention. during night, there wont be any visitors. It is only for specific regions. website will be busy during the morning time.by agriz - Nginx Mailing List - English
I am getting these kind of warning in php fpm log NOTICE: child 25826 exited with code 0 after 864.048588 seconds from start NOTICE: child 6580 started Sir, I am still looking for a way to monitor nginx performance. But i am not able to find the solution in internet. Can you please guide me how to monitor nginx? Something is still limiting the visitors from accessing the page after ceby agriz - Nginx Mailing List - English
php fpm status pool: www process manager: dynamic start time: 17/Oct/2017:00:55:44 -0400 start since: 2077 accepted conn: 183360 listen queue: 0 max listen queue: 0 listen queue len: 0 idle processes: 28 active processes: 3 total processes: 31 max active processes: 31 max children reached: 0 slow requestsby agriz - Nginx Mailing List - English
Sir reading some info, i guess i cant tell any number blindly without test. I think I can first try to give these values max_children = 100 start server = 34 spareserver min and max = 20 & 50 We have around 20GB free Ram all the time. Why can't we use it for php-fpm? Are those values safe to check? But max_requests, why should we limit the numbers to 500 or 2500? Why cant weby agriz - Nginx Mailing List - English
I am in the field now. I asked my friend to get the info you asked. This is what i received php-fpm is using unix sockets (I know this. I configured this) tcp 0 0 TIME_WAIT tcp 0 0 TIME_WAIT tcp 0 0 TIME_WAIT tcp 0 0 ESTABLISHED tcp 0 0 TIME_WAIT tcp 0 0 TIME_WAIT tcp 0by agriz - Nginx Mailing List - English
Sir, Thank you for your reply. This is a live server. It is an NPO (non profit organisation). I pay for the server and maintaining it. We cant afford to a admin. It will be a great help if you can solve this. People are visiting for registering complains and viewing our activity. all php pages are connected with mysql. I try my best to learn about server. But it seems difficult toby agriz - Nginx Mailing List - English
worker_processes 4; worker_rlimit_nofile 40000; events { worker_connections 4096; # accept_mutex on; # accept_mutex_delay 500ms; multi_accept on; use epoll; } pm.max_children = 50 pm.start_servers = 4 pm.min_spare_servers = 4 pm.max_spare_servers = 32 pm.max_requests = 2500 //modified rlimit_files = 131072 //modified rlimit_core = unlimited //modified # TCPby agriz - Nginx Mailing List - English
Reduced to 4k visitors from 10k :(by agriz - Nginx Mailing List - English
Sir, Can you give me a rough values? I will play with them.by agriz - Nginx Mailing List - English
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22093 nginx 20 0 393060 11848 3828 S 31.9 0.0 10:17.70 php-fpm: pool www 1495 mysql 20 0 4793852 318444 9824 S 23.6 1.0 796:41.59 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin -+ 3135 nginx 20 0 393108 12112 3832 R 7.3 0.0 10:30.35 pby agriz - Nginx Mailing List - English
I am struggling to handle a traffic of 10K+ It will reach a lot. But my bad configuration is limiting them. www.conf pm.max_children = 400 pm.start_servers = 40 pm.min_spare_servers = 40 pm.max_spare_servers = 70 pm.max_requests = 800 nginx.conf worker_processes 3; events { worker_connections 8096; accept_mutex on; accept_mutex_delay 500ms; multi_accept on;by agriz - Nginx Mailing List - English
How do differentiate if the image is access via <img src='img.jpg'> and http://somesite.com/img.jpg (directly in the url?) If the img is directly accessed in the url of web browser, i want that to be redirected to website home page or some other page where the image belongs. http://i683.photobucket.com/albums/vv191/angelinesona/Animhorse.gif If i enter this image url in browser url,by agriz - How to...
Hi The server is struggling to handle the traffic. I have 8GB ram. Quad core server. I have changed the config file for nginx and i have default config for php fpm. Please advice the best config. Right now, the load is about 50 user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024;by agriz - Nginx Mailing List - English
enabled = true filter = nginx-auth action = iptables-multiport logpath = /var/log/nginx*/*error*.log bantime = 600 # 10 minutes maxretry = 6 enabled = true filter = nginx-login action = iptables-multiport logpath = /var/log/nginx*/*access*.log bantime = 600 # 10 minutes maxretry = 6 enabled = true filter = apache-badbots action = iptables-multiport logpath = /var/log/ngiby agriz - Nginx Mailing List - English
Today i found one particular IP address which was trying a lot of things in my server. For a second, it was sending atleast 50 requests. It was keep on accessing my admin login page with post and get request That IP tried proxy GET http://... It tried to inject something in the script with -d parameter. i added "limit_req_zone $binary_remote_addr zone=app:10m rate=2r/s; " inby agriz - Nginx Mailing List - English
Thanks a ton for you!by agriz - Nginx Mailing List - English
server_name .site.com; root /var/www/site.com; error_page 404 /404.php; access_log /var/log/nginx/site.access.log; index index.html index.php; if ($http_host != "www.site.com") { rewrite ^ http://www.site.com$request_uri permanent; } location ~* \.php$ { # try_files $uri = 404; fastcgi_index index.php; fastcgi_pass 1by agriz - Nginx Mailing List - English
Somewhere something happened. I am not able to fix it. error_page 404 404.html During the test, i had this line in the site.conf file. 404.html had "File not found." Later i created a proper error page and changed the commands like this. error_page 404 404.php But nginx is still throwing "File not found." but i have already deleted that 404.html file from serverby agriz - Nginx Mailing List - English
I want to disallow php, sh, cgi or any other scripts in the following directory structure. /uploads/2013/10/10/1 /uploads/2013/10/10/2 /uploads/2013/10/10/3 .. /uploads/2013/11/10/1 .. /uploads/2014/1/1/3 .. and so on I know to do this for single folder. How do i do this for multiple folders? I was using apache previously.by agriz - How to...
I just switched from apache to nginx. First i thought to use reverse proxy with apache. But many people recommended nginx with php-fpm I just type a simple with <?php echo "soon"; ?> It takes more seconds to output the result. http { include /etc/nginx/mime.types; default_type application/octet-stream; server_tokens off; log_format main '$by agriz - Other discussion
hi I want to have nginx and apache to serve static an dynamic files separately. I added this in apache <VirtualHost *:8080> ServerAdmin info@server1.com DocumentRoot /var/www/html/server1 ServerName www.server1.com ErrorLog /etc/httpd/logs/server1.error.log CustomLog /etc/httpd/logs/server1.access.log common </VirtualHost> <VirtualHost *:8080> ServerAdby agriz - Other discussion