Hi,
I am testing my website in these days with Flood.io, in order to be ready for Black Friday and Christmas Days where the traffic will increase for sure.
I tested 1000 users at the same time to check how much my server can take. I have to say that, while 500 users were not a problem, 1000 users created a "500 Internal Server Error" in my website.
I run a Worpress Woocommerce that works quite well, it's fast, using Cloudflare and WProcket for caching, but after running the test these were the errors repeating over and over in the log file:
[alert] 84925#0: *2110791 socket() failed (24: Too many open files) while connecting to upstream - Errore nginx
[crit] 84925#0: accept4() failed (24: Too many open files)
84925#0: *2109332 upstream timed out (110: Connection timed out) while reading response header from upstream
socket() failed (24: Too many open files) while connecting to upstream
Now, I am not an expert in web servers and I have some questions:
- I understand that I have some limit in the server for simultaneous file opens, is it normal or should I edit some settings?
- during the test Apache memory increased to 40% and became Red, while Nginx memory was still quite empty, why is that? Is it possible to use Nginx memory too?
- I have a lot of active services in Apache (screenshot attached), but I am not confident in disabling them as I don't want the website to go down, are there services that can safely disabled?
- now, one day has passed and Apache memory is still high and red (28%), what should I do to flush it? Should I restart the server? Will this produce some down time in my website?
Sorry if I made too many questions, but I'm not a server expert and the website is already selling online, I cannot risk going offline.
Thank you very much,
Matteo
I am testing my website in these days with Flood.io, in order to be ready for Black Friday and Christmas Days where the traffic will increase for sure.
I tested 1000 users at the same time to check how much my server can take. I have to say that, while 500 users were not a problem, 1000 users created a "500 Internal Server Error" in my website.
I run a Worpress Woocommerce that works quite well, it's fast, using Cloudflare and WProcket for caching, but after running the test these were the errors repeating over and over in the log file:
[alert] 84925#0: *2110791 socket() failed (24: Too many open files) while connecting to upstream - Errore nginx
[crit] 84925#0: accept4() failed (24: Too many open files)
84925#0: *2109332 upstream timed out (110: Connection timed out) while reading response header from upstream
socket() failed (24: Too many open files) while connecting to upstream
Now, I am not an expert in web servers and I have some questions:
- I understand that I have some limit in the server for simultaneous file opens, is it normal or should I edit some settings?
- during the test Apache memory increased to 40% and became Red, while Nginx memory was still quite empty, why is that? Is it possible to use Nginx memory too?
- I have a lot of active services in Apache (screenshot attached), but I am not confident in disabling them as I don't want the website to go down, are there services that can safely disabled?
- now, one day has passed and Apache memory is still high and red (28%), what should I do to flush it? Should I restart the server? Will this produce some down time in my website?
Sorry if I made too many questions, but I'm not a server expert and the website is already selling online, I cannot risk going offline.
Thank you very much,
Matteo