openresty / openresty/lua-nginx-module

lj_str_new high CPU usague when performance testing

Open
#2,015 2 comments 0 reactions 0 assignees View on GitHub

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

  1. 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

  2. lj_str_new high cpu usague when access_by_lua of ngx_lua
    ME1645502052074

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.