2012-09-28 20 views
0

在centOS中啓動時,Red5需要更多時間。我檢查了stdout.log。有JMX超時錯誤。在red5中禁用jmx

[ERROR] [main] org.red5.server.jmx.JMXAgent - {} 
java.io.IOException: Cannot bind to URL [rmi://:9999/red5]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 69.164.154.24; nested exception is: 
     java.net.ConnectException: Connection timed out] 

如何在red5中禁用JMX ..?

回答

0

Red5使用JMX監視遠程部署的應用程序。默認情況下,用於JMX的端口9999。如果程序無法與端口9999建立連接,它將等待高達100/200秒。要禁用JMX監視,必須在red5服務器的conf文件夾的red5-common.xml中爲「enableRmiAdapter」設置false。

<bean id="jmxAgent" class="org.red5.server.jmx.JMXAgent" init-method="init"> 
      <!-- The RMI adapter allows remote connections to the MBeanServer --> 
      <property name="enableRmiAdapter" value="false"/> 
      .... 

僅供參考我在Red5.properties文件中使用red5-0.9.1和JMX端口和主機配置。

For 1.0 and more follow this https://code.google.com/p/red5/wiki/SlowStartup