Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bc2b5fe6

Von Sven Schöling vor mehr als 5 Jahren hinzugefügt

  • ID bc2b5fe6f8ceae8fd4135c0e44a5329cc22edfca
  • Vorgänger 499022da
  • Nachfolger 253d7562

task_server.pl: Speicherlimit beachten

(cherry picked from commit 7fcf2ca9960d160419aa89824cb4fb3a25188ad9)

Unterschiede anzeigen:

config/kivitendo.conf.default
# processes). If either limit is reached at the end of the request
# then the kivitendo process will exit.
#
# This only makes sense when running under FCGI. The FCGI manager will
# then automatically start a new process.
# This only applies for processes under FCGI and the task manager.
# For CGI configurations the process will be terminated after each request
# regardless of this setting.
#
# Note: this will only terminate processes with too high memory consumption. It
# is assumed that an external managing service will start new instances. For
# FCGI this will usually be apache or the wrapper scripts for nginx, for the
# task server this will have to be the system manager.
#
# Numbers can be postfixed with KB, MB, GB. If no number is given or
# the number is 0 then no checking will be performed.
scripts/task_server.pl
use SL::DBUpgrade2;
use SL::DB::AuthClient;
use SL::DB::BackgroundJob;
use SL::Dispatcher;
use SL::BackgroundJob::ALL;
use SL::Form;
use SL::Helper::DateTime;
......
clean_before_sleeping();
if (SL::Dispatcher::_memory_usage_is_too_high()) {
return;
}
my $seconds = 60 - (localtime)[0];
if (!eval {
$SIG{'ALRM'} = sub {

Auch abrufbar als: Unified diff