Changes between Version 7 and Version 8 of ServerDebug
- Timestamp:
- Mar 28, 2012, 2:20:31 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerDebug
v7 v8 6 6 7 7 Each server component (scheduler, feeder, transitioner, etc.) has its own log file. 8 Most error conditions are reported in the log files; 9 make sure you know where they are. 10 If you're interested in the history of a particular WU or result, 8 These files are in the '''log_HOSTNAME''' subdirectory of the project directory. 9 Most error conditions are reported in the log files. 10 11 If you're interested in the history of a particular job, 11 12 grep for `WU#12345` or `RESULT#12345` (where 12345 represents the ID) in the log files. 12 13 The [HtmlOps html/ops pages] also provide an interface for this. … … 16 17 * Scheduler: set the desired [ProjectOptions#Scheduler:logging logging options] 17 18 * File upload handler: set [ProjectOptions#misc fuh_debug_level]. 18 * Other components: pass "-d N" (1=least verbose, 3=most verbose)19 * Other components: pass "-d N" (1=least verbose, 4=most verbose) 19 20 20 21 == Debugging the scheduler == … … 32 33 {{{ 33 34 gdb cgi 34 (set a breakpoint )35 (set a breakpoint if desired) 35 36 r < scheduler_request_X.xml 36 37 }}} … … 41 42 42 43 This is useful for figuring out why your project is generating 'no work available' messages. 44 43 45 As an alternative to this, edit `sched/handle_request.cpp`, 44 46 and put a call to `debug_sched("debug_sched");` just before `sreply.write(fout, sreq);`. … … 63 65 == Database query tracing == 64 66 65 If you run server components with debug level 4,67 If you run server components with '''-d 4''', 66 68 their database queries will be logged. 67 69 This is verbose but extremely useful for tracking down database-level problems.