Keywords: Locks, monitoring, Deadlock, tools to help minimize

# 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.

- 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
Checking database consistency
Backing up and restoring databases
Replicating databases
Logging on a separate device
Reclaiming unused space