---
name: "FCGI::Engine::ProcManager::Constrained"
section: "3pm"
platform: "linux"
package: "libfcgi-engine-perl"
version: "0.22-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/FCGI::Engine::ProcManager::Constrained"
---

# FCGI::Engine::ProcManager::Constrained(3pm)

FastCGI applications with memory and number of request limits.

## NAME

FCGI::Engine::ProcManager::Constrained - FastCGI applications with memory and number of request limits.

## DESCRIPTION

A constrained process manager that restarts child workers after a number of requests or if they use too much memory.

Most of the memory usage code is stolen from Apache2::SizeLimit.

## ATTRIBUTES

### max\_requests

The number of requests a child process can handle before being terminated.

0 (the default) means let child processes do an infinite number of requests

### sizecheck\_num\_requests

The number of requests between a check on the process size taking place.

0 (the default) means never attempt to check the process size.

### max\_process\_size

The maximum size of the process (both shared and unshared memory) in KB.

0 (the default) means unlimited.

### max\_unshared\_size

The maximum amount of memory in KB this process can have that isn't Copy-On-Write shared with other processes.

0 (the default) means unlimited.

### min\_share\_size

The minimum amount of memory in KB this process can have Copy-On-Write from it's parent process before it is terminate.

## METHODS

I will fill this in more eventually, but for now if you really wanna know, read the source.

## SEE ALSO

- FCGI::Engine::ProcManager

  - Apache2::SizeLimit.

  ## BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

## AUTHOR

Tomas Doran \<bobtfish@bobtfish.net\>

## COPYRIGHT AND LICENSE

Code sections copied from Apache2::SizeLimit are Copyright their respective authors.

Copyright 2007-2010 by Infinity Interactive, Inc.

\<http://www.iinteractive.com\>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
