Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002354 [Resin] minor always 01-22-08 08:31 02-13-08 10:11
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.4
Summary 0002354: JMX: serverconnector not showing own server
Description We have 10 Resin servers (3.0.24) in the cluster, but when I try to list them using JMX I got only 9 of them listed.
It doesn't list the local server (the one from which the servlet is actually invoked).

Here is the code:

for (int i = 0; i < clusterList.length; i++) {
ClusterMXBean cluster = (ClusterMXBean) Jmx.findGlobal(clusterList[i].getObjectName());
ServerConnectorMXBean[] srunNames = cluster.getServers();
for (int j = 0; j < srunNames.length; j++) {
ServerConnectorMXBean server = (ServerConnectorMXBean) Jmx
.findGlobal(srunNames[j].getObjectName());
String host = server.getAddress();
int port = server.getPort();
String state = server.getState();
}
}

And here is the configuration when I list all resin MX objects:

resin:type=SessionManager,Host=default,WebApp=/
resin:type=ServerConnector,name=i
resin:type=ServerConnector,name=h
resin:type=ServerConnector,name=b
resin:type=Resin
resin:type=ServerConnector,name=j
resin:type=ProxyCache
resin:type=Host,name=default
resin:type=ServerConnector,name=c
resin:type=ServerConnector,name=e
resin:type=Port,name=192.68.1.50-6802
resin:type=ServerConnector,name=g
resin:type=ServerConnector,name=a
resin:type=ThreadPool
resin:type=WebApp,Host=default,name=/
resin:type=WebApp,Host=default,name=/mya
resin:type=ConnectionPool,Host=default,WebApp=/mya,name=jdbc/mya
resin:type=ServerConnector,name=f
resin:type=Cluster,name=cluster1
resin:type=ServerConnector,name=d
resin:type=SessionManager,Host=default,WebApp=/mya
resin:type=Server
Additional Information
Attached Files

- Relationships

- Notes
(0002764)
ferg
02-13-08 10:11

server/2777
 

- Issue History
Date Modified Username Field Change
01-22-08 08:31 ferg New Issue
02-13-08 09:38 ferg Status new => acknowledged
02-13-08 10:11 ferg Note Added: 0002764
02-13-08 10:11 ferg Assigned To  => ferg
02-13-08 10:11 ferg Status acknowledged => closed
02-13-08 10:11 ferg Resolution open => fixed
02-13-08 10:11 ferg Fixed in Version  => 3.1.5


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker