Skip to content

development env, high CPU usage #482

Closed
@alex29ua

Description

@alex29ua

Trying a default install of solid_queue 1.1.2, with a still empty queue DB.
Ruby 3.1.6, Rails 7.1.5.1, Ubuntu 22.04, MySQL 5.7. No Puma.

When I run rails solid_queue:start, CPU usage goes crazy. It looks like this:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   2859 user    20   0 1032208 183844  17444 R  93.7   1.1   0:22.42 solid-queue-supervisor(1.1.2): supervising 2875, 2878
   2875 user    20   0  966868 179332   8632 R  79.7   1.1   0:17.48 solid-queue-dispatcher(1.1.2): dispatching every 1 seconds
   2878 user    20   0  900884 179320   8360 R  74.7   1.1   0:16.36 solid-queue-worker(1.1.2): waiting for jobs in *
    295 mysql     20   0 2717988 290808  15516 S  38.9   1.8   0:16.64 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

and it never goes down. I tried changing the polling to 500/50 or even slower, but it doesn't change anything at all in usage.

Is it some misconfiguration issue?

Nothing suspicious in the logs as I can see.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions