Cannot increase the number of open files limit

0

I'm trying to increase the number of open files via:

ulimit -H -n 2010000

but it fails with: -bash: ulimit: open files: cannot modify limit: Operation not permitted

I'm running Ubuntu Linux 20.04 Lightsail instance with a single CPU and 1GB of RAM.

Related:
https://unix.stackexchange.com/questions/359189/fixing-ulimit-open-files-cannot-modify-limit-operation-not-permitted#_=_
https://stackoverflow.com/questions/1212925/on-linux-set-maximum-open-files-to-unlimited-possible/1213069#1213069

Edited by: Glusk on Nov 6, 2021 6:03 AM

Glusk
gefragt vor 2 Jahren462 Aufrufe
1 Antwort
0

Looking at the man page for ulimit, I see this ...

          -n     The maximum number of open file descriptors (**most systems do not**  
                **allow this value to be set**)
profile picture
David G
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen