java - cassandra快照时出现打开文件过多的情况

标签 java backup cassandra snapshot

当我尝试 cassandra 快照时发生 java 错误。

root@cassandra mytest]#/usr/local/apache-cassandra-1.1.7/bin/nodetool -h localhost mytest

<小时/>

enter image description here

所以,我添加到/etc/security/limits.conf

按照此操作:http://www.datastax.com/docs/1.1/troubleshooting/index#java-reports-an-error-saying-there-are-too-many-open-files

  • 软nofile 32768
  • 硬nofile 32768
  • 根软nofile 32768
  • root 硬文件 32768
  • 软内存锁无限制
  • 硬内存锁无限制
  • root 软内存锁无限制
  • root 硬内存锁无限制
  • 软如无限
  • 困难无极限
  • root软为无限制
  • root 权限无限制

但仍然发生错误。

请帮助我。

我使用 CentOS。

ps。 我关注这个:
在 CentOS、RHEL、OEL Sysems 上,在/etc/security/limits.d/90-nproc.conf 中将系统限制从 1024 更改为 10240,然后启动新的 shell 以使这些更改生效。 *软nproc 10240

但我找不到“/etc/security/limits.d/90-nproc.conf”


对不起。我英语不好。

最佳答案

除了limits.conf之外,您还需要执行以下操作:

编辑/etc/pam.d/login,添加以下行:

session required /lib/security/pam_limits.so

请尝试一下并告诉我结果。

关于java - cassandra快照时出现打开文件过多的情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14699057/

相关文章:

bash - RSync 仅当文件系统被挂载时

cassandra - 使用虚拟节点在种子节点(总共 2 个)死亡时重新平衡 Cassandra 1.2 集群

hadoop - Hbase 自动递增任何列/行键

java - Action 事件停止

java - JButton 助记符仅在 ALT 键上有下划线

java - 删除最后一个空行

git - 如何查找并备份本地 GIT 存储库以便稍后恢复?

java - 简单的 XML 反序列化

ruby 备份 gem 运行两次

java - 新的 cassandra 绑定(bind)语句 getDate 方法