-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 usage bump after upgrading to the latest version #1835
Comments
We are experiencing this as well, reverting to |
Interesting, I wouldn't have thought the changes I've implemented should have impacted the memory consumption other than ever so slightly at load time. I'll take a look into this somewhere between late today and early tomorrow |
oh wow. I think I've found the issue. This is unique to mounting the API directly on Rack I believe. Thanks for realizing this! |
As a colour note, on my local testing this fix puts the memory footprint of |
@nijikon @filipebarros Please do try the code from #1836, which I just merged on master, and confirm whether the problem is fixed? |
Setup: # configu.ru
require 'grape'
class API < Grape::API
get :heartbeat do
'OK'
end
end
run API tab 1:
Results:
EDIT: |
Also, benchmarking the time for 1,000 calls gives me similar results for both |
Good. I say cut a release. |
Agreed with the release. Could you look at #1833 before it please? 👍 |
Tested against |
OK, I'll close this issue and will open another one for the release of 1.2.2. Thanks again 😄 |
@dblock |
Thanks for the release 👍 |
After upgrading to the latest version I've noticed the memory consumption keeps going up so I created a dummy application to check if the same happened with the previous version:
Here's the memory usage with both
1.2.1
version and1.1.0
at the start of the process and after 1000 and 10000 calls:Here's the script I used to run the API calls.
The text was updated successfully, but these errors were encountered: