JBoss - Java heap retention in T4CPreparedStatements

Solution Verified - Updated -

Issue

  • "java.lang.OutOfMemoryError: Java heap space" errors are received because the heap is consumed by oracle.jdbc.driver.T4CPreparedStatement.
  • The T4CPreparedStatements are abnormally large (several megabytes each) because of a large char[] they own called defineChars.  However, this defineChars char[] appears to only contain white space.

Environment

  • JBoss Enterprise Application Platform
  • Oracle

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