Skip to content

:mem_usage ignored #54

@ghost

Description

If I have a start_command such as:

#!/usr/bin/env ruby
class Job
  def run
    a = []
    while true; a << 'x' * 1024; end
  end
end

j = Job.new
j.run

The check I have configured never kills it:

process.start_command = './job.rb'
process.checks :mem_usage, below: 20.megabytes, every: 5.seconds, times: 3

The process grows until I kill it manually, well past the 20MB limit I set. Using the :include_children option had no effect.

I have this same issue on Mac OS and Linux.

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