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
質問済み 3年前484ビュー
1回答
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
回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ