The SPM maintains a log in which it records information about connections, and UOW status. This log is contained in the spmlog directory which is a sub-directory of sqllib. This directory is created the first time that the SPM is started.
The SPM log consists of the following files and directories:
The SPM_LOG_FILE_SIZE database manager configuration parameter defines the number of 4K pages of each primary and secondary log file, and it can have the following values:
The log normally only uses the primary extents which are allocated when the log is created. Secondary extents are allocated on demand when log space is constrained. Secondary extents are usually deleted during normal shutdown of the logger.
The SPM log size should be large enough so that performance is not adversely affected but small enough so that space is not wasted. The size that is required depends on the number of transactions using protected conversations and how often commit/rollback is issued. The SPM takes a checkpoint every time DB2 is started and stopped and when the log is 50% full. If the log is too small, the checkpoint process may be invoked often enough to impact performance. The log is probably too small if secondary log files are allocated. If the log is too large, then space will be wasted.
You should use the default log size to begin with.
The size of the SPM log can be changed when the database manager is stopped and there are no in doubt transactions. The following procedure can be used:
db2stop
db2 update dbm configuration using spm_log_file_size 512
rm -fr spmlog
db2start
A new SPM log of the specified size will be created during DB2 start-up.