Steps to reproduce:
1. Setup Artifactory with MySQL
2. Upload tens of thousands of artifacts to Artifactory.
3. Delete these artifacts to Trashcan
4. Decrease Artifactory memory.
4. Once the "Retention Period" set for the Trashcan is over, run GC.
Artifactory will become unavailable.
**Thread dumps attached