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
demandé il y a 2 ans462 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions