Excessive amounts of SimpleAsyncTaskExecutor threads
Environment
- JBoss Enterprise Application Platform (EAP)
- Spring
Issue
- We are seeing an excessive amount of SimpleAsyncTaskExecutor threads at once in the JVM
Resolution
- Setting a concurrency limit in the spring layer for your async bean will cap the number of threads it can create to avoid such thread growth. The Content from docs.spring.io is not included.spring docs provide more of an overview on spring executor configurations for async beans.
Root Cause
- SimpleAsyncTaskExecutor creates a new thread for every async bean invocation so if these invocations slow and pile up, and unbounded amount of threads can pile up.
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.