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

web server written in werkzeug has memory leak under python 11.0 #2545

Closed
ochinchina opened this issue Nov 9, 2022 · 1 comment
Closed

Comments

@ochinchina
Copy link

Description

The memory of web server written in Werkzeug will keep increasing if it is deployed to python 11.0 and tested with performance testing tool ab

How to replicate the bug:

write a simple web server with following code and start it:

from werkzeug.wrappers import Request, Response

@Request.application
def application(request):
    return Response("Hello, World!")

if __name__ == "__main__":
    from werkzeug.serving import run_simple
    run_simple("0.0.0.0", 5000, application)

test it with ab tool:

$ ab -n 10000 http://127.0.0.1:5000

after executing above command, almost the memory of the web server will increase every time and never decrease.

Expected behavior

the memory of above web server should not keep increasing.

Environment:

  • Python version: 11
  • Werkzeug version: 2.2.2
@davidism
Copy link
Member

davidism commented Nov 9, 2022

The web server is Python's http.server. Please report a bug there instead. Possibly a duplicate of python/cpython#99205.

@davidism davidism closed this as completed Nov 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants