Use of @Fetch(FetchMode.SUBSELECT) results in signficant memory usage in Hibernate

Solution Verified - Updated -

Issue

  • High volume java.lang.String memory when loading associations annotated with @Fetch(FetchMode.SUBSELECT)
  • Repeated/duplicate SQL Strings are found in memory related to subselect fetch queries

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • Hibernate 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content