com.hazelcast.core.HazelcastException: Client is shutting down!!!
at com.hazelcast.client.connection.nio.ClientConnection.innerClose(ClientConnection.java:302)
at com.hazelcast.client.connection.nio.ClientConnection.close(ClientConnection.java:355)
at com.hazelcast.client.connection.nio.ClientConnection.close(ClientConnection.java:230)
at com.hazelcast.client.connection.nio.ClientConnectionManagerImpl.shutdown(ClientConnectionManagerImpl.java:249)
at com.hazelcast.client.ClientOutOfMemoryHandler$ClientHelper.closeSockets(ClientOutOfMemoryHandler.java:54)
at com.hazelcast.client.ClientOutOfMemoryHandler$ClientHelper.cleanResources(ClientOutOfMemoryHandler.java:45)
at com.hazelcast.client.ClientOutOfMemoryHandler.onOutOfMemory(ClientOutOfMemoryHandler.java:34)
at com.hazelcast.instance.OutOfMemoryErrorDispatcher.onOutOfMemory(OutOfMemoryErrorDispatcher.java:143)
at com.hazelcast.spi.impl.BasicOperationService$OperationHandler.handleOperationError(BasicOperationService.java:827)
at com.hazelcast.spi.impl.BasicOperationService$OperationHandler.handle(BasicOperationService.java:703)
at com.hazelcast.spi.impl.BasicOperationService$OperationHandler.access$400(BasicOperationService.java:675)
at com.hazelcast.spi.impl.BasicOperationService.runOperationOnCallingThread(BasicOperationService.java:229)
at com.hazelcast.spi.impl.BasicInvocation.doInvokeLocal(BasicInvocation.java:286)
at com.hazelcast.spi.impl.BasicInvocation.doInvoke(BasicInvocation.java:272)
at com.hazelcast.spi.impl.BasicInvocation.invoke(BasicInvocation.java:232)
at com.hazelcast.spi.impl.BasicInvocationBuilder.invoke(BasicInvocationBuilder.java:45)
at com.hazelcast.client.impl.client.PartitionClientRequest.process(PartitionClientRequest.java:60)
at com.hazelcast.client.impl.ClientEngineImpl$ClientPacketProcessor.processRequest(ClientEngineImpl.java:418)
at com.hazelcast.client.impl.ClientEngineImpl$ClientPacketProcessor.run(ClientEngineImpl.java:357)
at com.hazelcast.spi.impl.BasicOperationService$BasicDispatcherImpl.dispatch(BasicOperationService.java:546)
at com.hazelcast.spi.impl.BasicOperationScheduler$OperationThread.process(BasicOperationScheduler.java:439)
at com.hazelcast.spi.impl.BasicOperationScheduler$OperationThread.doRun(BasicOperationScheduler.java:433)
at com.hazelcast.spi.impl.BasicOperationScheduler$OperationThread.run(BasicOperationScheduler.java:408)
at ------ End remote and begin local stack-trace ------.(Unknown Source)
at com.hazelcast.client.spi.impl.ClientCallFuture.resolveResponse(ClientCallFuture.java:192)
at com.hazelcast.client.spi.impl.ClientCallFuture.get(ClientCallFuture.java:134)
at com.hazelcast.client.spi.impl.ClientCallFuture.get(ClientCallFuture.java:111)
at com.hazelcast.client.spi.ClientProxy.invoke(ClientProxy.java:110)
at com.hazelcast.client.proxy.ClientMapProxy.get(ClientMapProxy.java:180)
对于每次新的跑步,这发生在(大约)15分钟的跑步之后。
在此之后,我们不断得到以下错误,
java.util.concurrent.RejectedExecutionException: Internal executor rejected task: java.util.concurrent.FutureTask@5463e258, because client is shutting down...
at com.hazelcast.client.spi.impl.ClientExecutionServiceImpl$1.rejectedExecution(ClientExecutionServiceImpl.java:60)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110)
at com.hazelcast.client.spi.impl.ClientExecutionServiceImpl.submitInternal(ClientExecutionServiceImpl.java:81)
at com.hazelcast.client.connection.nio.ClientConnectionManagerImpl.getOrConnect(ClientConnectionManagerImpl.java:339)
at com.hazelcast.client.connection.nio.ClientConnectionManagerImpl.tryToConnect(ClientConnectionManagerImpl.java:280)
at com.hazelcast.client.spi.impl.ClientInvocationServiceImpl.send(ClientInvocationServiceImpl.java:120)
at com.hazelcast.client.spi.impl.ClientInvocationServiceImpl.invokeOnRandomTarget(ClientInvocationServiceImpl.java:61)
at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:197)
at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:180)
at com.hazelcast.client.HazelcastClient.getDistributedObject(HazelcastClient.java:461)
at com.hazelcast.client.HazelcastClient.getMap(HazelcastClient.java:314)
at com.hazelcast.client.HazelcastClientProxy.getMap(HazelcastClientProxy.java:97)
请,如果有任何配置设置我需要添加???
INFO :
添加了没有驱逐政策,默认为NONE。 使用 MAP STORE 进行持久性策略,写入延迟为1秒。
答案 0 :(得分:2)
由于您没有支持合同,这是最有价值的答案。
您有单个节点设置,与单个节点群集听起来一样错误,因为错误的是以这种方式运行Hazelcast。 Hazelcast不是为单个成员集群设计的(也没有意义)。
堆的数量设置为16GB。您的预期数据值是多少?我的意思是你不能在16GB堆中存储16GB的数据。
当您的JVM运行OOME时,您是否尝试过进行堆转储?你有没有看过它,看看你的记忆是什么? (如上所述,寻找“如何发现内存泄漏”)
如果您没有选择驱逐,即使使用MapStore也不会被驱逐。
您是否尝试过不同的GC组合或尝试查看GC?有各种GC错误。
好像您的客户端正在运行OOME,所以问题可能根本不是数据量。但由于没有进一步的信息,很难理由。