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
asked 2 years ago421 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions