SAP HANA SQL语句内存使用限制策略

为了保证系统资源使用的公平性,避免单一进程耗尽系统资源,保证系统稳定、持续可用,对HANA资源的使用做限制。

理论知识

By default , single SAP HANA query can consume 100% of available memory. If you want to safeguard your system from uncontrolled expensive queries then it’s a good idea to limit the memory consumption of single statement per host.

Starting HANA SP08 SAP introduced parameter statement_memory_limit to restrict the query at predefined memory consumption limit.

Queries will be aborted with OOM dump (“compositelimit_oom OR [MEMORY_LIMIT_VIOLATION] “) ,  if it reaches the limit specified by this parameter – statement_memory_limit .

Requirement: You want to limit query from consuming limitless HANA memory.

Prerequisite:  You need database user with INIFILE

剩余80%内容付费后可查看

如若转载,请注明出处:https://www.gavindong.com/5720.html

微信沟通