Viewing Memory Usage in SQL Server
Hello everyone,
In this article, I will try to give information about viewing Memory usage in SQL Server.
In SQL Server you may want to view Memory usage in some cases.
You can easily do this using the code below.
select (physical_memory_in_use_kb / 1024) Phy_Memory_usedby_Sqlserver_MB,
(locked_page_allocations_kb / 1024) Locked_pages_used_Sqlserver_MB,
(virtual_address_space_committed_kb / 1024) Total_Memory_UsedBySQLServer_MB,
process_physical_memory_low,
process_virtual_memory_low
from sys.dm_os_process_memory
When you run the above code, you will see a result similar to the one below.
As you can see, we have viewed the memory usage.
Good luck to everyone in business and life.