GridGain内存不足异常:无法创建新的本机线程

时间:2014-11-25 15:41:16

标签: out-of-memory redhat gridgain

我试图在Red Hat Release 6.5(Santiago)中创建超过2个网格增益实例(仅运行shell脚本),但是当我尝试运行shell脚本时出现以下错误:第3次:

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.prestartAllCoreThreads(ThreadPoolExecutor.java:1604)
at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start0(GridGainEx.java:1507)
at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start(GridGainEx.java:1289)
at org.gridgain.grid.kernal.GridGainEx.start0(GridGainEx.java:832)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:759)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:677)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:524)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:494)
at org.gridgain.grid.GridGain.start(GridGain.java:314)
at org.gridgain.grid.startup.cmdline.GridCommandLineStartup.main(GridCommandLineStartup.java:293)

我设置了ulimit -n 4096但仍然没有快乐

这个盒子有64GB的内存 - 足以运行2个GridGain实例

任何人都可以帮助解决此错误吗?我可以在Red Hat中进行任何配置更改吗?

由于

1 个答案:

答案 0 :(得分:0)

很可能您的用户进程数量不足。我们在CentOs服务器上遇到了同样的问题,并设置了ulimit -u 10240帮助。