How-to: resolve " java.lang.OutOfMemoryError: unable to create new native thread" for hbase thrift
来源:互联网 发布:陈奕迅48首选淘宝 编辑:程序博客网 时间:2024/05/16 14:20
Error:
Resolution:
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:142)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:276)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:165)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:57)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:142)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:276)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:165)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:57)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
Resolution:
- Add following in /etc/security/limits.conf to set the 100000 as the maximum number of processs in your system for user hadoop.
hadoop soft nproc 100000
hadoop hard nproc 100000
Reference: http://ww2.cs.fsu.edu/~czhang/errors.html - Configure hbase-env.sh(Optional: based on your use case):
export HBASE_HEAPSIZE=8000(original is 20G)
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -Xmx8g -Xms8g -Xmn4g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:$HBASE_LOG_DIR/gc--hbase.log" - Restart hbase and thrift(Without this, ulimit settings will not take effort)
stop-hbase.sh
start-hbase.sh
hbase-daemon.sh stop thrift
hbase-daemon.sh start thrift
0 0
- How-to: resolve " java.lang.OutOfMemoryError: unable to create new native thread" for hbase thrift
- 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
- 解决 - 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
- 黑马程序员——Java基础---Date/ Calender
- 1002-HBase本地安装方式
- ubunbtu 更新
- Qt学习之路(17): Qt标准对话框之QMessageBox
- 玩转iOS开发 - JSON 和 Xml 数据解析
- How-to: resolve " java.lang.OutOfMemoryError: unable to create new native thread" for hbase thrift
- oracle 物化视图导入导出报错
- 增加玩家炮弹个数,发射频率
- 51nod:天堂里的游戏
- 轻量级框架和重量级框架对比
- hiho一下1015
- Oralce动态视图v$session_longops使用
- ci的执行流程
- .LDS 文件详解