cinqict

Monday, November 9, 2015

Weblogic Monitoring MBEANS with jconsole

 

With jconsole (comes with the oracle jdk) you can connect to a running local process or to a remote process. The last one is a bit tricky.

First of all, to make use of all the functions, you have to make the wlfullclient.jar and pass this to the classpath when starting jconsole.

To make the wlfullclient.jar, install a local middleware ( I used weblogic 12.1.3 for monitoring weblogic 12 as well as 10). Creation of a domain is not needed.

With the middleware installed, change directories to the WL_HOME/server/lib directory. Then, run the following:

java -jar wljarbuilder.jar

wlfullclient.jar will be created in $WL_HOME/server/lib

Now, export your JAVA_HOME and WL_HOME as system variables and run the following to start jconsole:

jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$JAVA_HOME/lib/tools.jar:$WL_HOME/server/lib/wlfullclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote

You can add –debug at the end of you run into problems…

You can add -J-DsocksProxyHost=localhost -J-DsocksProxyPort=1111 if you are using tunneling/proxying to a remote server.

When starting weblogic, the out log file will show the ports that are opened and which protocol is available:

<Nov 9, 2015 12:09:59 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7021 for protocols iiop, t3, ldap, snmp, http.>
<Nov 9, 2015 12:09:59 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:a00:27ff:fe71:4f97:7021 for protocols iiop, t3, ldap, snmp, http.>
<Nov 9, 2015 12:09:59 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 10.0.3.15:7021 for protocols iiop, t3, ldap, snmp, http.>
<Nov 9, 2015 12:09:59 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7021 for protocols iiop, t3, ldap, snmp, http.>
<Nov 9, 2015 12:09:59 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.1.1:7021 for protocols iiop, t3, ldap, snmp, http.>
<Nov 9, 2015 12:09:59 PM CET> <Notice> <WebLogicServer> <BEA-000329> <Started the WebLogic Server Administration Server "AdminServer" for domain "wl_domain" running in production mode.>

Use this port number in the remote connect string :

service:jmx:iiop://10.0.3.15:7021/jndi/weblogic.management.mbeanservers.runtime

image

 

Now, go to the MBEANS tab and search for the mbean you wish to monitor.

Double Click on any value integer on the right pane, and a graph will automatically be created for you

image

 

 

NOTE: If you have enabled the Adminstration Channel, the weblogic user will be forced to use a secure connection. In this case, the way to go is to create a separate user with monitor roles and use this in the jconsole credentials.

 

Happy monitoring!

1 comment:

  1. If you're looking to lose kilograms then you absolutely have to try this totally brand new tailor-made keto diet.

    To create this keto diet, certified nutritionists, fitness trainers, and professional chefs have joined together to develop keto meal plans that are powerful, suitable, cost-efficient, and delicious.

    From their launch in early 2019, hundreds of clients have already remodeled their body and well-being with the benefits a certified keto diet can provide.

    Speaking of benefits: clicking this link, you'll discover 8 scientifically-confirmed ones given by the keto diet.

    ReplyDelete