Skip to content

Need advice on Solid Queue's memory usage #330

@yjchieng

Description

@yjchieng

Ruby: 3.3.4
Rails: 7.2.1
Solid Queue: 0.7.0, 0.8.2


I run a Rails App on AWS EC2 instance with 1G of memory.
I notice the solid queue process takes up 15-20% of the instance's memory, which becomes the single largest process by memory usage.


What I checked:

  1. Check memory usage by start/stop supervisorctl
    (I use it to manage my solid queue process)

stop supervisorctl - free memory 276MB
start supervisorctl - free memory 117MB

It increases 159MB

  1. Stop supervisorctl service, and run "solid_queue:start" directly
    Trying to see if this is something related to supervisor.

before solid_queue:start - free memory 252MB
after solid_queue:start - free memory 109MB

It increases 143MB

  1. Then I notice there is a latest version.
    I upgraded to 0.8.2 (was 0.7.0).

stop supervisorctl - free memory 220MB
start supervisorctl - free memory 38MB

It increases 182MB


I need some advise:

  1. Is 150-200MB the minimum requirement to run "solid_queue:start"?
  2. Is there any setting/feature that I can switch off to reduce memory usage?
  3. Is there any setting that I can limit the maximum memory usage?

And, thanks a lot for making this wonderful gem. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions