Skip to content

deadlocks ​

Command: deadlocks
Category: Performance Monitoring
Status: Production Ready

Description ​

Analyze and detect deadlock situations in the SAP HANA database. This command identifies circular lock dependencies (deadlocks) and blocked transactions, providing recommendations for resolution.

Syntax ​

bash
hana-cli deadlocks [options]

Aliases ​

  • deadlock
  • dl

Command Diagram ​

Parameters ​

Options ​

OptionAliasTypeDefaultDescription
--limit-lnumber50Maximum number of blocked transactions 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 ​

Analyze Deadlocks ​

bash
hana-cli deadlocks --limit 50

Analyze the database for deadlocks and blocked transactions with a limit of 50 results.

Quick Deadlock Check ​

bash
hana-cli deadlocks

Perform a quick deadlock analysis with default settings.

Detailed Deadlock Analysis ​

bash
hana-cli deadlocks --limit 100

Perform a comprehensive deadlock analysis with up to 100 blocked transactions displayed.

See the Commands Reference for other commands in this category.

See Also ​