Hi,
we use NAV 2013 R2 in our organization. we have observed that some of the users run nav reports/searches/forms that consumes a lot of sql server memory resources... one of our developer had created a query below that shows us the usage of memory by session ID but the script doesn't tell us who's running them or which reports are causing this issue.
SELECT mg.requested_memory_kb,mg.granted_memory_kb, mg.session_id, t.text, qp.query_plan
FROM sys.dm_exec_query_memory_grants AS mg
CROSS APPLY sys.dm_exec_sql_text(mg.sql_handle) AS t
CROSS APPLY sys.dm_exec_query_plan(mg.plan_handle) AS qp
ORDER BY 1 DESC
is there a way to find out the memory usage by report (nav section) and by user ID?
Thanks in advance
*This post is locked for comments