システム制限 ulimit 、プロセス lsof

$ 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) 4095
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
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) 4095
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

ulimit -n2048
でfile openを2048に変更

lsof で開いているプロセス数を確認

# /usr/sbin/lsof -u root | awk ‘BEGINE{a=0}{a++}END{print a}’
1338
特定のディレクトリのファイル利用
# /usr/sbin/lsof -u root |grep mydir| awk ‘BEGINE{a=0}{a++}END{print a}’
1788

とりあえず、luceneのoptimizeに失敗していたのは一旦回避できそうです。

This entry was posted on 水曜日, 5月 18th, 2011 at 7:48 PM and is filed under blog. 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アプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。