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

    Jboss EAP 6.1 thread pool configuration

    sam.gu

      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

        • 1. Re: Jboss as 7 thread pool
          ksreen

          It is a parse exception. Look at the domain.xml line 314. That should give you an idea.

          • 2. Re: Jboss as 7 thread pool
            wdfink

            From the schema  HOME/docs/schema/jboss-as-threads_1_1.xsd it looks correct.

            If I add the bounded-queue* to my domain it works.

             

            Could you check which line it is exact and show it with line numbers here?

            Also you might check whether there are invisible/wrong characters.

            • 3. Re: Jboss as 7 thread pool
              sam.gu

              QQ截图20140313085434.jpg

                 This photo is my domain.xml,the line number of 314 is exactly my added row.But i copy it to standalone.xml ,the standalone mode is not any question ,why?

                 If you have not any question according to my configuration ,coudle you please upload your domain.xml,maybe i can compare with my domain.xml. to find my problem.

              • 4. Re: Jboss EAP 6.1 thread pool configuration
                jaikiran

                Is that the full exception stacktrace? Also, did you copy/paste the contents from someplace (maybe Word document) to that domain.xml? If yes, can you try undoing it and manually adding the text in a simple text editor?