[Red5commits] [1732] multiple IO processor threads are used by default

jbauch luke at codegent.com
Wed Feb 14 17:00:07 EST 2007


multiple IO processor threads are used by default


Timestamp: 02/14/07 16:59:55 EST (less than one hour ago) 
Change: 1732 
Author: jbauch

Files (see diff or trac for details): 
doc/trunk/changelog.txt
java/server/trunk/conf/red5-core.xml
java/server/trunk/conf/red5.properties


Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1732

Index: /java/server/trunk/conf/red5-core.xml
===================================================================
--- /java/server/trunk/conf/red5-core.xml (revision 1654)
+++ /java/server/trunk/conf/red5-core.xml (revision 1732)
@@ -24,7 +24,17 @@
 	</bean>
 	
+    <bean id="threadExecutor"
+        class="org.apache.mina.integration.spring.ThreadPoolExecutorFactoryBean">
+        <!-- use configured thread count as core pool size -->
+        <property name="corePoolSize" value="${rtmp.threadcount}" />
+        <!-- use a SynchronousQueue to handle requests to the threads -->
+        <property name="queueCapacity" value="0" />
+    </bean>
+    
 	<bean class="org.apache.mina.transport.socket.nio.SocketAcceptor"
 		init-method="bind" destroy-method="unbind">
 		<!-- RTMP -->
+		<constructor-arg value="${rtmp.threadcount}" />
+		<constructor-arg><ref bean="threadExecutor"/></constructor-arg>
 		<property name="localAddress" value="${rtmp.host_port}" />
 		<property name="handler" ref="rtmpMinaIoHandler" />
Index: /java/server/trunk/conf/red5.properties
===================================================================
--- /java/server/trunk/conf/red5.properties (revision 1126)
+++ /java/server/trunk/conf/red5.properties (revision 1732)
@@ -1,3 +1,4 @@
 rtmp.host_port = 0.0.0.0:1935
+rtmp.threadcount = 4
 debug_proxy.host_port = 0.0.0.0:1936
 proxy_forward.host_port = 127.0.0.1:1935
Index: /doc/trunk/changelog.txt
===================================================================
--- /doc/trunk/changelog.txt (revision 1731)
+++ /doc/trunk/changelog.txt (revision 1732)
@@ -9,4 +9,5 @@
 Bugfixes:
 - serialization of Maps with non-number keys fixed (APPSERVER-60)
+- multiple IO processor threads are used by default
 
 


Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.



More information about the Red5commits mailing list