JBoss client creates many remoting threads

Solution Verified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x

Issue

  • Our JBoss EJB client is creating many remoting threads like the following:
    • Remoting "config-based-ejb-client-endpoint" read-1
    • Remoting "config-based-ejb-client-endpoint" write-1
    • Remoting "config-based-ejb-client-endpoint" task-1

Resolution

  • Ensure contexts are closed to close these threads. The best option would be to look up and reuse a context instead of looking up a context each time.

Root Cause

  • EJB contexts are looked up but not closed, resulting in this thread growth.
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.