[
https://jira.jboss.org/jira/browse/ISPN-267?page=com.atlassian.jira.plugi...
]
Galder Zamarreno commented on ISPN-267:
---------------------------------------
<manik> galderz sorry was AFK
<manik> doesn't getLocalHost() present a problem for multiple nodes on the same
host?
<galderz> maybe, but i can't use anything else
<galderz> from the jgroups address, i can't get anything
<galderz> maybe from the physical address
<manik> Yes, you can get the Physical address
<manik> I believe JGroups has a helper function to retrieve it from a Logical
address
<galderz> i could get the physical address ip at least
<galderz> yeah, i implemented that myself
<galderz> so that at startup infinispan logs the physical address
<manik> ah it was you! :)
<galderz> yeah :)
<galderz> cos the logicl address uses InetAddress.getLocalHost().getHostName() for
the 1st part
<galderz> so, it seeemed to be binding to localhost(127....) but in reality, it was
binding to my LAN (10....)
<galderz> in fact, we should expose the physical address via jmx for debugging
reasons
<galderz> or monitoring more than anything
<galderz> i'll get this done asap, good that i'm testign this to find the
pain points
<galderz> off for lunch, back in abit :)
Change Infinispan cache manager jmx name to be
hostname:<jmx-port> based
------------------------------------------------------------------------
Key: ISPN-267
URL:
https://jira.jboss.org/jira/browse/ISPN-267
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Affects Versions: 4.0.0.CR1
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
Fix For: 4.0.0.CR2
<galderz> until now, i had named the CacheManager in jopr as:
global-jmx-domain@address
<galderz> this is a bit of pain because the address changes everytime you restart
infinispan
<galderz> but jopr does not realise this and considers an infinispan started in
same jmx port in same address to be the same
<galderz> so, when you restart, u see infinispan cache manager in jopr but it has
the wrong name, this will be confusing
<galderz> heiko told me this is a limitation of the jopr
<galderz> on top of that, if u wanna do things correctly and import the new cache
manager, u need to delete the old one, let auto discovery run and get the new one
<galderz> and then you're back to your starting point, so if had tweaked any
scheduling options in the previous infinispan instance, you're back to defaults
<galderz> so, i'm gonna change this name to simply be:
global-jmx-domain@InetAddress.getLocalHost().getHostName():<jmx:port>
<galderz> that way we'll avoid this confusion and you can always get the
address from the RpcManager, so not big deal
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira