You can use the db2fodc command to monitor HADR congestion. If congestion is detected, HADR diagnostic data collection is triggered automatically to aid in the problem determination process.
db2fodc -hadr -db dbname -detect
The
command starts a process which monitors the HADR database to see if
there is enough congestion to invoke data collection. Once there is
enough congestion, the db2cos_hadr (db2doc_hadr.bat on Windows operating systems) script
is invoked and diagnostic data collection occurs. The process ends
once diagnostic data collection completes. If there is not enough
congestion ever detected, the monitor runs until the detection duration
exceeds the duration parameter value, or the
user terminates it by issuing the following command:db2fodc -detect off
When monitoring HADR congestion without specifying any -detect suboptions, default settings are being applied. The settings are as follows:
db2fodc -hadr -db dbname -detect
db2fodc -hadr -db dbname -detect iteration=1 sleeptime=0 triggercount=10 interval=30