Applications Systems
DPA crashes on large SQL server plan collection
When running index analysis on a SQL Server instance which has "big" plan XMLs can cause memory issues and DPA crashes. The meaning of "big" depends on the environment but in general if the plan is getting close to 1MB in size it can be a problem.
First published date
Last published date
Overview
See this article.
https://support.solarwinds.com/SuccessCenter/s/article/Scale-DPA-for-number-of-monitored-databases?language=en_US
The normal locations for the logs in IDC.log may not show the cause of the crash for DPA. If this is the case get from the customer the most recent .HPROF heap memory dump file.
Product section
Cause
Resolution
Workaround 1: Exclude the problematic SQL hashes with big plans from IA
steps are here. Turn off DPA table tuning advice for a table
Note: one issue with this is that new SQL items that have not been observed could still cause the issue with memory.
Workaround 2:
Decrease PLANPOLL_SQL_SERVER_PLAN_CHARACTER_LIMIT (by default it's 1MB) to limit the length of plans saved in the repository.
Steps:
- Click on options
- advanced options
- DB instance options tab
- selecting the "support options" check box in the upper right hand corner
- Select the instance in the drop down
- search for PLANPOLL_SQL_SERVER_PLAN_CHARACTER_LIMIT change this value from 100000 to 10000 or some other smaller value.
Note: even plans which are less than this limit can case problems for small (1GB of heap memory and <10 instances) environments.
Workaround 3: Disable index analysis.
Steps:
- Click on
- options
- advanced options
- DB instance options tab
- Select the instance in the drop down
- search for INDEX_ANALYSIS_ENABLED and click that text
- set this value to false.
- Restart the DPA monitoring for the instance