Oracle WebLogic — Prerequisites
Prerequisites for monitoring Oracle WebLogic with HEAL.
Prerequisites to complete before adding this component in the HEAL Control Center.
Create a non-admin user and add the user to the Monitors group.
Starting WebLogic without SSL Enabled#
Java Options in the startup file must be modified to enable JMX port. To do so, append the following lines, as a single line, just below the existing JAVA_OPTIONS code in the WebLogic application’s setDomainEnv file.
Linux:
JAVA_OPTIONS="$JAVA_OPTIONS
-Djava.rmi.server.hostname=<WebLogic System IP Address>
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=<define JMX port>
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
export JAVA_OPTIONS
Windows:
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.rmi.server.hostname=<WebLogic System IP Address>
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.sun.management.jmxremote
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.sun.management.jmxremote.port=<Define JMX port>
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.sun.management.jmxremote.ssl=false
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.sun.management.jmxremote.authenticate=false
To enable and configure Platform MBean Server, follow the below steps:
- In the WebLogic admin console, click Domain → Configuration → General, and then click Advanced.
- Select the checkmark corresponding to the Platform MBean Server Enabled property.
-
You need to do additional configuration to let WebLogic use the
PlatformMBeanServerfor its runtime MBeans. To do so, follow these steps:- Navigate to the following location and run the
wlst.cmd/shfile.Linux/Unix:<weblogic directory>/common/bin/wlst.shWindows:<weblogic directory>\common\bin\wlst.cmdThe WLST console opens. -
Enter the domain to be read.
wls:/offline> readDomain('<domain location>')Example:
wls:/offline> readDomain('c:/bea/wlserver_10.0/samples/domains/wl_server') -
Follow the sequence of steps displayed below:
wls:/offline/wl_server> cd('JMX') wls:/offline/wl_server/JMX> ls() drw- NO_NAME_0 wls:/offline/wl_server/JMX> cd('NO_NAME_0') wls:/offline/wl_server/JMX/NO_NAME_0> ls() -rw- CompatibilityMBeanServerEnabled true -rw- DomainMBeanServerEnabled true -rw- EditMBeanServerEnabled true -rw- InvocationTimeoutSeconds 0 -rw- ManagementEJBEnabled true -rw- Name null -rw- Notes null -rw- PlatformMBeanServerEnabled false -rw- PlatformMBeanServerUsed false -rw- RuntimeMBeanServerEnabled true wls:/offline/wl_server/JMX/NO_NAME_0> set('PlatformMBeanServerUsed','true') wls:/offline/wl_server/JMX/NO_NAME_0> set('PlatformMBeanServerEnabled','true') wls:/offline/wl_server/JMX/NO_NAME_0> updateDomain() wls:/offline/wl_server/JMX/NO_NAME_0> closeDomain() wls:/offline> exit() -
Start the WebLogic server.
- Navigate to the following location and run the
Determine the WebLogic server’s port number (monitor port). To do so, open the <WebLogic Domain>/config/config.xml file and locate the listen-port:
<server>
<name>AdminServer</name>
<listen-port>7001</listen-port>
Starting WebLogic with SSL Enabled#
Follow the steps below to start WebLogic with SSL enabled:
-
Configure
JAVA_OPTIONSwith the required properties:JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.password.file=<Path of Java Password> -Dcom.sun.management.jmxremote.access.file=<Path of access file> -Djava.rmi.server.hostname=<WebLogic System IP Address> -Dcom.sun.management.jmxremote.port=<Port of WebLogic System> -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=true -Dcom.sun.management.jmxremote.ssl.need.client.auth=true -Dcom.sun.management.jmxremote.registry.ssl=true -Djavax.net.ssl.keyStore=<Path of keystore file> -Djavax.net.ssl.keyStorePassword=serverpass -Djavax.net.ssl.trustStore=<Path of servertruststore file> -Djavax.net.ssl.trustStorePassword=servertrustpass" export JAVA_OPTIONS -
Create empty files for
serverkeystoreandservertruststore. -
Set the permissions for the JMX remote password file to
400:chmod 400 /usr/java/jdk1.8.0_311-amd64/jre/lib/management/jmxremote.password.template -
Update the
setDomainEnvfile and restart WebLogic:- Add the modified
JAVA_OPTIONSto thesetDomainEnvfile. - Restart WebLogic.
- Add the modified
Ensure that the WebLogic server’s monitor port (default 7001) and JMX port are opened for data collection to collect WebLogic and JVM KPIs.
See also: Oracle WebLogic (what HEAL monitors)