Conf/Parameters/schedmaxelapsed

From AOLserver Wiki
Revision as of 21:22, 19 December 2011 by Bernhard (talk | contribs) (→‎ns_param home)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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);
 }