Increasing system limits

Post Reply
User avatar
myVesta
Site Admin
Posts: 948
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 9 times
Been thanked: 6 times

By default, a Debian system comes with some predefined system limits. Also, the services are preset to be able to open a certain number of files.
This does not cause any problems on smaller servers, but on large shared servers, you can easily hit these limits, which can result in services rejecting requests or being blocked altogether.

With this command, you can increase any limits we've noticed can cause problems:

Code: Select all

wget -nv https://dl.myvestacp.com/vesta/increase-system-limits.sh -O /root/increase-system-limits.sh
bash /root/increase-system-limits.sh
lgreen
Posts: 12
Joined: Thu Jan 13, 2022 5:44 am

I have an error too many open files on NGINX, and this script help me to resolve the problem but I edited for my needs.
My website using proxy_pass to another domain since I need to get some value of currency, and proxy_pass to docker for some app.

I amaze with MyVestaCP, I don't need any software to connect my docker to port 80 and 443, it's easy to configure, and easy to customize!
Just need to learn more about NGINX. Also, maybe when my project getting bigger, paid support will be great.
spoidyjan
Posts: 6
Joined: Mon Nov 25, 2024 7:05 am

You can increase system limits easily with the script provided by myVesta. Just download and execute it to resolve issues like "too many open files" on NGINX.
lgreen
Posts: 12
Joined: Thu Jan 13, 2022 5:44 am

spoidyjan wrote: Mon Nov 25, 2024 7:09 am You can increase system limits easily with the script provided by myVesta. Just download and execute it to resolve issues like "too many open files" on NGINX.
I did, and I modified for my needs just like my post.
spoidyjan
Posts: 6
Joined: Mon Nov 25, 2024 7:05 am

That's Great, Customizing it for your needs is a smart approach.
Post Reply