Changes between Version 5 and Version 6 of ServerDebug
- Timestamp:
- Jan 17, 2012, 6:00:14 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerDebug
v5 v6 41 41 42 42 This is useful for figuring out why your project is generating 'no work available' messages. 43 As an alternative to this, edit ` handle_request.C`,44 and put a call to `debug_sched( sreq, sreply, "../debug_sched")` just before `sreply.write(fout)`.43 As an alternative to this, edit `sched/handle_request.cpp`, 44 and put a call to `debug_sched("debug_sched");` just before `sreply.write(fout, sreq);`. 45 45 Then, after recompiling, touch a file called 'debug_sched' in the project root directory. 46 46 This will cause transcripts of all subsequent scheduler requests and replies 47 47 to be written to the `cgi-bin/` directory with separate small files for each request. 48 The file names are `sched_request_H_R` where H=hostid and R=rpc sequence number.48 The file names are `sched_request_H_R` and `sched_reply_H_R` where H=hostid and R=rpc sequence number. 49 49 This can be turned off by deleting the 'debug_sched' file. 50 50 51 To get core files for scheduler crashes, put the following line in sched/main.C, and recompile:51 To get core files for scheduler crashes, uncomment the following line in sched/sched_main.cpp, and recompile: 52 52 {{{ 53 53 #define DUMP_CORE_ON_SEGV 1