Name

PIDcheck — check running Interchange processes during the HouseKeeping routine

SYNOPSIS

0 | interval

DESCRIPTION

If set to a positive non-zero value, enables check of running Interchange processes during the HouseKeeping routine.

If a process has been running (or is hung) for longer than the specified interval, then kill -9 will be issued and the server count decremented.

Interchange also logs this incident in the global error log file. The log line looks like this example: hammered PID 21429 running 312 seconds.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Setting PIDcheck

PIDcheck 300

Example: Setting PIDcheck in time interval other than seconds

PIDcheck 5 minutes

NOTES

If you have long-running database builds, this directive needs to stay disabled, or set to a high value (of perhaps 600, or 10 minutes), or use the bin/offline script.

AVAILABILITY

PIDcheck is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 491

['PIDcheck',     'time',          '0'],

Source: lib/Vend/Config.pm
Line 4096 (context shows lines 4096-4108)

sub parse_time {
my($var, $value) = @_;
my($n);

return $value unless $value;

#  $C->{Source}->{$var} = [$value];

$n = time_to_seconds($value);
config_error("Bad time format ('$value') in the $var directive\n")
unless defined $n;
$n;
}

AUTHORS

Interchange Development Group

SEE ALSO

HouseKeeping(7ic), PIDfile(7ic), MaxRequestsPerChild(7ic), MaxServers(7ic), ChildLife(7ic)

DocBook! Interchange!