点燃节点因“打开的文件太多"而失败.错误 [英] Ignite node is failing with "Too many open files" error

查看:61
本文介绍了点燃节点因“打开的文件太多"而失败.错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我已将系统文件描述符限制设置为"300000",并将进程文件描述符限制设置为32768,但Ignite节点之一因以下错误而失败.是什么原因引起的,以及如何永久解决此问题.

Though I have set System File Descriptor limit as "300000" and Process File Descriptor limit as 32768, one of the Ignite node is failing with below error. What caused the issue and how to resolve this issue permanently.

class org.apache.ignite.IgniteCheckedException: Failed to accept connection: GridWorker [name=nio-acceptor-client-listener, igniteInstanceName=null, finished=false, heartbeatTs=1592476701201, hashCode=1172182555, interrupted=false, runner=nio-acceptor-client-listener-#34]
        at org.apache.ignite.internal.util.nio.GridNioServer$GridNioAcceptWorker.accept(GridNioServer.java:2948)
        at org.apache.ignite.internal.util.nio.GridNioServer$GridNioAcceptWorker.body(GridNioServer.java:2874)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Too many open files
        at java.base/sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
        at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:533)
        at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:285)
        at org.apache.ignite.internal.util.nio.GridNioServer$GridNioAcceptWorker.processSelectedKeys(GridNioServer.java:2998)
        at org.apache.ignite.internal.util.nio.GridNioServer$GridNioAcceptWorker.accept(GridNioServer.java:2928)
        ... 3 more

推荐答案

具有持久性的Apache Ignite非常渴望文件描述符:默认情况下,缓存可能具有1024个分区,因此在单个节点的群集中可以打开1024个文件.

Apache Ignite with persistence is very hungry for file descriptors: a cache might have 1024 partitions by default so that's 1024 files open in a cluster of single node.

您可以减少缓存数量,在亲和功能中减少分区数量,增加节点数:)或进一步提高限制.

You can decrease number of caches, number of partition in affinity function, have more nodes :) or bump the limit further.

这篇关于点燃节点因“打开的文件太多"而失败.错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆