Saturday, March 10, 2018

Scripted THREAD DUMP on weblogic 12.2.1 and Above




Scripted THREAD DUMP in Weblogic 12.2.1 and Above.

export MSERVER=<ManagedServer>
export DOMAIN_NAME=<DOMAINNAME>
export PID=`ps -ef | grep -iE "[D]weblogic\.Name=${MSERVER}.*${DOMAIN_NAME}" | cut -c10-15`
export JAVA_HOME=<JAVAHOME (path path of jdk1.8 >
export TD_FILE=/tmp/threaddump_${MSERVER}_`date +%Y%m%dT%H%M%S%Z`.out
echo "Thread dump file generation (`date`)" > ${TD_FILE}
for i in {1..10}; do echo "`date +%s.%N` - Thread dump $i"; $JAVA_HOME/bin/jstack -l $PID >> ${TD_FILE} 2>&1; echo "`date +%s.%N` - Done dump $i"; sleep 10; done
 zip -9mj ${TD_FILE}.zip ${TD_FILE} # this will move the file to inside zip

Thursday, May 28, 2015

Not able to Invoke GUI when running config.sh in weblogic/SOA/OEM installer

 Not able to Invoke GUI when running config.sh in weblogic/SOA/OEM  installer

Today i encountered a strange issue, I was trying to  launch the GUI installer

I have installed the Xming/Cygwin , and I was able to invoke the xclock successfully.

java -d64 -jar Oracle_WebLogic_Server_11gR1_10.3.6_Coherence_wls1036_generic.jar

java -d64 -jar wls1035_generic.jar
 

You can also enable logging which invoke the config.sh


config.sh -log=<path_to_a_file.log> -log_priority=trace
 

It was always going to console mode installation.

and it doesn't throw any error also.

The solution I found was the missing os libraries


A) As root, check for the packages as shown after installation to confirm availability:

$ rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" | grep xorg-x11-utils
$ rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" | grep libXtst





The following packages were not installed on the OS, which are required for installation and operation:

1.) libXtst-1.0.1-3.1
2.) xorg-x11-utils 


yum install libXtst
yum install xorg-x11-util


B) Please, remove the "${JVM_D64}" parameter from: config.sh file


JVM_ARGS="-Dprod.props.file='${WL_HOME}/.product.properties' -Dpython.cachedir=/tmp/cachedir ${JVM_D64} ${MEM_ARGS} ${CONFIG_JVM_ARGS}"

 
After I was able to invoke the GUI without any issue