Are Lucee's custom class loaders single-threaded or multithreaded?

Hi,
There’s been a development. I wish to share what I’ve found after analyzing the thread dumps.

Our CPU problems are apparently caused by

Blockquote
Waiting on lock <0x754d0045> (a org.hibernate.boot.registry.classloading.internal.AggregatedClassLoader)”.

Thread dumps show dozens of request threads being blocked by the AggregatedClassLoader. See attached.

This happens invariably when the application is under load. The “waiting on lock” makes you wonder whether the AggregatedClassLoader is single-threaded. I would be grateful if you could suggest how to solve this.

Lucee 5.3.9.163-SNAPSHOT on CommandBox
Hibernate 5.4.29.15-BETA
Windows Server 2016

Thread Dump - sm1-3.txt (446.7 KB)