[jboss-cvs] JBossAS SVN: r89541 - in trunk: server/src/etc/conf/minimal and 4 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 29 18:02:06 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-05-29 18:02:05 -0400 (Fri, 29 May 2009)
New Revision: 89541

Modified:
   trunk/server/src/etc/conf/all/jboss-service.xml
   trunk/server/src/etc/conf/minimal/jboss-service.xml
   trunk/server/src/etc/conf/standard/jboss-service.xml
   trunk/server/src/etc/conf/web/jboss-service.xml
   trunk/server/src/etc/deploy/thread-pool-jboss-beans.xml
   trunk/testsuite/src/resources/naming/services/pooled-service.xml
Log:
Add a separate thread pool for long-running tasks - JBAS-6990

Modified: trunk/server/src/etc/conf/all/jboss-service.xml
===================================================================
--- trunk/server/src/etc/conf/all/jboss-service.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/server/src/etc/conf/all/jboss-service.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -211,7 +211,7 @@
       
       <!-- The thread pool service used to control the bootstrap lookups -->
       <attribute name="LookupPool">
-         <inject bean="ThreadPool"/>
+         <inject bean="LongRunningTasksThreadPool"/>
       </attribute>
       <!-- An example of using the unifed invoker as the transport.
          <depends optional-attribute-name="InvokerProxyFactory"

Modified: trunk/server/src/etc/conf/minimal/jboss-service.xml
===================================================================
--- trunk/server/src/etc/conf/minimal/jboss-service.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/server/src/etc/conf/minimal/jboss-service.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -64,7 +64,7 @@
       <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
       <!-- The thread pool service used to control the bootstrap lookups -->
       <attribute name="LookupPool">
-         <inject bean="ThreadPool"/>
+         <inject bean="LongRunningTasksThreadPool"/>
       </attribute>
       <!-- An example of using the unifed invoker as the transport.
          <depends optional-attribute-name="InvokerProxyFactory"

Modified: trunk/server/src/etc/conf/standard/jboss-service.xml
===================================================================
--- trunk/server/src/etc/conf/standard/jboss-service.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/server/src/etc/conf/standard/jboss-service.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -195,7 +195,7 @@
       <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
       <!-- The thread pool service used to control the bootstrap lookups -->
       <attribute name="LookupPool">
-         <inject bean="ThreadPool"/>
+         <inject bean="LongRunningTasksThreadPool"/>
       </attribute>
       <!-- An example of using the unifed invoker as the transport.
          <depends optional-attribute-name="InvokerProxyFactory"

Modified: trunk/server/src/etc/conf/web/jboss-service.xml
===================================================================
--- trunk/server/src/etc/conf/web/jboss-service.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/server/src/etc/conf/web/jboss-service.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -159,7 +159,7 @@
       <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
       <!-- The thread pool service used to control the bootstrap lookups -->
       <attribute name="LookupPool">
-         <inject bean="ThreadPool"/>
+         <inject bean="LongRunningTasksThreadPool"/>
       </attribute>
       <!-- An example of using the unifed invoker as the transport.
          <depends optional-attribute-name="InvokerProxyFactory"

Modified: trunk/server/src/etc/deploy/thread-pool-jboss-beans.xml
===================================================================
--- trunk/server/src/etc/deploy/thread-pool-jboss-beans.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/server/src/etc/deploy/thread-pool-jboss-beans.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -28,11 +28,27 @@
     <threads xmlns="urn:jboss:threads:1.0">
         <thread-group name="SystemThreadFactoryGroup" group-name="System Threads"/>
         <thread-factory name="SystemThreadFactory" group="SystemThreadFactoryGroup"/>
+
+        <!--
+          ~ This thread pool is for SHORT-RUNNING tasks that block very little or not at all.  Long-running
+          ~ tasks submitted to this pool may cause starvation and extended blocking.
+          -->
         <thread-pool-executor name="ThreadPool" thread-factory="SystemThreadFactory" queue-length="1000">
-            <core-pool-size count="5"/>
-            <max-pool-size count="10"/>
+            <core-pool-size count="5" per-cpu="2"/>
+            <max-pool-size count="10" per-cpu="3"/>
             <keepalive-time time="30" unit="seconds"/>
             <reject-policy name="block"/>
         </thread-pool-executor>
+
+       <!--
+         ~ This thread pool is for LONG-RUNNING tasks that may block for extended periods of time.
+         -->
+        <!-- commented out for now due to a couple Threads bugs, to be resolved in 1.0.1.GA -->
+        <!--<thread-pool-executor name="LongRunningTasksThreadPool" thread-factory="SystemThreadFactory" queue-length="0" allow-core-timeout="true">-->
+        <thread-pool-executor name="LongRunningTasksThreadPool" thread-factory="SystemThreadFactory" queue-length="1">
+           <core-pool-size count="100000"/>
+           <keepalive-time time="60" unit="seconds"/>
+           <reject-policy name="abort"/>
+        </thread-pool-executor>
     </threads>
 </deployment>
\ No newline at end of file

Modified: trunk/testsuite/src/resources/naming/services/pooled-service.xml
===================================================================
--- trunk/testsuite/src/resources/naming/services/pooled-service.xml	2009-05-29 21:56:43 UTC (rev 89540)
+++ trunk/testsuite/src/resources/naming/services/pooled-service.xml	2009-05-29 22:02:05 UTC (rev 89541)
@@ -42,7 +42,7 @@
       <attribute name="InstallGlobalService">false</attribute>
       <!-- The thread pool service used to control the bootstrap lookups -->
       <attribute name="LookupPool">
-         <inject bean="ThreadPool"/>
+         <inject bean="LongRunningTasksThreadPool"/>
       </attribute>
       <!-- The detached pooled invoker proxy -->
       <depends optional-attribute-name="InvokerProxyFactory"




More information about the jboss-cvs-commits mailing list