High CPU in concurrent access to the JSSESupport keySizeCache map

Solution Verified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.2 CP01
    • 6.2 CP02
    • 6.2 CP03

Issue

  • JBoss is consuming high CPU. Thread dumps and CPU data shows high CPU in web request threads that are accessing the keySizeCache WeakHashMap in JSSESupport.getKeySize().

Resolution

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.