How to raise the web apps file limit in Bazzite?

As the title i have some webapps that crash due to this setting, how can i move it to big number? :bazzite:
Solution:
make a file in /etc/security/limits.d/ that ends with .conf then add something like ``` * soft nofile number * hard nofile number...
Jump to solution
19 Replies
Angelo
AngeloOP4w ago
No description
Angelo
AngeloOP4w ago
I get this error that say i have too many file open (In Italian)
Angelo
AngeloOP4w ago
As i undestand it's because this number is too low
No description
Angelo
AngeloOP4w ago
How i can in an immutable distro make it bigger to manage the webapps don't crash?
HikariKnight
HikariKnight4w ago
like in any linux system
Solution
HikariKnight
HikariKnight4w ago
make a file in /etc/security/limits.d/ that ends with .conf then add something like
* soft nofile number
* hard nofile number
* soft nofile number
* hard nofile number
HikariKnight
HikariKnight4w ago
just change the number this will not apply to anything run as root though meaning if its run with sudo it will still use the default limit you can also change the * to your username i believe which would be better
Angelo
AngeloOP4w ago
Sorry Im really new what's the command to make that file?
HikariKnight
HikariKnight4w ago
sudo nano /path/to/file sudo is needed to do it as admin, if this was a file in your home folder you would not use sudo then once you are done writing you press CTRL+X to exit and save
Angelo
AngeloOP4w ago
No description
Angelo
AngeloOP4w ago
so I need to write a name file after [limits.d/nofile.conf] (to make the file right)?
Angelo
AngeloOP4w ago
ok i have done it placing them at [soft 8192] and [hard 65536]
No description
Angelo
AngeloOP4w ago
No description
Angelo
AngeloOP4w ago
Now i need to restart to this to work?
HikariKnight
HikariKnight4w ago
no you wrote it wrong you didnt read this just change number to the number
Angelo
AngeloOP4w ago
Ok
Angelo
AngeloOP4w ago
No description
Angelo
AngeloOP4w ago
Fixed

Did you find this page helpful?