cassandra 报错 unable to create new native thread
来源:互联网 发布:软件如何创建快捷方式 编辑:程序博客网 时间:2024/06/15 00:19
在对集群做压力测试的时候,发现有节点down机,错误信息如下。google后查明原因,由于Linux "max user processes( nproc )"所致,我操作系统的是CentOS 6 64bit,修改方法如下:
错误信息
ERROR [Thread-28] 2013-07-25 06:14:05,055 CassandraDaemon.java (line 175) Exception in thread Thread[Thread-28,5,main]
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:640)
at java.util.concurrent.ThreadPoolExecutor.addThread(ThreadPoolExecutor.java:681)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:727)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:655)
at org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThreadPoolServer.java:113)
at org.apache.cassandra.thrift.ThriftServer$ThriftServerThread.run(ThriftServer.java:111)
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:640)
at java.util.concurrent.ThreadPoolExecutor.addThread(ThreadPoolExecutor.java:681)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:727)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:655)
at org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThreadPoolServer.java:113)
at org.apache.cassandra.thrift.ThriftServer$ThriftServerThread.run(ThriftServer.java:111)
当前会话有效设置
ulimit -u # 查看nproc
ulimit -u 65535 # 设置nproc,仅当前会话有效
ulimit -u 65535 # 设置nproc,仅当前会话有效
全局有效
cat /etc/security/limits.d/90-nproc.conf
* soft nproc 1024
vi /etc/security/limits.d/90-nproc.conf
* soft nproc 65535
* soft nproc 1024
vi /etc/security/limits.d/90-nproc.conf
* soft nproc 65535
参考:
java.lang.OutOfMemoryError: unable to create new native thread
关于RHEL6中ulimit的nproc限制
ulimit限制之nproc问题
--end
0 0
- cassandra 报错 unable to create new native thread
- OutOfMemoryError: unable to create new native thread
- myeclipse unable to create new native thread
- hadoop: unable to create new native thread
- OutOfMemoryError: unable to create new native thread
- Hbase unable to create new native thread
- hbase-创建连接报错 java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread
- linux java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- java.lang.OutOfMemoryError: unable to create new native thread
- 理解OutOfMemoryError: unable to create new native thread
- Java 枚举7常见种用法
- 责任链模式
- ReSharper 配置及用法
- 数组指针和指针数组
- 【Android】RecyclerView的分割线ItemDecoration
- cassandra 报错 unable to create new native thread
- C# INotifyPropertyChanged用法,监听属性值发生改变
- 图片嵌入html
- 同步异步阻塞非阻塞 的学习
- 数据库安全之TDE列加密
- Android APP的静默安装
- Java高并发,如何解决,什么方式解决
- HTML5学习笔记—小圣诞树
- cocos2dx系列之回调函数