Gemfire client server topology throws NoAvailableLocatorsException

时光毁灭记忆、已成空白 提交于 2019-12-23 01:15:52

问题


I have gemfire client server configured via gfe based xml. The locator, cache server and client cache start through these xml configurations. I populate my Region by getting data from database. The client uses data from this Region. It works very well for about 2 hours but after that the client starts throwing following exception and trace.

I don't do any changes to running application. That means the locator and cache server should be running at all times. Any help would be great. Thanks.

com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to connect to any locators in the list [/locator-host:locator-port] at com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:132) at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:205) at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.exchangeConnection(ConnectionManagerImpl.java:418) at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:173) at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:114) at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:638) at com.gemstone.gemfire.cache.client.internal.GetOp.execute(GetOp.java:89) at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.get(ServerRegionProxy.java:126) at com.gemstone.gemfire.internal.cache.LocalRegion.findObjectInSystem(LocalRegion.java:2767) at com.gemstone.gemfire.internal.cache.LocalRegion.nonTxnFindObject(LocalRegion.java:1605) at com.gemstone.gemfire.internal.cache.LocalRegionDataView.findObject(LocalRegionDataView.java:133) at com.gemstone.gemfire.internal.cache.LocalRegion.get(LocalRegion.java:1489) at com.gemstone.gemfire.internal.cache.LocalRegion.get(LocalRegion.java:1451) at com.gemstone.gemfire.internal.cache.AbstractRegion.get(AbstractRegion.java:278)


回答1:


Do you have anything in your locator or server logs? That exception indicates the client is trying to create a new connection and can't connect to a locator.

If your locator goes down, the client might still be able to work for a while using it's existing connections because it doesn't need to go back to the locator until it needs a new connection.



来源:https://stackoverflow.com/questions/27441315/gemfire-client-server-topology-throws-noavailablelocatorsexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!