Tools/JMXManager

JMX Manager

 http://red5.electroteque.org/dev/jmx/JMXManager.tar.gz

JMXManager is a JMX RMI client for helping expose information of the Red5 server on the command line without using jconsole. It's main use is to expose certain properties on the standard output for monitoring and reporting tools to use that information in rrdgraphs.

The information below assumes you have read about remote management in Red5 [docs:Chapter 17. Management]

Error: Failed to load processor NoteBox
No macro or processor named 'NoteBox' found

使用法

ant build - will compile the JMXManager application.
ant show - will display a list of available bean domains in JMX.
ant show-all - will display a list of available bean domains and all of the bean properties. 
ant red5-bean - will display a list of beans within the bean domain org.red5.server and all their properties.
ant red5-command - will collect two properties MaxClients and MaxConnections on the bean domain org.red5.server:type=GlobalScope,name=default
ant oflaDemo-bean - will expose the properties for the oflaDemo application on the bean domain org.red5.server:type=WebScope,name=oflaDemo
ant oflaDemo-command - will collect two properties MaxClients and MaxConnections on the oflaDemo bean domain
ant ssl-test - will run the client connection under ssl. 

指定可能な引数は次のとおりです。

- p - the port number the JMX RMI connector is listening on.
- h - the hostname to connect with.
- u - the JMX username.
- P - the JMX password.
- l - the RMI connector name.
- b - the bean name to expose information for, wildcard syntax is allowed for searching. 
- c - the command property to expose information for, can be used more than one to expose more than one at a time.
- a - show all properties for all bean domains on the server.

次に示すのは、Java で直接ツールを実行する例です。

java org.electroteque.client.JMXManager -h localhost -p 9999 -u red5user -P changeme -l red5 -b org.red5.server:type=GlobalScope,name=default -c MaxClients -c MaxConnections