Skip to content

Oracle WebLogic — Prerequisites

Prerequisites for monitoring Oracle WebLogic with HEAL.

2 min read Updated SS

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:

  1. In the WebLogic admin console, click Domain → Configuration → General, and then click Advanced.
  2. Select the checkmark corresponding to the Platform MBean Server Enabled property.
  3. You need to do additional configuration to let WebLogic use the PlatformMBeanServer for its runtime MBeans. To do so, follow these steps:

    1. Navigate to the following location and run the wlst.cmd/sh file.Linux/Unix: <weblogic directory>/common/bin/wlst.shWindows: <weblogic directory>\common\bin\wlst.cmdThe WLST console opens.
    2. Enter the domain to be read.

      wls:/offline> readDomain('<domain location>')
      

      Example:

      wls:/offline> readDomain('c:/bea/wlserver_10.0/samples/domains/wl_server')
      
    3. 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()
      
    4. Start the WebLogic server.

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:

  1. Configure JAVA_OPTIONS with 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
    
  2. Create empty files for serverkeystore and servertruststore.

  3. 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
    
  4. Update the setDomainEnv file and restart WebLogic:

    1. Add the modified JAVA_OPTIONS to the setDomainEnv file.
    2. Restart WebLogic.

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)