问题描述
在我的区域中启用订阅合并后,我在GemFire Pulse网站的“成员客户端”表的队列大小字段中看到了增量负数(-XXXXX)。负数出现在队列大小字段中的原因是什么?
- GemFire版本:9.8.6
- 地区数:1
- 每0.5秒更新1个客户端应用程序区域(缓存代理)
- 1个客户端应用程序从区域读取数据(缓存代理-注册所有密钥的兴趣)
- 同一虚拟机中的1个定位器和1个缓存服务器
队列大小。在启用了订阅的客户端或在服务器上运行连续查询的客户端的情况下,服务器用于发送事件的队列的大小。 [https://gemfire.docs.pivotal.io/910/geode/developing/events/tune_client_message_tracking_timeout.html]。
其他发现
脉冲网站(队列大小为负数)
JConsole(showClientQueueDetail)
(numVoidRemovals(4486)
@ClientCacheApplication(locators = {
@ClientCacheApplication.Locator(host = "192.168.208.20",port = 10311) },name = "Reading-Testing",subscriptionEnabled = true)
@EnableEntityDefinedRegions(basePackageClasses = Person.class,clientRegionShortcut = ClientRegionShortcut.CACHING_PROXY,poolName = "SecondPool")
@EnableGemfireRepositories(basePackageClasses = PersonRepository.class)
@EnablePdx
@Import({ GemfireCommonPool.class })
public class PersonDataAccess {
....
}
@Configuration
public class GemfireCommonPool {
@Bean("SecondPool")
public Pool init() {
PoolFactory poolFactory = PoolManager.createFactory();
poolFactory.setPingInterval(8000);
poolFactory.setRetryAttempts(-1);
poolFactory.setMaxConnections(-1);
poolFactory.setReadTimeout(30000);
poolFactory.addLocator("192.168.208.20",10311);
poolFactory.setSubscriptionEnabled(true);
return poolFactory.create("SecondPool");
}
}
附加发现2
当我删除@EnableEntityDefinedRegions中的poolName字段时,我发现Pulse网站不会为队列大小显示负数。但是,在showClientQueueDetail中,它显示队列大小为负数。
是我的编码错误还是合并问题?
非常感谢您。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)