[Red5] JMX added into Red5
Dan Rossi
spam at electroteque.org
Mon May 14 00:35:00 EDT 2007
jconsole -J-Djavax.net.ssl.trustStore=conf/truststore.jmx
-J-Djavax.net.ssl.trustStorePassword=password
red5user / changeme
just tried this and still wont connect :\
This is what the VM says in the local management for the eclipse arguments
-Dcom.sun.management.jmxremote
-Djavax.net.ssl.keyStore=conf/keystore.jmx
-Djavax.net.ssl.keyStorePassword=password
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51466
Dan Rossi wrote:
> apologies I didnt see that. Has that been my issue all along ? The
> server uses the keystore args, and jconsole uses the trustore args ? Ive
> never been able to work out how to build the trustore file, is the
> trustore just a copy of the keystore ? I dont think it is because it
> wont let me connect :)
>
> Mondain wrote:
>
>> I believe you have to use the "truststore.jmx" when you connect with
>> jconsole. I havent tried it yet but i did use the shutdown script with it.
>>
>> Paul
>>
>> On 5/13/07, * Dan Rossi* <spam at electroteque.org
>> <mailto:spam at electroteque.org>> wrote:
>>
>> Hi thanks for that however i still cant connect to it. I have these
>> flags set in the eclipse debug argument window
>>
>> -Dcom.sun.management.jmxremote
>> -Djavax.net.ssl.keyStore=conf/keystore.jmx
>> -Djavax.net.ssl.keyStorePassword=password
>>
>>
>> I run jconsole like
>>
>> jconsole -J-Djavax.net.ssl.keyStore=conf/keystore.jmx
>> -J-Djavax.net.ssl.keyStorePassword=password
>>
>> I connect like
>>
>> service:jmx:rmi:///jndi/rmi://192.168.1.1:9999/red5
>>
>> red5user : changeme
>>
>> I still cant connect, have never been able to.
>>
>>
>> Mondain wrote:
>> > the password is actually in the red5-common.xml.. its "password" :)
>> >
>> > On 5/13/07, *Dan Rossi* < spam at electroteque.org
>> <mailto:spam at electroteque.org>
>> > <mailto:spam at electroteque.org <mailto:spam at electroteque.org>>>
>> wrote:
>> >
>> > Paul sorry to bug you again, im not really up with keystores
>> in java
>> > only ssl certs, what is the pass for the example one to test
>> with. I
>> > think the ssl problem may be that i havent set it up right
>> and the
>> > adding the same java args to jconsole hasnt seem to work for me
>> > yet, so
>> > i guess using this example keystore as a start could be good.
>> >
>> > Mondain wrote:
>> > > I added (and tested) SSL and Auth with the latest trunk,
>> you should
>> > > update to it and look at the configuration updates
>> specifically the
>> > > red5-common.xml. I believe your remote stuff will work
>> now. Also
>> > the
>> > > build.xml has settings for using ssl and auth in server_java6,
>> > > server_java5, and shutdown if you need examples (they are
>> > disabled by
>> > > default)
>> > >
>> > > Paul
>> > >
>> > > On 5/10/07, *Dan Rossi* < spam at electroteque.org
>> <mailto:spam at electroteque.org>
>> > <mailto:spam at electroteque.org <mailto:spam at electroteque.org>>
>> > > <mailto:spam at electroteque.org
>> <mailto:spam at electroteque.org> <mailto: spam at electroteque.org
>> <mailto:spam at electroteque.org>>>>
>> > wrote:
>> > >
>> > > I was hoping to ditch remoting altogether for now
>> because it
>> > just
>> > > doesnt
>> > > work the way it should, i cant get it connected or
>> authenticated
>> > > either.
>> > > However i cant load red5 locally it seems via the java
>> wrapper
>> > > service
>> > >
>> > > # JMX
>> > > wrapper.java.additional.4=-Dcom.sun.management.jmxremote
>> > > -Dcom.sun.management.config.file=../conf/jmx.properties
>> > >
>> > > Wont bring it up in the local list.
>> > >
>> > > Dan Rossi wrote:
>> > > > I think this is the setting to protect the rmi via
>> ssl but
>> > still
>> > > no luck
>> > > > getting the client to authenticate
>> > > >
>> > > > com.sun.management.jmxremote.registry.ssl=true
>> > > >
>> > > > Dan Rossi wrote:
>> > > >
>> > > >> Seems like u can only use the url below now, rather
>> than the
>> > > remote tab
>> > > >> in jconsole, still cant connect though
>> > > >>
>> > > >> what does this mean then, is it still needed
>> > > >>
>> > > >> # JMX RMI Agent
>> > > >> #com.sun.management.jmxremote.port=8004
>> > > >>
>> > > >> Dan Rossi wrote:
>> > > >>
>> > > >>
>> > > >>> woops it was localhost, tried everything even have
>> ssl and
>> > > auth off and
>> > > >>> it wont connect via jconsole
>> > > >>>
>> > > >>> service:jmx:rmi:///jndi/rmi://192.168.1.2:8005/red5
>> > > >>>
>> > > >>> Should the jmx port be turned off or does rmi
>> connect to
>> > this
>> > > ? Does the
>> > > >>> rmi registry need to load the jmxconfig aswell ?
>> > > >>>
>> > > >>> Dan Rossi wrote:
>> > > >>>
>> > > >>>
>> > > >>>
>> > > >>>> Its letting me connect without ssl or a password :\
>> > > >>>>
>> > > >>>> Dan Rossi wrote:
>> > > >>>>
>> > > >>>>
>> > > >>>>
>> > > >>>>
>> > > >>>>> Ok what is the difference of the rmiregistry to
>> the jmx
>> > > management port
>> > > >>>>> , sorry its gone over my head. Im still trying to
>> > attempt to
>> > > secure it
>> > > >>>>> with login / ssl with no luck.
>> > > >>>>>
>> > > >>>>> Mondain wrote:
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>> You run this at any time before starting red5
>> > > >>>>>>
>> > > >>>>>> windows
>> > > >>>>>> %JAVA_HOME%\jre\bin\rmiregistry.exe <port>
>> > > >>>>>>
>> > > >>>>>> linux
>> > > >>>>>> $JAVA_HOME/jre/bin/rmiregistry <port> &
>> > > >>>>>>
>> > > >>>>>> Replace port with the port of your choice..
>> default
>> > should
>> > > be 9999
>> > > >>>>>> (this is detailed in the HOWTO btw)
>> > > >>>>>>
>> > > >>>>>> In addtion, starting red5 with the command "ant
>> server"
>> > > will also
>> > > >>>>>> start the rmi registry for you if it is enabled
>> in the
>> > > >>>>>> build.properties (default)
>> > > >>>>>>
>> > > >>>>>> Paul
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>> On 5/10/07, *Dan Rossi* < spam at electroteque.org
>> <mailto:spam at electroteque.org>
>> > <mailto:spam at electroteque.org <mailto:spam at electroteque.org>>
>> > > <mailto: spam at electroteque.org
>> <mailto:spam at electroteque.org> <mailto: spam at electroteque.org
>> <mailto:spam at electroteque.org>>>
>> > > >>>>>> <mailto: spam at electroteque.org
>> <mailto:spam at electroteque.org>
>> > <mailto: spam at electroteque.org <mailto:spam at electroteque.org>>
>> > > <mailto: spam at electroteque.org
>> <mailto:spam at electroteque.org>
>> > <mailto:spam at electroteque.org
>> <mailto:spam at electroteque.org>>>>> wrote:
>> > > >>>>>>
>> > > >>>>>> It now says rimregistry is not running, what is
>> > it, how
>> > > could i start
>> > > >>>>>> such a thing on the command to start red5 ?
>> > > >>>>>>
>> > > >>>>>> Thijs Triemstra | Collab wrote:
>> > > >>>>>> > I got the same error here with r2008,
>> using ant
>> > > server, and opened
>> > > >>>>>> > http://jira.red5.org/browse/APPSERVER-125
>> > > >>>>>> >
>> > > >>>>>> > Thijs
>> > > >>>>>> >
>> > > >>>>>> >
>> > > >>>>>> > On May 10, 2007, at 2:40 AM, Dan Rossi
>> wrote:
>> > > >>>>>> >
>> > > >>>>>> >
>> > > >>>>>> >> Just got this in eclipse debug
>> > > >>>>>> >>
>> > > >>>>>> >> [ERROR] 4938 main:(
>> > org.red5.server.jmx.JMXAgent.init )
>> > > >>>>>> >> java.rmi.ConnectException: Connection
>> refused
>> > to host:
>> > > >>>>>> 192.168.1.1 <http://192.168.1.1>
>> <http://192.168.1.1>
>> > < http://192.168.1.1> <http://192.168.1.1>;
>> > > >>>>>> >> nested exception is:
>> > > >>>>>> >> java.net.ConnectException:
>> Connection refused
>> > > >>>>>> >>
>> > > >>>>>> >>
>> > > >>>>>> >
>> > > >>>>>> >
>> > > >>>>>> >
>> _______________________________________________
>> > > >>>>>> > Red5 mailing list
>> > > >>>>>> > Red5 at osflash.org
>> <mailto:Red5 at osflash.org> <mailto:Red5 at osflash.org
>> <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>>
>> > > >>>>>> >
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> > > >>>>>> >
>> > > >>>>>> >
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>> _______________________________________________
>> > > >>>>>> Red5 mailing list
>> > > >>>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>>
>> > > >>>>>>
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> > <http://osflash.org/mailman/listinfo/red5_osflash.org
>> <http://osflash.org/mailman/listinfo/red5_osflash.org>>
>> > > <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>> --
>> > > >>>>>> It is difficult to free fools from the chains they
>> > revere.
>> > > - Voltaire
>> > > >>>>>>
>> > >
>> >
>> ------------------------------------------------------------------------
>> > > >>>>>>
>> > > >>>>>> _______________________________________________
>> > > >>>>>> Red5 mailing list
>> > > >>>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > >>>>>>
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> > > < http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>> _______________________________________________
>> > > >>>>> Red5 mailing list
>> > > >>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > >>>>>
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > < http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>>>
>> > > >>>> _______________________________________________
>> > > >>>> Red5 mailing list
>> > > >>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > >>>>
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > >>>>
>> > > >>>>
>> > > >>>>
>> > > >>>>
>> > > >>>>
>> > > >>> _______________________________________________
>> > > >>> Red5 mailing list
>> > > >>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > >>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> > > >>>
>> > > >>>
>> > > >>>
>> > > >>>
>> > > >> _______________________________________________
>> > > >> Red5 mailing list
>> > > >> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > >> http://osflash.org/mailman/listinfo/red5_osflash.org
>> > > >>
>> > > >>
>> > > >>
>> > > >
>> > > >
>> > > > _______________________________________________
>> > > > Red5 mailing list
>> > > > Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > > http://osflash.org/mailman/listinfo/red5_osflash.org
>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> > > >
>> > > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Red5 mailing list
>> > > Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>>
>> > > http://osflash.org/mailman/listinfo/red5_osflash.org
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > It is difficult to free fools from the chains they revere. -
>> > Voltaire
>> > >
>> >
>> ------------------------------------------------------------------------
>>
>> > >
>> > > _______________________________________________
>> > > Red5 mailing list
>> > > Red5 at osflash.org <mailto:Red5 at osflash.org> <mailto:
>> Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > > http://osflash.org/mailman/listinfo/red5_osflash.org
>> > >
>> >
>> >
>> > _______________________________________________
>> > Red5 mailing list
>> > Red5 at osflash.org <mailto:Red5 at osflash.org>
>> <mailto:Red5 at osflash.org <mailto:Red5 at osflash.org>>
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> > <http://osflash.org/mailman/listinfo/red5_osflash.org>
>> >
>> >
>> >
>> >
>> > --
>> > It is difficult to free fools from the chains they revere. -
>> Voltaire
>> >
>> ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Red5 mailing list
>> > Red5 at osflash.org <mailto:Red5 at osflash.org>
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> >
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>>
>>
>>
>>
>> --
>> It is difficult to free fools from the chains they revere. - Voltaire
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
More information about the Red5
mailing list