4 Replies Latest reply on Mar 13, 2014 3:35 AM by jaikiran pai

    Jboss EAP 6.1 thread pool configuration

    Sam 顾 Newbie

      I have configured the jboss thread pool successful in standalone mode for JBoss EAP 6.1, but the same configuration can't worked in domain mode.the cluster can't start up after 

      configuration.The configuration is blow:

           

      <subsystem xmlns="urn:jboss:domain:threads:1.1">
                  <bounded-queue-thread-pool name="thread_size" allow-core-timeout="true">
                  <core-threads count="300"/>
                  <queue-length count="30"/>
                  <max-threads count="500"/>
                  <keepalive-time time="30" unit="seconds"/>
              </bounded-queue-thread-pool>
              </subsystem>
      

       

        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="thread_size" max-connections="1000"/>
      

       

            the error of startup is like this :

      09:52:45,491 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010932: 在引导时捕获异常: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: 解析配置失败
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:457) [jboss-as-host-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[314,13]
      Message: JBAS014789: 遇到意外的元素 '{urn:jboss:domain:1.4}bounded-queue-thread-pool'
        at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:86) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.host.controller.parsing.DomainXml.parseProfiles(DomainXml.java:839) [jboss-as-host-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.host.controller.parsing.DomainXml.readDomainElement1_4(DomainXml.java:407) [jboss-as-host-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.host.controller.parsing.DomainXml.readElement(DomainXml.java:137) [jboss-as-host-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.host.controller.parsing.DomainXml.readElement(DomainXml.java:107) [jboss-as-host-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
        at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        ... 3 more
      

       

      I have compared the difference of the standalone.xml  and domain.xml using advanced compare software, two files very same.But i can't understand why. This config only support the standalone,

      not support domain mode???

       

      Message was edited by: Tomaz Cerar