First occurrence data capture (FODC) collects diagnostic information about your DB2® data server when a problem occurs. In Version 9.7 Fix Pack 5 and later fix packs, FODC supports additional manual collection types and supports triggering automatic diagnostic data collection when a user-defined threshold condition is exceeded.
You can invoke FODC manually with the db2fodc command whenever you suspect a problem, or FODC can be invoked automatically whenever a predetermined scenario is detected. For manual FODC, the -hang and -perf parameters, which have been available since before Fix Pack 5, collect end-to-end diagnostic data. However, these parameters often collect more diagnostic data than is required for troubleshooting, at the cost of additional processor usage and disk space requirements. On a system that is already resource constrained, any additional demand on resources might not be acceptable, even if it is required to collect diagnostic data. The following new FODC collection types, which apply to more specific performance problem scenarios, help address the problem of additional overhead:
With the new -detect parameter for the db2fodc command, you can now specify your own threshold rule for a specific condition and trigger diagnostic data collection when the condition is exceeded. The -detect parameter supports detecting trigger conditions one or several times, at a regular interval that you specify. If the number of times that the threshold condition is detected matches the specified value, diagnostic data collection is triggered. Other options for detecting threshold conditions are also available, such as how many iterations of threshold detection and diagnostic data collection are performed, and how long threshold detection continues.
You can also configure the new user-defined thresholds to only detect and a specific problem condition but not collect diagnostic information. If a problem condition is detected, only a log record is added to the db2diag log files.