ユーザー毎の制限 ulimit | failed to open stream: Too many open files’

1ユーザーで並列にたくさん動かしたので、ファイルを開ける数に制限が出てしまいました。

failed to open stream: Too many open files’ in Zend/Search/Lucene/Storage/File/Filesystem.php:67

ulimit -n

1024
です。並列に動かす総定数 * 1024に変更します。

/etc/security/limits.conf

username soft nofile 4096
username hard nofile 4096

ログインすると

$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15903
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

This entry was posted on 火曜日, 7月 3rd, 2012 at 1:12 PM and is filed under server. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。