How to Identify Bottlenecks in the BAM Primary Import Database
To identify bottlenecks in the Business Activity Monitoring (BAM) database, perform the following steps:
Ensure that the Active Instances count is not climbing.
Ensure that the SQL-Agent Service is running.
If OLAP Analysis is configured, ensure that the BAM_AN_<activityname> job is running at periodic intervals.
Ensure that BAM_DM_<activityname> (Data Maintenance) job is scheduled to run at periodic intervals.
Note
In high usage scenarios BAM database activity can impact the performance of other BizTalk Server databases, which will affect overall BizTalk Server performance. In this case consider taking the following actions:
- Consider decreasing the duration of all BAM activities from the default value (6 months) to 1 month or less. This will reduce the time period for which BAM data is maintained in the BAMPrimaryImport database before being archived. Use the BAM Management Utility
set-activitywindow
command to modify the duration of BAM activities. For more information about the BAM Management Utility activity management commands see Activity Management Commands (https://go.microsoft.com/fwlink/?LinkId=210417).- Move the BAM Archive database to an instance of SQL Server that does not host any BizTalk MessageBox databases. This will prevent these databases from competing for resources and improve overall performance.
- Consider decreasing the duration of all BAM activities from the default value (6 months) to 1 month or less. This will reduce the time period for which BAM data is maintained in the BAMPrimaryImport database before being archived. Use the BAM Management Utility
Use a dedicated host for tracking and measure the Host Queue Length performance counter when under load.
Check the Spool Table size performance counter for an increasing trend over time.
Check the Archive/Purge job execution duration for long execution times.
Check disk responsiveness (Disk Seconds per Read/Write performance counter) on the disk hosting the BizTalk Tracking database.