[infinispan-dev] All demos should be readily discoverable by RHQ
Alan Santos
asantos at redhat.com
Tue Aug 30 12:00:21 EDT 2011
RHQ scans the process list and looks for specific strings. Some plugins then attach to a remote JVM and then look for specific means.
If the selected port is spit out in a log it *could* be picked up after the initial process discovery.
Right now it doesn't take advantage of JDK 6 tools or JMX enhancements that allow processes to attach directly.
-alan
On Aug 30, 2011, at 10:03 AM, Galder Zamarreño wrote:
> No idea what it uses but effectively gets all the JMX servers and we didn't figure out which one contains Infinispan Cache Managers and which doesn't.
>
> On Aug 30, 2011, at 4:00 PM, Tristan Tarrant wrote:
>
>> VisualVM automatically discovers processes using jps (running with the same user or root). Doesn't the RHQ agent use the same technique ?
>>
>> Tristan
>>
>> On Tue, Aug 30, 2011 at 15:56, Sanne Grinovero <sanne at infinispan.org> wrote:
>> 2011/8/30 Tristan Tarrant <tristan.tarrant at gmail.com>:
>>> netstat ? :)
>>> jstat ?
>>
>> I was hoping in something better :)
>> Could we add a parameter to the demo boot scripts? Hardcode a default
>> value, but make it easy to change if needed.
>>
>>>
>>> On Tue, Aug 30, 2011 at 15:50, Sanne Grinovero <sanne at infinispan.org> wrote:
>>>>
>>>> How will I know the port to connect to when it's auto-chosen?
>>>>
>>>> 2011/8/30 Galder Zamarreño <galder at redhat.com>:
>>>>> That might be workable these days. In the past we had to stick to a JMX
>>>>> port and we used search for it. Due to some changes made to make the plugin
>>>>> work better with AS, we know look for several JMX subsystems in the machine
>>>>> and see if any match the Infinispan one.
>>>>>
>>>>> On Aug 30, 2011, at 3:30 PM, Tristan Tarrant wrote:
>>>>>
>>>>>> Maybe leave out the port, so that it chooses a random one ? This way I
>>>>>> can run multiple demos at once.
>>>>>>
>>>>>> Tristan
>>>>>>
>>>>>> On Tue, Aug 30, 2011 at 14:47, Galder Zamarreño <galder at redhat.com>
>>>>>> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I want all demos to come with the following system properties so that
>>>>>> they can be immediately, without modification, be discovered by RHQ:
>>>>>> -Dcom.sun.management.jmxremote.port=6996
>>>>>> -Dcom.sun.management.jmxremote.ssl=false
>>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>>>
>>>>>> I'm planning to do this as part of
>>>>>> https://issues.jboss.org/browse/ISPN-1357
>>>>>>
>>>>>> Anyone has any problems with it?
>>>>>>
>>>>>> Cheers,
>>>>>> --
>>>>>> Galder Zamarreño
>>>>>> Sr. Software Engineer
>>>>>> Infinispan, JBoss Cache
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> infinispan-dev mailing list
>>>>>> infinispan-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> infinispan-dev mailing list
>>>>>> infinispan-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>>
>>>>> --
>>>>> Galder Zamarreño
>>>>> Sr. Software Engineer
>>>>> Infinispan, JBoss Cache
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> infinispan-dev mailing list
>>>>> infinispan-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>>
>>>>
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
Alan Santos
JBoss Product Manager
617.818.7735
alan.santos at redhat.com
More information about the infinispan-dev
mailing list