FCGI::...rained(3pm)
πΈ FCGI::Engine::ProcManager::Constrained πΈ
okay so bestie, you're reading the manual page for FCGI::Engine::ProcManager::Constrained β it lives in the User Contributed Perl Documentation section, section 3pm if you're keeping score. It's giving process manager but make it responsible. π
β¨ NAME β¨
FCGI::Engine::ProcManager::Constrained β FastCGI applications with memory and number of request limits. π
π¦ DESCRIPTION π¦
So this is a constrained process manager. What does that mean for you, bestie? It means it restarts child workers after a number of requests, or if they use too much memory. Like a bouncer for your workers, but the bouncer is a memory limit. π
Most of the memory usage code is stolen from Apache2::SizeLimit. Not me saying "stolen", that's literally what the docs say. Respect the source. π
π§ 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. Live forever, king. π
π 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. Blissful ignorance, honestly iconic.
π max_process_size
The maximum size of the process (both shared and unshared memory) in KB. π
0 (the default) means unlimited. No cap. Literally, no cap. π§’
π 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. π
psst β this one has no default listed in the docs, so don't go assuming anything, bestie. π«Ά
π METHODS π
Quote, unquote: "I will fill this in more eventually, but for now if you really wanna know, read the source." π
And honestly? Respect. The source is right there. Go read it. main character energy. β¨
π SEE ALSO π
FCGI::Engine::ProcManagerApache2::SizeLimit
π BUGS π
All complex software has bugs lurking in it, and this module is no exception. Not the bugs lurking, the audacity. π
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.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
and that's the whole page, bestie β¨ this was shipped as perl v5.36.0 on 2022-12-10 β slay, go write some constrained FastCGI workers, ily, bye ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libfcgi-engine-perl 0.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libfcgi-engine-perl 0.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libfcgi-engine-perl 0.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libfcgi-engine-perl 0.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libfcgi-engine-perl 0.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms