要不要也来分享分享一下啊

es日志报错java.lang.OutOfMemoryError: unable to create new native thread

Elasticsearch | 作者 aslan1011 | 发布于2019年11月18日 | 阅读数:2723

es刚启动或者运行运行着就报错[2019-11-18T18:08:43,590][WARN ][i.n.c.AbstractChannelHandlerContext] [elk-02.zgzf.com] An exception 'java.lang.OutOfMemoryError: unable to create new native thread' [enable DEBUG level for full stacktrace] was thrown by a user handler's exceptionCaught() method while handling the following exception:
java.lang.OutOfMemoryError: unable to create new native thread
 
 分析: es的堆内存配置的是31G够大了,es出问题的时候通过free -m查看系统内存也还是有空余的,很奇怪,后来发现是系统配置问题(一定要su到启动es的普通用户,通过ulimit -a关注max user processes这一栏),启动es的普通用户的yoghurt最大打开进程数只有默认的4096,在/etc/security/limits.conf中添加*          soft    nproc     655350并重启机器(注意不是*   soft    nofile          65535这个),问题就解决了,es跑的如丝般顺畅。
 
已邀请:
匿名用户

匿名用户

赞同来自:

这顿嘚瑟。

envy666

赞同来自:

额 这不是部署前的基本操作嘛。。。。。。

xiaopeng9275

赞同来自:

明明是线程不能分配,为啥调大进程呢

要回复问题请先登录注册