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

High memory usage over time when using pypy (~1MB per request) #1309

Open
andywill222 opened this issue Jan 15, 2023 · 1 comment
Open

High memory usage over time when using pypy (~1MB per request) #1309

andywill222 opened this issue Jan 15, 2023 · 1 comment
Labels
Bug Bug report in proxy server Good First Issue Issues for new contributors to pick-up

Comments

@andywill222
Copy link

Hello everyone,

I'm running the Proxy.py with pypy3 and observing that for every proxy request made through the service, around 1MB of memory is being added to the overall usage and it continues to increase over time.

When running the script using the python3 interpreter, the memory usage remains stable.

btw, it happen even when running the proxy service like this without any plugins or logics within.

with proxy.Proxy(
    enable_web_server=False,
    port=8081,
) as _:
    proxy.sleep_loop()

Has anyone else encountered this issue before and have any suggestions for resolving it?
thanks you.

@abhinavsingh
Copy link
Owner

@andywill222 Thank you for reporting. I haven't really tested this in pypy3 environments. FWIW, I have proxy.py server running in production with an uptime of months and years. And till date we haven't observed proxy.py leaking memory. Overtime, memory consumption by proxy.py remains constant.

@abhinavsingh abhinavsingh added Bug Bug report in proxy server Good First Issue Issues for new contributors to pick-up labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug report in proxy server Good First Issue Issues for new contributors to pick-up
Projects
None yet
Development

No branches or pull requests

2 participants