急求助maybe in an endless loop (version = 532435) #1727
ericzhanchina
started this conversation in
General
Replies: 3 comments 5 replies
-
|
看上去00000001是日志服务,使用lua写的一个logger,不断地将日志写到服务器文件系统,然后dbredis这个服务输出日志的时候卡住了,虽然redis的执行只花了1ms,但是这个日志调用返回的时候已经过了11分钟了。日志是一个单例的服务,debug_console里面,也没有看到mqlen有堆积,还是搞不清楚问题出在哪里。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
mq 过长并不会输出这样的 log 。该 log 产生就是因为单条消息进去服务处理后,一直没有返回。而 mqlen 过长只会把进入的消息堆积在系统里,而并不会影响单条消息的处理时间。 既然是写日志,就不能排除 IO 阻塞过久的可能。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
是否使用了数组作为突击队列 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
最近服务器随机出现了死循环的问题,但是阅读代码一直发现不了问题,而且对于服务的目标地址有些疑问,请求帮助。
[:00000072][DEBUG][18:02:16.36][msgagent.lua:568] >>[1014][pet_gene_random] userid = 1114616915952799744
[:0000001b][DEBUG][18:13:44.52][dbredis.lua:65] call pipeline of .mainredis.slave[3] from 114 cost 1 ms
[:00000000][DEBUG][18:13:44.52]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.52]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
[:00000000][DEBUG][18:13:44.53]A message from [ :0000001b ] to [ :00000001 ] maybe in an endless loop (version = 532435)
首先00000001这个服务是哪个呢,我到debug里面只有00000004开始的,0000001b是处理redis请求的一个服务,所有redis的处理都发给这个服务,这个服务有4个slave服务,dbredis会转发给子服务处理。看上去18:02的请求的请求,在18:13才处理完,但是从日志来看,说处理只花了1ms,但是日志差了11分钟去了。
请指点,谢谢。
Beta Was this translation helpful? Give feedback.
All reactions