[英]Too many open files occured when cassandra snapshot
java error occured when I try to cassandra snapshot. 当我尝试cassandra快照时发生java错误。
root@cassandra mytest]# /usr/local/apache-cassandra-1.1.7/bin/nodetool -h localhost mytest root @ cassandra mytest]#/usr/local/apache-cassandra-1.1.7/bin/nodetool -h localhost mytest
so, I added to /etc/security/limits.conf 所以,我添加到了/etc/security/limits.conf
follow this: http://www.datastax.com/docs/1.1/troubleshooting/index#java-reports-an-error-saying-there-are-too-many-open-files 请遵循以下步骤: http : //www.datastax.com/docs/1.1/troubleshooting/index#java-reports-an-error-saying-there-are-too-many-open-files
but still error occured. 但仍然发生错误。
please hel me. 请帮助我。
I use CentOS. 我使用CentOS。
ps. PS。 I following this: 我遵循此:
On CentOS, RHEL, OEL Sysems, change the system limits from 1024 to 10240 in /etc/security/limits.d/90-nproc.conf and then start a new shell for these changes to take effect. 在CentOS,RHEL和OEL Sysems上,将/etc/security/limits.d/90-nproc.conf中的系统限制从1024更改为10240,然后启动新的外壳程序使这些更改生效。 * soft nproc 10240 *软nproc 10240
but i can't find "/etc/security/limits.d/90-nproc.conf" 但我找不到“ /etc/security/limits.d/90-nproc.conf”
i'm sorry. 对不起。 i'm poor at english. 我英语不好。
In addition to limits.conf , you need to do the following: 除了limits.conf之外 ,您还需要执行以下操作:
Edit /etc/pam.d/login , adding the line: 编辑/etc/pam.d/login ,添加以下行:
session required /lib/security/pam_limits.so
please try it and let me know of the result. 请尝试一下,让我知道结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.