如何解决成员客户端表中“队列大小”字段显示的负增量
在我的区域中启用订阅合并后,我在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 举报,一经查实,本站将立刻删除。