Skip to content

Memory usage bump after upgrading to the latest version #1835

Closed
@filipebarros

Description

@filipebarros

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:

require 'grape'

class API < Grape::API
  get :heartbeat do
    'OK'
  end
end

run API

Here's the memory usage with both 1.2.1 version and 1.1.0 at the start of the process and after 1000 and 10000 calls:

1.2.1 - 1000 1.1.0 - 1000 1.2.1 - 10000 1.1.0 - 10000
Start 25.4Mb 26.4Mb 25.2Mb 25.1Mb
Finish 45.0Mb 29.0Mb 198.5Mb 29.7Mb

Here's the script I used to run the API calls.

for run in {1..1000} do
  curl -s "http://localhost:9292/heartbeat"
done

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions