我有一个问题,我希望你能帮我一点。我必须实现快进时间,因为我需要测试一些东西。我写了一个 python 脚本,它每 1 秒增加 5 秒的系统时间。(快 5 倍)。然后我的 jboss 因 hornetq 超时而失败。你有什么想法我可以解决这个问题吗?
03/09/18 09:18:00,107 WARN
[org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-
failure-check-thread) Connection failure has been detected: Did not
receive data from invm:0. It is likely the client has exited or crashed
without closing its connection, or the network between the server and
client has failed. You also might have configured connection-ttl and
client-failure-check-period incorrectly. Please check user manual for
more information. The connection will now be closed. [code=3]
根本问题是更改时间会破坏代理使用的连接故障检测算法。代理认为它没有在适当的时间从客户端接收“ping”数据包,因为您迫使时间以正常速率的 5 倍过去。除了禁用或扩展连接 TTL 之外,无法为远程客户端解决此问题。但是,对于虚拟机内连接,您可以将https://issues.jboss.org/browse/HORNETQ-1314(在您使用的 HornetQ 版本中未解决)中的修复程序应用到您所在的 HornetQ 分支目前正在使用和重建。如果您不想重建,您可以升级到包含此修复程序的 JBoss AS(或 Wildfly)版本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句