忍者ブログ
  • 2026.05«
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • » 2026.07
[PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

【2026/06/15 13:59 】 |
【Android】too many open filesエラー発生
ユーザのファイルオープン上限を変えます。

/etc/security/limits.confにユーザ名と上限値を記述します。
[root@localhost ~]# vi /etc/security/limits.conf
* soft nofile 49152 ← ファイルディスクリプタのソフトリミット
* hard nofile 49152 ← ファイルディスクリプタのハードリミット
* soft nproc 4096 ← プロセス数のソフトリミット
* hard nproc 4096 ← プロセス数のハードリミット

設定したユーザでログインし「ulimit」コマンドで設定を確認します。
[user1@localhost ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 49152
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
PR
【2010/08/06 10:50 】 | 未選択 | 有り難いご意見(0) | トラックバック()
<<ストレステスト用のサイト群 | ホーム | 【LINUX】Ubuntuのメモリ開放?>>
有り難いご意見
貴重なご意見の投稿















虎カムバック
トラックバックURL

前ページ | ホーム | 次ページ

忍者ブログ [PR]