Skip to content
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

:mem_usage ignored #54

Open
ghost opened this issue Mar 28, 2018 · 2 comments
Open

:mem_usage ignored #54

ghost opened this issue Mar 28, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 28, 2018

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.

@mikegee
Copy link

mikegee commented Mar 29, 2018

I've seen Bluepill kill Sidekiq worker processes for being over the memory limit. So maybe this worked in some previous versions, then broke? If so, git bisect could help narrow down the culprit.

@ghost
Copy link
Author

ghost commented Mar 29, 2018

I just spent a couple of hours testing the 0.0.66 version from 2013. I get the exact same behavior. I set a limit of 25 MBs and then I see the process continue to grow well past that limit. Ten minutes later the memory usage is past a GB and bluepill still hasn't killed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant