ngx.timer.at()使用之后导致lua entry thread aborted: memory allocation error: not enough memory

77 views
Skip to first unread message

jiaz...@gmail.com

unread,
Jan 10, 2018, 5:56:34 AM1/10/18
to openresty
由于在同一个线程内log_by_lua_file不能使用用lua_resty_redis,所以我将对redis的操作单独拆分出一个服务,然后在流程中用ngx.timer.at(0, func)进行 fake request 去调用这个服务。然后问题就出现了,在流量不大的时候就出现了“lua entry thread aborted: memory allocation error: not enough memory”。
Reply all
Reply to author
Forward
0 new messages