Application classloaders leaked by com.sun.el.parser.ELParser$LookaheadSuccess

Solution Unverified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Issue

  • We're experiencing a metaspace leak across application redeployments. A heap dump shows classloaders persisted by references from com.sun.el.parser.ELParser$LookaheadSuccess static backtrace field:
Class Name                                                                                                                | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[17] class com.sun.el.parser.ELParser @ 0xb18aae88                                                                        |            3 |           16 |               264 |         2,448
'- jj_ls com.sun.el.parser.ELParser$LookaheadSuccess @ 0xb18aaf00                                                         |            3 |           32 |               264 |         1,984
   '- backtrace java.lang.Object[5] @ 0xb18aaf20                                                                          |            3 |           40 |               264 |         1,952
      '- [4] java.lang.Object[5] @ 0xb18aaf48                                                                             |            3 |           40 |               264 |         1,464
         '- [2] java.lang.Object[32] @ 0xb18ab390                                                                         |            3 |          144 |               264 |           144
            '- [15] class org.primefaces.webapp.filter.FileUploadFilter @ 0xb00a0078                                      |            3 |           16 |               264 |            80

Resolution

  • Upgrade to EAP 7.4.2+

Root Cause

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.