Forum OpenACS Q&A: excessive time taken by proc
Can any body explain this message in the server log file:
Warning: sched: excessive time taken by proc 10
When and why this happens?
You generally do not want to run slow jobs in the ns_sched thread, as no other ns_sched jobs can start until that one finishes. Instead, you want to use tell ns_sched to run the job in a newly created thread of its own where it can take as long as it wants without blocking ns_sched from starting new jobs. Thus the default warning "excessive time taken" warning message above.
$ find . -name "*.c" -print | xargs grep 'excessive time taken' ./nsd/sched.c: "excessive time taken by proc %d (%d seconds)",