Unable to increase the number of MSC Service Threads beyond 8
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.4.9+
- 7
Issue
We are deploying a large number of applications in EAP. With the default settings, the server is getting blocked at some point, so we added the following system property to increase the number of MSC Service Threads:
JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.server.bootstrap.maxThreads=60"
This has worked in earlier EAP 6.4.x versions, but no longer works after applying the latest patch.
Resolution
In order to increase the number of MSC Service Threads, define the following two system properties:
JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.server.bootstrap.maxThreads=60"
JAVA_OPTS="$JAVA_OPTS -Djboss.msc.max.container.threads=60"
Root Cause
In order to limit the number of MSC System Threads, a new system property has been introduced in the MSC component 1. This has been pulled into EAP 6.4 with the patch release #9 2.
Content from issues.jboss.org is not included.https://issues.jboss.org/browse/MSC-144
2: This content is not included.https://bugzilla.redhat.com/show_bug.cgi?id=1342657
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.