openresty / openresty/lua-nginx-module
lj_str_new high CPU usague when performance testing
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
I found lj_str_new high cpu usague
-
env
OpenResty-1.15.8,OS:CentOS6,CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz, 15 worker
http request 8k ~10k,10w qps -
lj_str_new high cpu usague when access_by_lua of ngx_lua

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the reported OpenResty and ngx_lua access_by_lua workload, then inspect the CPU profile around lj_str_new. Done means explaining the high CPU usage with a reproducible finding and documenting the affected configuration or workload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100