internal package Foswiki::Engine::FastCGI

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

internal package Foswiki::Engine::FastCGI

Class that implements FastCGI execution mode.

Refer to Foswiki::Engine documentation for explanation about methos below.

Configuration

MaxRequrests limits the number of requests one backend process is allowed to serve before it will terminate and respawn a substitute. This can be used to fight back memory leaks in the application where the processes memory consumption grows over time. Default is 100 requests. Lower this limit when processes tend to grow too fast over time exceeding your server's memory capacities. A negative value disables this heuristics. Reasonable values are roughly 10 or 20 depending on the profile of additional plugins and libraries.

Note also, that mod_fcgid has got similar configuration parameters. Alas, this project is abandoned at the time of this writing. mod_fastcgi on the other hand is missing this option, as far as I can say.

The actual value of MaxRequest also depends on the maximum number of parallel threads and fcgi backend processes that are allowed to be spawned by the web server.

StaticMethod detach()

Daemonize process. Currently not portable…

Topic revision: r1 - 27 Feb 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback