admin@glassfish.java.net

monitoring in V3 -- anything at all?

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 25 Sep 2008 15:47:44 -0700

Dixie,

Maybe I'm really out of the loop here, but do we actually have *any*
monitoring working in V3 at all? AFAIK there is none through CLI or
anything else (excepting the built in JDK MBean stuff). This makes
all the CLI commands for monitoring irrelevant.

...

Regarding JConsole/JMX in Prelude, it's very very simple for V3.

- security is neither enabled nor possible for V3, no SSL/TLS either,
so only host and port are needed.

- strip everything about enterprise and cluster editions, securely
connecting.

- port 8686 is the standard one, but if the configuration in jmx-
connector is changed, then 8686 must be changed to the appropriate
value. The server emits the JMXServiceURL at startup:
Sep 25, 2008 3:45:20 PM
org.glassfish.admin.mbeanserver.ConnectorStartupService
$ConnectorsStarterThread startConnector
INFO: Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/
rmi://192.168.1.8:8686/jmxrmi

- there are a limited number of MBeans. AMX MBeans covering the
general facilities and configuration are present, but there are no
monitoring or JSR 77 MBeans.

- the standard JVM MBeans are available

- add a picture, it's worth a lot for understanding.













These are the MBeans that are available for use with a basic
configuration. I'm not sure you need to list these.

amx:j2eeType=X-AccessLogConfig,name=na,X-ConfigConfig=server-config,X-
HTTPServiceConfig=na
amx:j2eeType=X-AdminServiceConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-ApplicationConfig,name=__admingui
amx:j2eeType=X-ApplicationsConfig,name=na
amx:j2eeType=X-AuditModuleConfig,name=default,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-AuthRealmConfig,name=admin-realm,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-AuthRealmConfig,name=certificate,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-AuthRealmConfig,name=file,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-BulkAccess,name=na
amx:j2eeType=X-ConfigConfig,name=server-config
amx:j2eeType=X-ConfigsConfig,name=na
amx:j2eeType=X-ConnectionPoolConfig,name=na,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na
amx:j2eeType=X-DASConfig,name=na,X-AdminServiceConfig=na,X-
ConfigConfig=server-config
amx:j2eeType=X-DeployedItemRefConfig,name=__admingui,X-
StandaloneServerConfig=server
amx:j2eeType=X-DomainConfig,name=na
amx:j2eeType=X-DomainRoot,name=domain1
amx:j2eeType=X-EJBContainerConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-EJBTimerServiceConfig,name=na,X-ConfigConfig=server-
config,X-EJBContainerConfig=na
amx:j2eeType=X-EngineConfig,name=security,X-ApplicationConfig=__admingui
amx:j2eeType=X-EngineConfig,name=web,X-ApplicationConfig=__admingui
amx:j2eeType=X-HTTPFileCacheConfig,name=na,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na
amx:j2eeType=X-HTTPListenerConfig,name=admin-listener,X-
ConfigConfig=server-config,X-HTTPServiceConfig=na
amx:j2eeType=X-HTTPListenerConfig,name=http-listener-1,X-
ConfigConfig=server-config,X-HTTPServiceConfig=na
amx:j2eeType=X-HTTPListenerConfig,name=http-listener-2,X-
ConfigConfig=server-config,X-HTTPServiceConfig=na
amx:j2eeType=X-HTTPProtocolConfig,name=na,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na
amx:j2eeType=X-HTTPServiceConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-IIOPListenerConfig,name=SSL,X-ConfigConfig=server-
config,X-IIOPServiceConfig=na
amx:j2eeType=X-IIOPListenerConfig,name=SSL_MUTUALAUTH,X-
ConfigConfig=server-config,X-IIOPServiceConfig=na
amx:j2eeType=X-IIOPListenerConfig,name=orb-listener-1,X-
ConfigConfig=server-config,X-IIOPServiceConfig=na
amx:j2eeType=X-IIOPServiceConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-JACCProviderConfig,name=default,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-JACCProviderConfig,name=simple,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-JDBCConnectionPoolConfig,name=DerbyPool
amx:j2eeType=X-JDBCConnectionPoolConfig,name=__TimerPool
amx:j2eeType=X-JDBCResourceConfig,name=jdbc/__TimerPool
amx:j2eeType=X-JDBCResourceConfig,name=jdbc/__default
amx:j2eeType=X-JMSHostConfig,name=default_JMS_host,X-
ConfigConfig=server-config,X-JMSServiceConfig=na
amx:j2eeType=X-JMSServiceConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-JMXConnectorConfig,name=system,X-
AdminServiceConfig=na,X-ConfigConfig=server-config
amx:j2eeType=X-JavaConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-KeepAliveConfig,name=na,X-ConfigConfig=server-config,X-
HTTPServiceConfig=na
amx:j2eeType=X-KitchenSink,name=na
amx:j2eeType=X-LogServiceConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-LoggingPropertiesMgr,name=na
amx:j2eeType=X-MDBContainerConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-ManagementRulesConfig,name=na,X-ConfigConfig=server-
config
amx:j2eeType=X-ManagerPropertiesConfig,name=na,X-ConfigConfig=server-
config,X-SessionConfig=na,X-SessionManagerConfig=na,X-
WebContainerConfig=na
amx:j2eeType=X-MessageSecurityConfig,name=na,X-ConfigConfig=server-
config,X-SecurityServiceConfig=na
amx:j2eeType=X-ModuleLogLevelsConfig,name=na,X-ConfigConfig=server-
config,X-LogServiceConfig=na
amx:j2eeType=X-ModuleMonitoringLevelsConfig,name=na,X-
ConfigConfig=server-config,X-MonitoringServiceConfig=na
amx:j2eeType=X-MonitoringServiceConfig,name=na,X-ConfigConfig=server-
config
amx:j2eeType=X-
NotificationEmitterService,name=DomainNotificationEmitterService
amx:j2eeType=X-NotificationServiceMgr,name=na
amx:j2eeType=X-ORBConfig,name=na,X-ConfigConfig=server-config,X-
IIOPServiceConfig=na
amx:j2eeType=X-Pathnames,name=na
amx:j2eeType=X-PropertyConfig,name=DatabaseName,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=Password,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=PortNumber,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=User,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=accessLoggingEnabled,X-
ConfigConfig=server-config,X-HTTPServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=accesslog,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=__asadmin
amx:j2eeType=X-PropertyConfig,name=accesslog,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=server
amx:j2eeType=X-PropertyConfig,name=adminConsoleContextRoot,X-
AdminServiceConfig=na,X-ConfigConfig=server-config
amx:j2eeType=X-PropertyConfig,name=adminConsoleDownloadLocation,X-
AdminServiceConfig=na,X-ConfigConfig=server-config
amx:j2eeType=X-PropertyConfig,name=adminConsoleVersion,X-
AdminServiceConfig=na,X-ConfigConfig=server-config
amx:j2eeType=X-PropertyConfig,name=administrative.domain.name
amx:j2eeType=X-PropertyConfig,name=auditOn,X-
AuditModuleConfig=default,X-ConfigConfig=server-config,X-
SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=connectionAttributes,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=connectionAttributes,X-
JDBCConnectionPoolConfig=__TimerPool
amx:j2eeType=X-PropertyConfig,name=databaseName,X-
JDBCConnectionPoolConfig=__TimerPool
amx:j2eeType=X-PropertyConfig,name=debug,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ClientProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=debug,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ServerProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=debug,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=debug,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=docroot,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=__asadmin
amx:j2eeType=X-PropertyConfig,name=docroot,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=server
amx:j2eeType=X-PropertyConfig,name=dynamic.username.password,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=dynamic.username.password,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=encryption.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=encryption.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=encryption.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=encryption.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=file,X-AuthRealmConfig=admin-
realm,X-ConfigConfig=server-config,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=file,X-AuthRealmConfig=file,X-
ConfigConfig=server-config,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=ipsRoot,X-AdminServiceConfig=na,X-
ConfigConfig=server-config
amx:j2eeType=X-PropertyConfig,name=jaas-context,X-
AuthRealmConfig=admin-realm,X-ConfigConfig=server-config,X-
SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=jaas-context,X-
AuthRealmConfig=file,X-ConfigConfig=server-config,X-
SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=proxiedProtocols,X-
ConfigConfig=server-config,X-HTTPListenerConfig=http-listener-1,X-
HTTPServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=repository,X-ConfigConfig=server-
config,X-JACCProviderConfig=default,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=security.config,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=security.config,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=serverName,X-
JDBCConnectionPoolConfig=DerbyPool
amx:j2eeType=X-PropertyConfig,name=signature.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=signature.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=signature.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=signature.key.alias,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-PropertyConfig,name=sso-enabled,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=__asadmin
amx:j2eeType=X-PropertyConfig,name=sso-enabled,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na,X-VirtualServerConfig=server
amx:j2eeType=X-ProviderConfig,name=ClientProvider,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
SecurityServiceConfig=na
amx:j2eeType=X-ProviderConfig,name=ServerProvider,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
SecurityServiceConfig=na
amx:j2eeType=X-ProviderConfig,name=XWS_ClientProvider,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
SecurityServiceConfig=na
amx:j2eeType=X-ProviderConfig,name=XWS_ServerProvider,X-
ConfigConfig=server-config,X-MessageSecurityConfig=na,X-
SecurityServiceConfig=na
amx:j2eeType=X-QueryMgr,name=na
amx:j2eeType=X-RealmsMgr,name=na
amx:j2eeType=X-RequestPolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ClientProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-RequestPolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ServerProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-RequestPolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-RequestPolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-RequestProcessingConfig,name=na,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na
amx:j2eeType=X-ResourceRefConfig,name=jdbc/__TimerPool,X-
StandaloneServerConfig=server
amx:j2eeType=X-ResourceRefConfig,name=jdbc/__default,X-
StandaloneServerConfig=server
amx:j2eeType=X-ResourcesConfig,name=na
amx:j2eeType=X-ResponsePolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ClientProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-ResponsePolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-ProviderConfig=ServerProvider,X-
SecurityServiceConfig=na
amx:j2eeType=X-ResponsePolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ClientProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-ResponsePolicyConfig,name=na,X-ConfigConfig=server-
config,X-MessageSecurityConfig=na,X-
ProviderConfig=XWS_ServerProvider,X-SecurityServiceConfig=na
amx:j2eeType=X-RuntimeMgr,name=na
amx:j2eeType=X-SSLConfig,name=na,X-ConfigConfig=server-config,X-
HTTPListenerConfig=http-listener-2,X-HTTPServiceConfig=na
amx:j2eeType=X-SSLConfig,name=na,X-ConfigConfig=server-config,X-
IIOPListenerConfig=SSL,X-IIOPServiceConfig=na
amx:j2eeType=X-SSLConfig,name=na,X-ConfigConfig=server-config,X-
IIOPListenerConfig=SSL_MUTUALAUTH,X-IIOPServiceConfig=na
amx:j2eeType=X-Sample,name=na
amx:j2eeType=X-SecurityServiceConfig,name=na,X-ConfigConfig=server-
config
amx:j2eeType=X-ServersConfig,name=na
amx:j2eeType=X-SessionConfig,name=na,X-ConfigConfig=server-config,X-
WebContainerConfig=na
amx:j2eeType=X-SessionManagerConfig,name=na,X-ConfigConfig=server-
config,X-SessionConfig=na,X-WebContainerConfig=na
amx:j2eeType=X-SessionPropertiesConfig,name=na,X-ConfigConfig=server-
config,X-SessionConfig=na,X-WebContainerConfig=na
amx:j2eeType=X-StandaloneServerConfig,name=server
amx:j2eeType=X-StorePropertiesConfig,name=na,X-ConfigConfig=server-
config,X-SessionConfig=na,X-SessionManagerConfig=na,X-
WebContainerConfig=na
amx:j2eeType=X-SystemApplicationsConfig,name=na
amx:j2eeType=X-SystemInfo,name=na
amx:j2eeType=X-SystemStatus,name=na
amx:j2eeType=X-ThreadPoolConfig,name=thread-pool-1,X-
ConfigConfig=server-config
amx:j2eeType=X-ThreadPoolsConfig,name=na,X-ConfigConfig=server-config
amx:j2eeType=X-TransactionServiceConfig,name=na,X-ConfigConfig=server-
config
amx:j2eeType=X-UploadDownloadMgr,name=na
amx:j2eeType=X-VirtualServerConfig,name=__asadmin,X-
ConfigConfig=server-config,X-HTTPServiceConfig=na
amx:j2eeType=X-VirtualServerConfig,name=server,X-ConfigConfig=server-
config,X-HTTPServiceConfig=na
amx:j2eeType=X-WebContainerConfig,name=na,X-ConfigConfig=server-config

java.lang:type=ClassLoading
java.lang:type=Compilation
java.lang:type=GarbageCollector,name=Copy
java.lang:type=GarbageCollector,name=MarkSweepCompact
java.lang:type=Memory
java.lang:type=MemoryManager,name=CodeCacheManager
java.lang:type=MemoryPool,name=Code Cache
java.lang:type=MemoryPool,name=Eden Space
java.lang:type=MemoryPool,name=Perm Gen
java.lang:type=MemoryPool,name=Perm Gen [shared-ro]
java.lang:type=MemoryPool,name=Perm Gen [shared-rw]
java.lang:type=MemoryPool,name=Survivor Space
java.lang:type=MemoryPool,name=Tenured Gen
java.lang:type=OperatingSystem
java.lang:type=Runtime
java.lang:type=Threading


On Sep 25, 2008, at 1:53 PM, Dixie Pine wrote:

> Hi Lloyd,
>
> Kedar says you are the Jconsole guy for Prelude, so I've attached a
> PDF of just the
> monitoring chapter in the Prelude Admin Guide. Jconsole is at the
> end of this
> chapter (Prashanth and Jennifer are reviewing the rest of the
> monitoring chapter). This
> jconsole material is from gfTP2 and from gfv2.
>
> I need to know what should be hidden for prelude, and what should be
> changed or added. Some
> seems redundant. I have a few queries embedded, but you actually
> need to look at
> all the material because I don't know enough about jconsole to ask
> good questions.
>
> Can I get your feedfback by 9/30?
>
> Thanks,
> Dixie
> <monSJSASEEAG.pdf>