Hi,

Jay SenSharma

Jay SenSharma

All the investigations starts with the Statistics available with us to Debug the Runtime informations of a Server…Here is a very useful utility “weblogic.Admin” using this we can get all the Runtime Statistics which we want to start our Investigations or Just to Monitor the Subsystems of our Server:

Using “weblogic.Admin” command line utility we can get All the Runtime Informations regarding the container:

Reading Server Logs:

java weblogic.Admin -url t3://JAYKUMARS02:7001 -username weblogic -password weblogic SERVERLOG

To read managede Server Log after 8:00 AM remotely

java weblogic.Admin -url MS1HostName:7003 -username weblogic -password weblogic SERVERLOG 08:00

Getting JVM Statistics

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic GET -pretty -type JVMRuntime

Getting Application Statistics

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic GET -pretty -type ApplicationRuntime

For GC request

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic INVOKE -pretty -type JVMRuntime -method runGC

Example:
Step-1). Open command Window and then run “setWLSEnv.sh” or “setWLSEnv.cmd”
Step-2). Run the Following Command By Passing the Runtime Information which you want to Debug:

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic GET -pretty -type ApplicationRuntime

You can use the Following types:

ClusterRuntime
ConnectorConnectionPoolRuntime
ConnectorConnectionRuntime
ConnectorServiceRuntime
DeploymentRuntime
DomainRuntime
EjbComponentRuntime
EjbEntityHomeRuntime
EjbMessageDrivenRuntime
EjbStatefulHomeRuntime
EjbStatelessHomeRuntime
ExecuteQueueRuntime
JdbcConnectionPoolRuntime
JmsConnectionRuntime
JmsConsumerRuntime
JmsDestinationRuntime
JMSDurableSubscriberRuntime
JmsProducerRuntime
JmsRuntime
JmsServerRuntime
JmsSessionPoolRuntime
JmsSessionRuntime
JoltConnectionPoolRuntime
JoltConnectionRuntime
JoltConnectionServiceRuntime
JtaRuntime
JvmRuntime
LogBroadcasterRuntime
ServerRuntime
ServerSecurityRuntime
ServletRuntime
ServletSessionRuntime
TimeServiceRuntime
TransactionNameRuntime
TransactionResourceRuntime
WebAppComponentRuntime

OUTPUT: What u get

java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic GET -pretty -type ApplicationRuntime

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=bea_wls_internal,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=bea_wls_internal}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=AdminServer_/bea_wls_internal}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=bea_wls_internal}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=mejb,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=mejb}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=mejb}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=mejb}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=bea_wls9_async_response,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=bea_wls9_async_response}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=AdminServer_/_async}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=bea_wls9_async_response}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=bea_wls9_async_response!AsyncResponseServiceSoap12,bea_wls9_async_response!AsyncResponseService}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=MyDataSource,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=MyDataSource}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=MyDataSource}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=MyDataSource}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=SystemModuleA,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=SystemModuleA}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=SystemModuleA}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=SystemModuleA}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=consoleapp,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=consoleapp}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=AdminServer_/console,AdminServer_/consolehelp}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=consoleapp}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=}}

{MBeanName="7001_Domain:ServerRuntime=AdminServer,Name=UsernameTokenEar,Location=AdminServer,Type=ApplicationRuntime"{ApplicationName=UsernameTokenEar}{ApplicationVersion=}{CachingDisabled=true}{ComponentRuntimes=AdminServer_/UsernameTolenWebService}{HealthState=Component:null,State:HEALTH_OK,MBean:null,ReasonCode:[]}{KodoPersistenceUnitRuntimes=}{LibraryRuntimes=}{Name=UsernameTokenEar}{OptionalPackageRuntimes=}{Parent=AdminServer}{QueryCacheRuntimes=}{Registered=true}{Type=ApplicationRuntime}{WseeRuntimes=UsernameTokenEar#1!UsernameTolenWebServiceService}}

.
.
Thanks
Jay SenSharma

If you enjoyed this post, please considerleaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.