Project

General

Profile

Actions

Bug #12771

closed

Allow setting max memory consumption

Added by grosser (Michael Grosser) over 7 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:77297]

Description

I want to limit a ruby process to 100mb ... if the limit is reached it should run GC

Already tried various RUBY_ settings but nothing seems to have that effect ... I don't want to sprinkle GC.start all over my codebase :(

Updated by shyouhei (Shyouhei Urabe) over 7 years ago

  • Status changed from Open to Feedback

Do you mean Process::setrlimit(Process::RLIMIT_AS, 100 * 1024 * 1024) does not work for you? If that is the case please explain why?

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0