[jboss-jira] [JBoss JIRA] (WFLY-2336) Decreasing max-threads on a unbounded queuesless executor generates IllegalArgumentException

Aaron Ogburn (JIRA) jira-events at lists.jboss.org
Fri Oct 18 12:02:02 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-2336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Ogburn updated WFLY-2336:
-------------------------------

    Description: 
Create an unbounded queueless executor

<unbounded-queue-thread-pool name="uq-thread-pool">
<max-threads count="350"/>
<keepalive-time time="5" unit="minutes"/>
</unbounded-queue-thread-pool>

Modifying max-threads fails:

/subsystem=threads/unbounded-queue-thread-pool=uq-thread-pool:write-attribute(name=max-threads,value=300)
{
    "outcome" => "failed",
    "failure-description" => "JBAS014749: Operation handler failed: null",
    "rolled-back" => true
}

ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) 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:1620) [rt.jar:1.7.0]
	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)


The core pool size needs to be adjusted in line with the max pool size to avoid that.


  was:
Create an unbounded queueless executor

<unbounded-queue-thread-pool name="uq-thread-pool">
<max-threads count="350"/>
<keepalive-time time="5" unit="minutes"/>
</unbounded-queue-thread-pool>

Modifying max-threads fails:

/subsystem=threads/unbounded-queue-thread-pool=uq-thread-pool:write-attribute(name=max-threads,value=300)
{
    "outcome" => "failed",
    "failure-description" => "JBAS014749: Operation handler failed: null",
    "rolled-back" => true
}

ler-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:296) [wildfly-protocol-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:518) [wildfly-protocol-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
	at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]


The core pool size needs to be adjusted in line with the max pool size to avoid that.



    
> Decreasing max-threads on a unbounded queuesless executor generates IllegalArgumentException
> --------------------------------------------------------------------------------------------
>
>                 Key: WFLY-2336
>                 URL: https://issues.jboss.org/browse/WFLY-2336
>             Project: WildFly
>          Issue Type: Bug
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Aaron Ogburn
>            Priority: Minor
>
> Create an unbounded queueless executor
> <unbounded-queue-thread-pool name="uq-thread-pool">
> <max-threads count="350"/>
> <keepalive-time time="5" unit="minutes"/>
> </unbounded-queue-thread-pool>
> Modifying max-threads fails:
> /subsystem=threads/unbounded-queue-thread-pool=uq-thread-pool:write-attribute(name=max-threads,value=300)
> {
>     "outcome" => "failed",
>     "failure-description" => "JBAS014749: Operation handler failed: null",
>     "rolled-back" => true
> }
> ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) 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:1620) [rt.jar:1.7.0]
> 	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)
> The core pool size needs to be adjusted in line with the max pool size to avoid that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list