简体   繁体   English

在Red5中禁用JMX

[英]Disable jmx in red5

Red5 takes more time while starting in centOS. 从centOS启动时,Red5需要更多时间。 I checked the stdout.log. 我检查了stdout.log。 There is JMX timeout error. 有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]

How to disable JMX in red5..? 如何在red5 ..中禁用JMX?

Red5 used JMX for monitoring deployed application from remote. Red5使用JMX从远程监视部署的应用程序。 By default port 9999 used for JMX. 默认情况下,JMX使用端口9999。 It will wait for upto 100/200 seconds if program can not able to make connection with port 9999. To disable JMX monitoring you have to set false for "enableRmiAdapter" in red5-common.xml in conf folder of red5 server. 如果程序无法与端口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"/>
            ....

FYI I am using red5-0.9.1 and JMX port and host configuration in red5.properties file. 仅供参考,我在red5.properties文件中使用red5-0.9.1和JMX端口和主机配置。

For 1.0 and more follow this https://code.google.com/p/red5/wiki/SlowStartup 对于1.0及更高版本,请遵循以下https://code.google.com/p/red5/wiki/SlowStartup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM