java.io.IOException: Cannot run program "bash": error=, Cannot allocate memory 云服务器运行nutch报出的异常: 解决方案:
http://daimajishu.iteye.com/blog/959213 最近在单机上测试Hadoop的本地模式时,出现了如下错误 C-sharp代码 java.io.IOException: Cannot run program "bash": java.io.IOException:
error=, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:) 经过检查,发现ram和交换空间基本都被使用了。因为我是在Ubuntu的虚拟机上搭建的测试环境,分配的内存为512M,看来除了系统开销外远远不够Hadoop的使用,解决方法很简单,将虚拟机的内存增加到1024M解决此问题。
相关文章
- 08-21java.io.IOException: Cannot run program "bash": error=12, Cannot allocate memory
- 08-21解决java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, 系统找不到指定的文件 的错误
- 08-21解决方案--java执行cmd命令ProcessBuilder--出错Exception in thread "main" java.io.IOException: Cannot run program "dir d:\": CreateProcess error=2(xjl456852原创)
- 08-21Tomcat7 JDK8 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000540000000, 5368709120, 0) failed; error='Cannot allocate memory' (errno=12)
- 08-21Execute failed: java.io.IOException: Cannot run program "sdk-linux/build-tools/22.0.0/aapt": error=2
- 08-21mount error(12): Cannot allocate memory解决办法