Skip to content

memoryLeaks ​

Command: memoryLeaks
Category: Performance Monitoring
Status: Production Ready

Description ​

Detect potential memory leaks in the SAP HANA database. This command analyzes service memory usage and heap memory objects to identify services exceeding memory thresholds and potential leak indicators.

Syntax ​

bash
hana-cli memoryLeaks [options]

Aliases ​

  • memleak
  • ml

Command Diagram ​

Parameters ​

Options ​

OptionAliasTypeDefaultDescription
--component-cstring-Component name to filter memory objects (optional)
--threshold-tnumber10Memory usage threshold percentage to flag services
--limit-lnumber50Maximum number of memory objects to display

Connection Parameters ​

OptionAliasTypeDefaultDescription
--admin-abooleanfalseConnect via admin (default-env-admin.json)
--conn-string-Connection filename to override default-env.json

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable verbose output
--debug-dbooleanfalseDebug hana-cli itself by adding output of intermediate details

Examples ​

Detect Memory Leaks with High Threshold ​

bash
hana-cli memoryLeaks --threshold 25 --limit 100

Detect services using more than 25% of their allocated heap memory, showing up to 100 memory objects.

Analyze Specific Component ​

bash
hana-cli memoryLeaks --component indexserver --threshold 15

Analyze memory usage specifically for the indexserver component with a 15% threshold.

Quick Memory Leak Check ​

bash
hana-cli memoryLeaks

Perform a memory leak check with default settings (10% threshold, 50 objects).

See the Commands Reference for other commands in this category.

See Also ​