JBossCacheService:将缓存模式更改为 REPL_SYNC 后,缓存放置错误发生异常
我们在 JBoss 4.2 上设置了一个水平集群。会话复制工作正常,直到我们将缓存模式从 REPL_ASYNC 更改为 REPL_SYNC 以解决问题。我们开始看到一些会话故障转移的警告:
[org.jboss.web.tomcat.service.session.InstantSnapshotManager.ROOT] Failed to replicate session
java.lang.RuntimeException bc [local7.warning] JBossCacheService: exception occurred in cache put ...
org.jboss.web.tomcat.service.session.JBossCacheWrapper.put(JBossCacheWrapper.java:147)
org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:315)
org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:125)
有谁知道为什么会发生这种情况以及如果我们仍想使用 REPL_SYNC 该如何修复它?任何帮助表示赞赏。谢谢!
we have a horizontal cluster set up on JBoss 4.2. The session replication worked fine until we changed cache mode from REPL_ASYNC to REPL_SYNC to fix a issue. We started to see warning for some session failovers:
[org.jboss.web.tomcat.service.session.InstantSnapshotManager.ROOT] Failed to replicate session
java.lang.RuntimeException bc [local7.warning] JBossCacheService: exception occurred in cache put ...
org.jboss.web.tomcat.service.session.JBossCacheWrapper.put(JBossCacheWrapper.java:147)
org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:315)
org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:125)
Does anyone have any idea why this happen and how to fix it if we want to still use REPL_SYNC? Any help is appreciated. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现错误就在 REPL_ASYNC 开关之前存在。据 JBoss 的人士介绍,在垃圾收集过多或出现网络问题时出现警告是正常的。该节点没有响应复制请求,怀疑被 JGroups 宕机。
I found out the error exists right before the REPL_ASYNC switch. According to people from JBoss, the warning is normal during excessive garbage collection or network issues. The node did not respond to the replication request, and was suspected of being down by JGroups.