Hi,
Is there a option to tell Ruby’s GC to not consume more memory than a
given maximum (either as command line argument or at run time). Or at
least trigger the GC when this limit is reached (probably this is not
neccessary)?
Or a way to set a soft limit, which would trigger a registered method
when reached, and abort the whole process when the hard limit is
exceeded.
Well, that’s just an idea, which might or might not be useful for
OS-specific tasks. Of course I can use OS functions to limit my process’
memory consumption, but maybe some applications want to react on a soft
limit instead of getting killed by the OS.
Thoughts?
Regards,
Michael