openresty / openresty/lua-resty-lrucache

openresty worker cpu 100%

Open
#39 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
461
Forks
114
PR merge metrics
No merged PRs in 30d

Description

hi, i was use Kong version 1.0.3
my service online environment workers process cpu 100%, I use stapxx found debugging information is as follows:
@/home/appops/gateway/openresty/lualib/resty/lrucache.lua:158
@./kong/router.lua:958
@./kong/router.lua:1221
@./kong/runloop/handler.lua:699
@./kong/init.lua:705

is lrucache bug ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting lualib/resty/lrucache.lua at line 158 and trace the calls from kong/router.lua lines 958 and 1221 through kong/runloop/handler.lua:699 and kong/init.lua:705. Reproduce the reported worker CPU usage if possible and determine whether the lrucache path accounts for it; done requires a confirmed cause and a focused regression test or documented non-bug finding.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.