### ### get_JVM.sh ### ### ### Calls get_JVM.jacl ### ### Generates JACL source code for configuring JVM process definition ### service properties in a WebSphere AppServer installation ### ### Take the output and plug it into set_javaProcessDef.jacl ### ### ### ### ### Usage: ### get_JavaProcessDef.sh -s servername ### ### ### For more information see: ### www.setgetweb.com/p/WAS51/wasinfo1/aes/javadoc/wccm/processexec/JavaVirtualMachine.html ### USAGE="\nUsage: $0 -s server\n" while getopts ":s:" opt; do case $opt in s ) xserver=$OPTARG ;; * ) echo $USAGE exit 1 ;; esac done if [ "$xserver" = "" ] then echo $USAGE exit 1 fi ### ### For the sed commands below ### If line begins with xyz, append to line above ### wsadmin.sh -username system -password password -f get_JavaProcessDef.jacl $xserver | \ sed "/^$/d" | \ grep -v WASX7209I: | \ sed -e :a -e "$!N;s/\n{/{/;ta" -e "P;D" | \ sed "s/{WAS_INSTALL_ROOT}/WAS_INSTALL_ROOT/g" | \ sed "s/^/\$AdminConfig modify \$jvm {/" | \ sed "s/jvmEntries {{{/{/" | \ sed "s/}}}$/}/" | \ sed "s/$/}/" ### jvmEntries {{{bootClasspath {}} ### {classpath /usr/local/wstest1/acmea/was} ### {debugArgs "-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"} ### {debugMode false} ### {disableJIT false} ### {initialHeapSize 0} ### {maximumHeapSize 1024} ### {runHProf false} ### {systemProperties {{{name db2j.system.home} ### {required false} ### {value ${WAS_INSTALL_ROOT}/properties}} {{name java.security.auth.login.config} ### {required false} ### {value /opt/WebSphere/AppServer/properties/wsjaas.conf}} {{name java.security.policy} ### {required false} ### {value ${WAS_INSTALL_ROOT}/properties/server.policy}} {{name log4j.configuration} ### {required false} ### {value log4j.xml}} {{name server.root} ### {required false} ### {value ${WAS_INSTALL_ROOT}}} {{description "Required in order to enable Java 2 sandbox security."} ### {name hibernate.cglib.use_reflection_optimizer} ### {required false} ### {value false}} {{name acmea.home} ### {required false} ### {value /usr/local/wstest1/acmea}}}} ### {verboseModeClass false} ### {verboseModeGarbageCollection false} ### {verboseModeJNI false}}}
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.