You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2011/07/29 14:51:10 UTC
[jira] [Closed] (AMQ-3419) Not all client connections have a
registered ObjectName
[ https://issues.apache.org/jira/browse/AMQ-3419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish closed AMQ-3419.
-----------------------------
Resolution: Not A Problem
vm transports don't appear in the connection lists
> Not all client connections have a registered ObjectName
> -------------------------------------------------------
>
> Key: AMQ-3419
> URL: https://issues.apache.org/jira/browse/AMQ-3419
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMX
> Affects Versions: 5.6.0
> Environment: Linux, OSGI
> Reporter: Michael Yara
>
> I am trying to force client disconnects from my embedded ActiveMQ broker via JMX. I am currently using the latest 5.6 snapshot. In my testing I have found that not all the client connections have a relative MBean registered.
> I ran this test on my BrokerService:
> Connection[] clients = brokerService.getBroker().getClients();
> for(Connection c : clients) {
> System.err.println(c.getConnectionId());
> }
>
> Set beans = brokerService.getManagementContext().queryNames(null, null);
> for(Object bean : beans) {
> if(bean instanceof ObjectName) {
> ObjectName name = (ObjectName)bean;
> System.err.println(name);
> }
> }
> This is the output:
> ID:Lain-50070-1311715845408-3:1
> ID:Lain-50070-1311715845408-5:1
> ID:Lain-50070-1311715845408-7:1
> ID:Lain-50070-1311715845408-9:1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Connector,ConnectorName=tcp_//localhost_61616
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Producer.Topic.com.xmlnamespace.panel.core.event.eventtopic
> java.lang:type=Memory
> java.lang:type=MemoryPool,name=PS Eden Space
> java.lang:type=MemoryPool,name=PS Survivor Space
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,clientId=ID_Lain-50070-1311715845408-3_1,consumerId=SERVER-com.xmlnamespace.panel.core.request.requestmanager-50070-1311715845408-4_1_-1_1
> java.lang:type=GarbageCollector,name=PS MarkSweep
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,clientId=ID_Lain-50070-1311715845408-5_1,consumerId=SERVER-com.xmlnamespace.panel.core.event.eventmanager-50070-1311715845408-6_1_-1_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Producer,destinationType=Topic,destinationName=com.xmlnamespace.panel.core.event.eventtopic,clientId=ID_Lain-50070-1311715845408-5_1,producerId=SERVER-com.xmlnamespace.panel.core.event.eventmanager-50070-1311715845408-6_1_1_1
> org.apache.derby:type=JDBC,system=c013800d-0131-685b-61fb-0000027039f0
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=com.xmlnamespace.panel.core.event.eventtopic
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Producer,destinationType=Topic,destinationName=ActiveMQ.Advisory.Connection,clientId=ID_Lain-50070-1311715845408-9_1,producerId=SERVER-com.xmlnamespace.panel.core.login.loginmanager-50070-1311715845408-10_1_1_1
> java.lang:type=Compilation
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Queue
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Broker
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=tcp_//127.0.0.1_55190
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Consumer.Topic.com.xmlnamespace.panel.core.mtl.modeleventtopic
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Queue,Destination=com.xmlnamespace.panel.core.request.requestqueue
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=com.xmlnamespace.panel.core.event.eventtopic,clientId=ID_Lain-50070-1311715845408-5_1,consumerId=SERVER-com.xmlnamespace.panel.core.event.eventmanager-50070-1311715845408-6_1_1_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=ActiveMQ.Advisory.Connection,clientId=ID_Lain-50070-1311715845408-9_1,consumerId=SERVER-com.xmlnamespace.panel.core.login.loginmanager-50070-1311715845408-10_1_1_1
> java.lang:type=OperatingSystem
> java.lang:type=MemoryManager,name=CodeCacheManager
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Queue,destinationName=com.xmlnamespace.panel.core.request.requestqueue,clientId=ID_Lain-50070-1311715845408-3_1,consumerId=SERVER-com.xmlnamespace.panel.core.request.requestmanager-50070-1311715845408-4_1_1_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=com.xmlnamespace.panel.core.mtl.modeleventtopic,clientId=ID_Lain-50070-1311715845408-7_1,consumerId=SERVER-com.xmlnamespace.panel.core.mtl.modeltransportmanager-50070-1311715845408-8_1_1_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Producer,destinationType=Topic,destinationName=com.xmlnamespace.panel.core.mtl.modeleventtopic,clientId=ID_Lain-50070-1311715845408-7_1,producerId=SERVER-com.xmlnamespace.panel.core.mtl.modeltransportmanager-50070-1311715845408-8_1_1_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Producer.Topic.com.xmlnamespace.panel.core.mtl.modeleventtopic
> org.apache.derby:type=Version,jar=derby.jar,system=c013800d-0131-685b-61fb-0000027039f0
> java.lang:type=MemoryPool,name=Code Cache
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Producer,destinationType=Dynamic,clientId=ID_Lain-50070-1311715845408-3_1,producerId=SERVER-com.xmlnamespace.panel.core.request.requestmanager-50070-1311715845408-4_1_1_1
> java.lang:type=Runtime
> org.apache.derby:type=Management,system=c013800d-0131-685b-61fb-0000027039f0
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Consumer.Topic.com.xmlnamespace.panel.core.event.eventtopic
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,clientId=ID_Lain-50070-1311715845408-7_1,consumerId=SERVER-com.xmlnamespace.panel.core.mtl.modeltransportmanager-50070-1311715845408-8_1_-1_1
> java.lang:type=ClassLoading
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Consumer.Queue.com.xmlnamespace.panel.core.request.requestqueue
> java.lang:type=Threading
> java.util.logging:type=Logging
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Lain-50070-1311715845408-9_1
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Topic
> com.sun.management:type=HotSpotDiagnostic
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=ActiveMQ.Advisory.Connection
> java.lang:type=MemoryPool,name=PS Perm Gen
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,clientId=ID_Lain-50070-1311715845408-9_1,consumerId=SERVER-com.xmlnamespace.panel.core.login.loginmanager-50070-1311715845408-10_1_-1_1
> java.lang:type=GarbageCollector,name=PS Scavenge
> java.lang:type=MemoryPool,name=PS Old Gen
> org.apache.activemq:BrokerName=com.xmlnamespace.panel.core.broker,Type=Topic,Destination=com.xmlnamespace.panel.core.mtl.modeleventtopic
> JMImplementation:type=MBeanServerDelegate
> It seems as if only the last client connection has a NameObject.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira