Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
ngx.timer.at()使用之后导致lua entry thread aborted: memory allocation error: not enough memory
jiazm2016
由于在同一个线程内
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”。