# Obtaining locking information

Derby provides a tool to monitor and display locking information.

This tool can help you create applications that minimize deadlock. It can also help you locate the cause of deadlock when it does occur.

To diagnose locking problems, constantly monitor locking traffic by logging all deadlocks by using the `derby.locks.monitor` property, which is described in the Derby Reference Manual.

- Monitoring deadlocks
  The derby.stream.error.logSeverityLevel property determines the level of error that you are informed about.

Parent topic: Part Two: Derby Administration Guide
Related concepts
Maintaining database integrity
Checking database consistency
Backing up and restoring databases
Importing and exporting data
Replicating databases
Logging on a separate device
Reclaiming unused space