EAP 7.0.0 Management API Memory Leak

Solution Verified - Updated -

Issue

  • Using JBoss ON to monitor EAP results in OutOfMemoryError: Direct buffer memory
  • Host controller or standalone log includes the following error message:

    ERROR [io.undertow.request] (Host Controller Service Threads - 54116) UT005071: Undertow request failed HttpServerExchange{ POST /management request {...} response {...}}: java.lang.OutOfMemoryError: Direct buffer memory
    
  • Heavy use of the management API causes slow memory leak
  • Message log or journal indicates JVM used all physical and virtual memory and then invoked oom-killer

    kernel: java invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=0
    kernel: java cpuset=/ mems_allowed=0
    ...
    kernel: 1309027 total pagecache pages
    kernel: 43956 pages in swap cache
    kernel: Swap cache stats: add 6827545, delete 6783589, find 7114178/8160503
    kernel: Free swap  = 0kB
    kernel: Total swap = 8069116kB
    kernel: 4113573 pages RAM
    kernel: 0 pages HighMem/MovableOnly
    kernel: 84944 pages reserved
    kernel: 0 pages cma reserved
    kernel: 0 pages hwpoisoned
    
  • Host machine stops responding due to insufficient system memory and requires reboot

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.0.0
  • Use of the EAP management API secured with SSL -- For example, using:
    • JBoss EAP 7 management plug-in for JBoss ON 3.3
    • Making GET or POST requests to the HTTP management interface such as https://eap.example.com:9443/management

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