cinqict

Wednesday, November 25, 2015

VirtualBox Installatie Weblogic 12 Cursus

 

Deze blog is specifiek voor de weblogic 12 cursus voor Cinq.

Download VirtualBox voor je specifieke OS van de volgende site:

http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

Versie 5.0.10 volstaat

Installeer de gedownloade software op je PC en open Oracle VirtualBox

Ga naar File > Preferences > Network > HostOnly Networks en maak een nieuw Network aan door op het groene plusje te klikken

image

Wanneer het network is aangemaakt, dubbelklik je hierop om deze te configureren

Zorg ervoor dat je onderstaande instellingen overneem:

image

image

 

Hierna dien je je pc te herstarten en daarna Oracle VirtualBox weer te starten

Ga nu naar File > Import Appliance en selecteer de image voor de weblogic cursus )ova bestand):

 

image

Klik op Next

Zorg ervoor dat je Reinitialize the MAC Address UIT laat staan !!!

image

Klik op Import

Wanneer de import gedaan is, zie de je virtual host terug in je VirtualBox Manager scherm.

Rechts-klik op de virtualbox en selecteer Settings > Network

image

Zorg ervoor dat Adapter 1 enabled is en attached is met Host-Only Adapter

In Name hoort de HostOnly adapter te staan, welke in de eerdere stap is aangemaakt.

Start vervolgens de VirtualBox op en login met de oraoas user.

Controleer met ifconfig –a of het juiste ipaddress is verkregen. Dit dient 192.168.1.121 te zijn.

 

Zorg er voor dat je een X sessie kunt openen naar de VirtualBox server vanaf je PC.

Voor Linux kun je bijvoorbeeld gebruik maken van ssh –Y

Voor Windows kun je via Putty gebruik maken van Xming

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!