Linux文件柄和进程限制数

来自

If you are on Ubuntu you will need to make the following changes:

In the file /etc/security/limits.conf add a line like:

 hadoop - nofile 32768
Replace hadoop with whatever user is running Hadoop and HBase. If you have separate users, you will need 2 entries, one for each user. In the same file set nproc hard and soft limits. For example:
hadoop soft/hard nproc 32000
 

In the file /etc/pam.d/common-session   or  /etc/pam.d/login  add as the last line in the file:

session required  pam_limits.so

Otherwise the changes in /etc/security/limits.conf won't be applied.

Don't forget to log out and back in again for the changes to take effect!

猜你喜欢

转载自yeelor.iteye.com/blog/1959668