echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » Ubuntu Server中设置用户最大打开文件数量的方法 仲子说

2010-01-25

Ubuntu Server中设置用户最大打开文件数量的方法

Posted in 云计算 at 23:42 Author:仲远

标签:

??????HBase-0.20.2??????????????Hbase????????“?????????”?a file handle hog???????????????????????Ubuntu Linux????????????????????

1???pam_limits.so ????????????
sudo vim /etc/pam.d/common-session 
???????
session required pam_limits.so

2??? sudo vim /etc/security/limits.conf ????????
hbase - nofile 32768
??????
* - nofile 32768
?????
???????????????????????32768??????????????

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

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

1 Comment »

  1. liqwei said,

    2010年November2日 at 10:10

    写的很不错,很实用

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word