Weblogic server process is forked on startup (Doc ID 1395566.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 9.2 and later   [Release: and later ]
Oracle Access Manager - Version: 11.1.1.3.0 and later ]
Linux x86

Symptoms

WebLogic process is forked after the startup. In that scenario multiple processes are created simultaneously.

Following output is the result of the command "ps aux|grep weblogic"

oracle 32237 32202 09:30 00:00:02 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32238 32237 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32239 32238 09:30 00:00:05 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32240 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32241 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32242 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32243 32238 09:30 00:00:01 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32244 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32245 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32247 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32248 32238 09:30 00:00:32 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32249 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32250 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32251 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32252 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32253 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32254 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32255 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32256 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32257 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32258 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32259 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32260 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32261 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32262 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32264 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32265 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32267 32238 09:30 00:00:19 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32268 32238 09:30 00:00:24 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32269 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32270 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32271 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32272 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32273 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...
oracle 32274 32238 09:30 00:00:00 /opt/oracle/product/oam/bea/jdk150_12/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 ...


For this particular example:
  • There are three main process: Process ID 32202, 32237 and 32238
  • 32238 is the Parent Process ID for several processes.

Note that:
  • All processes are clones and were created at the same time.
  • Process Ids are consecutive.
  • If the first process is killed, child processes will be killed too.
  • Issue could be verified with the following command also:
$ pstree -Gplan | grep weblogic

Changes

Modifications were done on the WebLogic start-up script according to the OAM integration,

The following lines were added to the script startWebLogic.sh

OBACCESS_INSTALL_DIR="/opt/oracle/product/oam/netpoint/AASDK/AccessServerSDK"
export OBACCESS_INSTALL_DIR
LD_ASSUME_KERNEL="2.4.19"
export LD_ASSUME_KERNEL
CLASSPATH=${CLASSPATH}:/opt/oracle/product/oam/netpoint/ASSDK/AccessServerSDK/oblix/lib/jobaccess.jar
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/oracle/product/oam/netpoint/ASSDK/AccessServerSDK/oblix/lib
PATH=${PATH}:/opt/oracle/product/oam/netpoint/ASSDK/AccessServerSDK/oblix/lib

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms