Heap is fully consumed by BouncyCastle objects

Solution Verified - Updated -

Issue

  • Out of memory errors are seen in JBoss instances.
  • Examining the heap dump shows the majority of memory is consumed by BouncyCastle:
Class Name                                        | Objects | Shallow Heap | Retained Heap
-------------------------------------------------------------------------------------------
org.bouncycastle.jce.provider.BouncyCastleProvider|   5,440 |      522,240 | 1,601,020,200
-------------------------------------------------------------------------------------------

Environment

  • Red Hat JBoss Enterprise Application Platform 6
  • BouncyCastle 1.47

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.