Mojolicious::Plugin::SizeLimit Build Status

This module allows you to terminate Hypnotoad worker processes if they grow too large. You can make the decision to end a process based on its overall size, by setting a minimum limit on shared memory, or a maximum on unshared memory.

This module is highly platform dependent, it is possible that this module simply does not support your platform.

Features

Installation

Stable releases are available from the CPAN.

You can use cpanm to install from the command line:

$ cpanm Mojolicious::Plugin::SizeLimit

Usage

use Mojolicious::Lite;

plugin 'SizeLimit',
    max_unshared_size => 262_144,   # 256 M
    check_interval => 100;

...

app->start;

More Information

Please look at the manpage.