システム全体のファイルディスクリプタの上限値を変更する ファイルディスクリプタの上限値を増やす設定を、Ubuntuを例として作業を進めていくが、CentOSなどにも適用可能。 とりあえず、現在のファイルディスクリプタの使用状況を確認してみる。 $ cat /proc/sys/fs/file-nr 4256 0 98531左から、割り当て済みファイルディスクリプタ 、使用中ファイルディスクリプタ 、最大割り当て可能ファイルディスクリプタとなる。 この最大割り当て可能ファイルディスクリプタの値を増やしてみる。/etc/sysctl.conf を開いて、最下行に以下のように追記する。 $ sudo vi /etc/sysctl.conf # ファイルディスクリプタの上限値 fs.file-max = 794573ここでは最大割り当て可能値を794573とした。この設定を反映させる為に以下のコマン