去掉内存和文件句柄限制
以coherence用户为例子:
修改:/etc/security/limits.conf
coherence hard nproc 655360
coherence soft nproc 655360
coherence hard nofile 65536
coherence soft nofile 65536
* hard memlock unlimited
* soft memlock unlimited
还要修改PROFILE
/etc/profile
ulimit -l unlimited
ulimit -u unlimited
还要修改
/etc/pam.d/login
session required /lib/security/pam_limits.so
需要重启才能生效。
执行:ulimit–l 确认
. Method 1:Changing Locked Memory Permanently
https://software.intel.com/en-us/blogs/2014/12/16/best-known-methods-for-setting-locked-memory-size
This method shows how to alter a configuration limit to allow auser to change the locked memory size.
1.1 Change locked memory size in the host:
Edit the file /etc/security/limits.conf
$ sudo vi /etc/security/limits.conf
Add the following line at the end of the file to set anunlimited locked memory for the user na