-
Notifications
You must be signed in to change notification settings - Fork 178
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
Memory keeps increasing when user request data whose size < 1M (outbuf_overflow default ) #111
Comments
Create a PR for this. Only potential improvement I see here: Instead of Although, that would penalize all other responses to possibly slower buffers due to one response being larger than 1MB. Either way, adding the |
@bertjwregeer Thanks your confirm. A PR has been created. |
My server program runs on windows(32bit) with Waitress + Pyramid.
When I tested an http API's performance with Apache ab, and the results data's size < 1M, i found the the memory keep increasing util Memory error thrown at last.
The ab command looks like below
The issue only happen in keep alive mode and data size is smaller than 1M.
After debug, I found the cause:
I added a line code in the marked place, then the issue could be workaround, please check if it is a reasonable fix:
The text was updated successfully, but these errors were encountered: