Difference between revisions of "Conf/Parameters/schedmaxelapsed"

From AOLserver Wiki
Jump to navigation Jump to search
(Created page with '= ns_param home = part of ns/parameters Write out a warning to the server log when a scheduled task takes a long time. ns_param schedmaxelapsed 2 D…')
 
 
Line 1: Line 1:
= ns_param home =
+
= ns_param schedmaxelapsed =
  
 
part of [[Conf/Parameters|ns/parameters]]
 
part of [[Conf/Parameters|ns/parameters]]

Latest revision as of 21:22, 19 December 2011

ns_param schedmaxelapsed

part of ns/parameters

Write out a warning to the server log when a scheduled task takes a long time.

 ns_param   schedmaxelapsed 2   

Default defined in nsconf.c

 #define SCHED_MAXELAPSED	2

File sched.c

 if (elapsed > nsconf.sched.maxelapsed) {
    Ns_Log(Warning, "sched: "
       "excessive time taken by proc %d (%d seconds)",
       ePtr->id, elapsed);
 }