Hibernate 5 memory leak

We are using hibernate for ORM framework in our product.
We have upgraded to hibernate-5 and using hibernate-core-5.4.27.Final.jar.
We are getting heap generated up to 12G as compared to earlier 3g.

The TypeConfigurationRegistry class was dropped in 5.5, so maybe just try updating to the latest version.