P Pinocchio New Pleskian Jul 1, 2020 #1 Hi, Today, my website reached 4.000 concurrent users and i got lots of errors like: [alert] 32414#0: .... socket() failed (24: Too many open files) while connecting to upstream. How do I fix this?
Hi, Today, my website reached 4.000 concurrent users and i got lots of errors like: [alert] 32414#0: .... socket() failed (24: Too many open files) while connecting to upstream. How do I fix this?
IgorG Plesk addicted! Plesk Certified Professional Jul 1, 2020 #2 Increase maximum number of open files: # ulimit -n 8192 To increase these limits permanently: Add the following lines in /etc/security/limits.conf file before # End of file line: # tail -n4 /etc/security/limits.conf * soft nofile 8192 * hard nofile 8192 # End of file Reboot the server to apply these changes.
Increase maximum number of open files: # ulimit -n 8192 To increase these limits permanently: Add the following lines in /etc/security/limits.conf file before # End of file line: # tail -n4 /etc/security/limits.conf * soft nofile 8192 * hard nofile 8192 # End of file Reboot the server to apply these changes.
P Pinocchio New Pleskian Jul 3, 2020 #3 Thanks, I added those lines and saved the file. Shall I reboot using the following command? # service sw-engine restart && service sw-cp-server restart
Thanks, I added those lines and saved the file. Shall I reboot using the following command? # service sw-engine restart && service sw-cp-server restart
IgorG Plesk addicted! Plesk Certified Professional Jul 3, 2020 #4 Reboot means server reboot: # reboot
S SLOposum New Pleskian Jan 31, 2024 #6 Pinocchio said: Ok, thanks again. Click to expand... Having same problems. Running a multisite and when one of the sites publishes an articles, many of these errors appear. Did you solve this @Pinocchio?
Pinocchio said: Ok, thanks again. Click to expand... Having same problems. Running a multisite and when one of the sites publishes an articles, many of these errors appear. Did you solve this @Pinocchio?
dj ramc Basic Pleskian Nov 21, 2024 #8 I edited the nginx.conf file. etc/systemd/system/nginx.service [Service] LimitNOFILE=16384 Click to expand... and /etc/nginx/nginx.conf worker_processes auto; #1 events { worker_connections 4096; #1024 } Click to expand... We'll see if it helps.
I edited the nginx.conf file. etc/systemd/system/nginx.service [Service] LimitNOFILE=16384 Click to expand... and /etc/nginx/nginx.conf worker_processes auto; #1 events { worker_connections 4096; #1024 } Click to expand... We'll see if it helps.