且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache Ignite缓存错误:由java.lang.illegalstateexception引起:缓存已关闭或破坏:cacheName

更新时间:2022-10-31 07:52:04

您的客户端节点很可能由于某种原因而断开连接.您可以通过在客户端上预订 EVT_CLIENT_NODE_DISCONNECTED 事件来进行检查(有关如何执行此操作的更多信息,请参见[1]).

如果这种情况经常发生,则说明存在一些严重的问题.我要检查的第一件事是内存.确保您没有用完它,也没有长时间的GC暂停.

[1] https://apacheignite.readme.io/docs/events >

The exception sometimes comes on the start of application,more frequently during the performance of the application .Moreover,the application starts slowly.

Most likely your client node disconnects for some reason. You can check this by subscribing to EVT_CLIENT_NODE_DISCONNECTED event on the client (see [1] for more info on how to do this).

If this happens frequently, then there are some serious issues. The first thing I would check is the memory. Make sure that you're not running out of it and that you do not experience long GC pauses.

[1] https://apacheignite.readme.io/docs/events