Hazelcast实例未激活

Hazelcast实例未激活

我已经在MuleSoft 3.5.1中用Java实现了一个服务应用程序,该服务应用程序可在群集服务器中使用,有时会出现错误“ Hazelcast实例未激活!”。并且所有服务都被阻塞,因此我必须重新启动两个服务器来解决问题。 hazelcast-3.1.6.jar在我的项目中。

     ERROR 2015-06-22 09:39:00,425 [[gs_p_api_QA-vGS_P_0_1_18].http1_connector.receiver.06] org.mule.exception.DefaultMessagingExceptionStrategy:
*****************************************************************************
Message               : Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException). Message payload is of type: HashMap
Code                  : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException)
  com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry:220 (null)
2. Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException). Message payload is of type: HashMap (org.mule.api.MessagingException)
  org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active!
        at com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry.<init>(ProxyServiceImpl.java:220)
        at com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry.<init>(ProxyServiceImpl.java:207)
        at com.hazelcast.spi.impl.ProxyServiceImpl$1.createNew(ProxyServiceImpl.java:69)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************


如何确定解决此问题?

最佳答案

我遇到了类似的异常“ com.hazelcast.core.HazelcastInstanceNotActiveException:Hazelcast实例未激活!”在运行网络应用时。就我而言,这是由OutOfMemory引起的,尽管起初并不明显。

我认为您可能遇到内存问题,这可能导致HashMap变得太大。

08-05 01:05