Standalone Java Client with more than 15 concurrent remote EJB calls using UserTransaction hangs in JBoss EAP 7.1
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2
- 7.1
Issue
- Standalone Java Client with more than 15 concurrent remote EJB calls using UserTransaction hangs in JBoss EAP 7.1
Resolution
In the standalone application add a META-INF/wildfly-config.xml and increase the xnio max-threads (which defaults to 16)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<worker xmlns="urn:xnio:3.5">
<pool-size max-threads="250"/>
</worker>
</configuration>
Related Solutions
How to get Remote EJB UserTransaction in JBoss EAP 7.1+
Root Cause
UserTransaction uses a thread from the xnio thread pool, having more than 15 concurrent threads making remote EJB calls and using UserTransaction will exhaust the available threads and hang.
Components
Category
Tags
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.