Linux-UNIX: Configure S-TAP for Db2 WPAR
Learn to configure S-TAP® for Db2 WPAR
About this task
There are two methods of determining the shmem parameters:
- If your output to db2 get dbm cfg | grep ASLHEAPSZ is in English, use the script find_db2_shmem_parameters.sh ( 1). Its output lists the Db2 shared memory parameters defined in the Inspection Engines. You can run it from any directory. It requires the db2 instance name as parameter.
- If your output to db2 get dbm cfg | grep ASLHEAPSZ is not in English, compute the client I/O area offsest (step 2), then find the Db2 shared memory size (step 3).
When ktap_fast_shmem set to 1, if there are multiple Db2 instances that are configured for a single WPAR in guard_tap.ini file and they have the same db2_shmem_size, then the db2_fix_pack_adjustment and db2_shmem_client_position are taken from the first Db2 section for that WPAR. So in cases where there are multiple Db2 instances running on the WPAR:
- If all Db2 instances have the same db2_shmem_size, db2_fix_pack_adjustment, and db2_shmem_client_position, the packets from all instances are collected even if only one instance is configured.
- If all Db2 instances have the same db2_shmem_size, but different db2_fix_pack_adjustment or db2_shmem_client_position, then only packets from the first configured Db2 instance are collected.