Hello,
I am using following queries to check memory consumption of our HANA server. But, Total memory used is showing up way higher than the sum of Code_Stack + Columner Tables + Row Tables. Am I missing anything else in this equation?
--Total Memory Used (Result 104 GB, which is same as SAP HANA DB memory used on overview tab)
SELECT round(sum(TOTAL_MEMORY_USED_SIZE/1024/1024/1024)) AS "Total Used GB"
FROM SYS.M_SERVICE_MEMORY;
-- Code and Stack Size (Result 4 GB)
SELECT round(sum(CODE_SIZE+STACK_SIZE)/1024/1024/1024) AS "Code+stack GB"
FROM SYS.M_SERVICE_MEMORY;
-- Memory Consumption of All Columner Tables (Result 13 GB)
SELECT round(sum(MEMORY_SIZE_IN_TOTAL)/1024/1024/1024) AS "Column Tables GB"
FROM M_CS_TABLES;
-- Memory Consumption of All Row Tables (Result 3 GB)
SELECT round(sum(USED_FIXED_PART_SIZE + USED_VARIABLE_PART_SIZE)/1024/1024/1024) AS "Row Tables GB"
FROM M_RS_TABLES;
Thanks!