You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently sp_BlitzFirst collects memory grant information and you can visibly see the % or workspace currently in use however I think it would be great to see if there are single queries running with an individual grant of x% , so 15% as a default but have this as a parameter so that it can be changed
Describe the solution you'd like
Add a new parameter for controlling the memory grant %, lets say @MemoryGrantThresholdPct
When you run sp_Blitzfirst go and get the Max workspace variable value (@MaxWorkspace) from CheckId 40 and use this to compare against the currently running queries with outstanding memory grants, if one or more of these single queries have a grant exceeding your Threshold then pop a warning in the output at level 100? Include the query plan in there too to help investigation and for added benefit if logging sp_BlitzFirst to a table
Are you ready to build the code for the feature?
Yep ready to give this a go!
The text was updated successfully, but these errors were encountered:
BrentOzarULTD#2505 - Added a new check (CheckID 46) to check for running queries with a memory grant greater than x% with x being a new parameter @MemoryGrantThresholdPct which defaults to 15.00.
If a query is identified whilst running sp_BlitzFirst you will get a row per query with priority 100 which includes the Grant size, Percent , sql handle, sql text and xml query plan.
Is your feature request related to a problem? Please describe.
Currently sp_BlitzFirst collects memory grant information and you can visibly see the % or workspace currently in use however I think it would be great to see if there are single queries running with an individual grant of x% , so 15% as a default but have this as a parameter so that it can be changed
Describe the solution you'd like
Add a new parameter for controlling the memory grant %, lets say @MemoryGrantThresholdPct
When you run sp_Blitzfirst go and get the Max workspace variable value (@MaxWorkspace) from CheckId 40 and use this to compare against the currently running queries with outstanding memory grants, if one or more of these single queries have a grant exceeding your Threshold then pop a warning in the output at level 100? Include the query plan in there too to help investigation and for added benefit if logging sp_BlitzFirst to a table
Are you ready to build the code for the feature?
Yep ready to give this a go!
The text was updated successfully, but these errors were encountered: