Is there an OS-agnostic Perl module that puts a hard limit on the amount of virtual memory a process can use; e.g. so that the process will be killed if it starts eating up too much memory?
I see Apache::SizeLimit, which is obviously Apache specific; and Process::MaxSize, which requires you to call a check function (and also has a hacky way of checking process size).
I've used ulimit in the past, but it requires you (AFAIK) to have an extra launching process, and it is OS-specific.
Thanks, Jon