-
Notifications
You must be signed in to change notification settings - Fork 138
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 leak investigation #142
Comments
hey facing similar issues while using typhoeus. Any updates regarding the fix or any monkeypatch around it? |
Having this one as well, but with the allocated memory. This is quite notable when the response is large and is causing one of our scanner to go OOM in such cases. Using For example, with a response of 110kb:
and 1k requests with a response of 4.1kb
Notable lines of Code are the same than the first post: |
any news or fixes? |
cc @i0rek : In reference to typhoeus/typhoeus#562, I'm running object space dumps and memory profiler against the gem.
Note Ethon uses version 1.9.18 of the FFI gem which is the latest.
Here's my current setup:
Gemfile
Code
Rationale:
My own use of Typhoeus makes use of a repeated collection 10~ calls to an api hundreds of times per hour. This setup runs 11 get calls 100 times. This should be sufficient to cause a buildup of retained objects if that is indeed a problem
Preliminary Findings:
Notable Lines of Code:
https://github.com/typhoeus/ethon/blob/v0.11.0/lib/ethon/easy/operations.rb#L13
https://github.com/typhoeus/ethon/blob/v0.11.0/lib/ethon/easy/callbacks.rb#L25
https://github.com/typhoeus/ethon/blob/v0.11.0/lib/ethon/curls/options.rb#L103
https://github.com/typhoeus/ethon/blob/v0.11.0/lib/ethon/multi/operations.rb#L174
https://github.com/ffi/ffi/blob/1.9.18/lib/ffi/pointer.rb#L52
https://github.com/ffi/ffi/blob/1.9.18/lib/ffi/autopointer.rb#L87
The full report of a single run can be viewed here
This will undoubtedly require some further investigation.
The text was updated successfully, but these errors were encountered: