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

oha Potential Memory Leak #475

Closed
nanqic opened this issue Apr 30, 2024 · 2 comments
Closed

oha Potential Memory Leak #475

nanqic opened this issue Apr 30, 2024 · 2 comments

Comments

@nanqic
Copy link

nanqic commented Apr 30, 2024

Description:
While running 'oha' continuously, it has been observed that the memory usage keeps increasing over time. Initially, it starts at 2%, but after 6 hours it rises to 16%, and after a day it reaches 50%.

Command executed:
nohup oha -c 500 'http://10.0.10.11/' -z 99h -m HEAD -t 30s --no-tui >>.logs/oha.log &

thanks.

@hatoo
Copy link
Owner

hatoo commented Apr 30, 2024

Currently, oha is collecting ALL data of each request.
So memory usage increases proportionally to the number of requests.

It is potentially solved by using a smarter algorithm such as hdrhistogram. But not yet implemented.

#364

@nanqic
Copy link
Author

nanqic commented Apr 30, 2024

It will be helpful, thanks for this project!

@nanqic nanqic closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants