Hadoop yarn OutOfMemoryError: unable to create new native thread
来源:互联网 发布:未找到移动网络的信号 编辑:程序博客网 时间:2024/06/11 21:16
Bug
2015-08-23 18:00:12,084 FATAL org.apache.hadoop.yarn.event.AsyncDispatcher: Error in dispatcher threadjava.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:713) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371) at java.lang.UNIXProcess.initStreams(UNIXProcess.java:172) at java.lang.UNIXProcess$2.run(UNIXProcess.java:145) at java.lang.UNIXProcess$2.run(UNIXProcess.java:143) at java.security.AccessController.doPrivileged(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:143) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) at org.apache.hadoop.util.Shell.runCommand(Shell.java:485) at org.apache.hadoop.util.Shell.run(Shell.java:455) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715) at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.containerIsAlive(DefaultContainerExecutor.java:430) at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.signalContainer(DefaultContainerExecutor.java:401) at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.cleanupContainer(ContainerLaunch.java:419) at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncher.handle(ContainersLauncher.java:139) at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncher.handle(ContainersLauncher.java:55) at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:173) at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:106) at java.lang.Thread.run(Thread.java:744)2015-08-23 18:00:12,086 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Exiting, bbye..2015-08-23 18:13:35,544 INFO org.apache.hadoop.yarn.server.nodemanager.NodeManager: STARTUP_MSG:
Solution
At first,I thought my mapreduce program may need more memorys and there may be a limit on nproc .So,I changed the conf in linux and hadoop
/etc/security/limits.conf* soft nofile 65536* hard nofile 65536/etc/security/limits.d/90-nproc.conf* soft nproc unlimited* hard nproc unlimitedmapred-site.xmlmapreduce.map.memory.mb 4096mapreduce.reduce.memory.mb 8192mapreduce.map.java.opts -Xmx3072mmapreduce.reduce.java.opts -Xmx7168m
But,It didn’t work.The truth is that I have not enough memory to allocate to each maps and reduces.In fact, they don’t need a lot of memory and I over allocate to them.The solution is
mapred-site.xmlmapreduce.map.memory.mb 1024mapreduce.reduce.memory.mb 2048mapreduce.map.java.opts -Xmx800mmapreduce.reduce.java.opts -Xmx1600m
Environment
Centos 6.4 core 3.10.80Hadoop 2.6
0 0
- Hadoop yarn OutOfMemoryError: unable to create new native thread
- OutOfMemoryError: unable to create new native thread
- OutOfMemoryError: unable to create new native thread
- hadoop: unable to create new native thread
- Hadoop集群 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.lang.OutOfMemoryError: unable to create new native thread
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- 内核Panic和soft lockup分析及排错
- Gephi用户界面介绍
- Java改变程序观感
- 伊甸园eden剧情视频合集
- Linux 脚本初探
- Hadoop yarn OutOfMemoryError: unable to create new native thread
- leetcode-118-Pascal's Triangle
- PHP 中this,self,parent的区别
- swift详解之八---------------下标脚本
- codecombat之边远地区的森林1-11关及地牢38关代码分享
- 第5周工作周报
- uvalive 2957 Bring Them There(最大流)
- 我的PSoC学习(一)(PSoC Creator 2.0+win7+CY8C38):入门级别的五个工程
- 重装系统