Saxon 9.4 has a couple of memory leak issues when used in a Tomcat container. The issue is the use of the ThreadLocal's in the following classes.


Basically the thread locals are created by the webapp classloader, which means that they hold a reference to that classloader, so it cannot be released.

We need someway of clearing these. I couldn't see when a Configuration is created / freed.