Sun GlassFish Enterprise Server 2.1 Troubleshooting Guide

Solution 2: Increase the number of locks

Use hadbm set NumberOfLocks= to increase the number of locks.