Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up memory stress test #2027

Open
bbockelm opened this issue Feb 18, 2025 · 0 comments · May be fixed by #2028
Open

Tidy up memory stress test #2027

bbockelm opened this issue Feb 18, 2025 · 0 comments · May be fixed by #2028
Assignees
Labels
bug Something isn't working cache Issue relating to the cache component origin Issue relating to the origin component
Milestone

Comments

@bbockelm
Copy link
Collaborator

In #1942 we noticed that the longer the Linux stress test runs, the more memory it uses -- indicating a leak or memory hoarding.

Indeed, running with pprof enabled, there were two places with lots of unexpected churn in the heap:

  1. (Minor) We recompile the same User-Agent regexp for each request. This can be a global.
  2. The various origin/cache monitoring caches were filling with temporary data. These ttlcaches would eventually empty out -- but more on the order of minutes, making the test unpredictable.
@bbockelm bbockelm added bug Something isn't working cache Issue relating to the cache component origin Issue relating to the origin component labels Feb 18, 2025
@bbockelm bbockelm added this to the v7.14 milestone Feb 18, 2025
@bbockelm bbockelm self-assigned this Feb 18, 2025
@bbockelm bbockelm linked a pull request Feb 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cache Issue relating to the cache component origin Issue relating to the origin component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant