IllegalArgumentException when updating max-threads
Issue
- While updating max-threads in unbounded-queue-thread-pool getting IllegalArgumentException
ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014612: Operation ("write-attribute") failed - address: ([
("subsystem" => "threads"),
("unbounded-queue-thread-pool" => "uq-thread-pool")
]): java.lang.IllegalArgumentException
at java.util.concurrent.ThreadPoolExecutor.setMaximumPoolSize(ThreadPoolExecutor.java:1667) [rt.jar:1.7.0_21]
at org.jboss.threads.JBossThreadPoolExecutor.setMaxThreads(JBossThreadPoolExecutor.java:95) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
at org.jboss.as.threads.ManagedJBossThreadPoolExecutorService.setMaxThreads(ManagedJBossThreadPoolExecutorService.java:86)
at org.jboss.as.threads.UnboundedQueueThreadPoolService.setMaxThreads(UnboundedQueueThreadPoolService.java:91)
at org.jboss.as.threads.UnboundedQueueThreadPoolWriteAttributeHandler.applyOperation(UnboundedQueueThreadPoolWriteAttributeHandler.java:62)
at org.jboss.as.threads.ThreadsWriteAttributeOperationHandler.applyUpdateToRuntime(ThreadsWriteAttributeOperationHandler.java:90)
Environment
- JBoss Enterprise Application Platform (EAP) 6.2.0 and earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.