Skip to content

Instantly share code, notes, and snippets.

@yogananda-muthaiah
Created September 23, 2019 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogananda-muthaiah/f7e6219627665a02c8d4aa6635827f9f to your computer and use it in GitHub Desktop.
Save yogananda-muthaiah/f7e6219627665a02c8d4aa6635827f9f to your computer and use it in GitHub Desktop.
HANA Memory Consumption
select
c.host, c.user_name, c.connection_status, c.transaction_id, s.last_executed_time,
round(s.allocated_memory_size/1024/1024/1024,2) as "Alloc Mem (GB)",
round(s.used_memory_size/1024/1024/1024,2) as "Used Mem (GB)", s.statement_string
from
m_connections c, m_prepared_statements s
where
s.connection_id = c.connection_id and c.connection_status != 'IDLE'
order by
s.allocated_memory_size desc
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment