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.

Viewing Memory Usage in SQL Server

As you can see, we have viewed the memory usage.

Good luck to everyone in business and life.

125 Views

Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!