To enable dtrace for "foo"
usermod -K defaultpriv=basic,proc_owner,dtrace_kernel,dtrace_proc,dtrace_user foo
Friday, July 21, 2006
Friday, July 14, 2006
How to instrument WebLogic with JProbe?
There are two ways.
1. Customize startManagedWebLogic.sh with instrumentation.
For instance, for JProbe, we can do the following
${JPROBE}/bin/jplauncher
-jp_java="$JAVA_HOME/bin/java" -jp_input="myapp.jpl" -Dweblogic.Name=${SERVER_NAME} -Dweblogic.management.username=${WLS_USER} -Dweblogic.management.password=${WLS_PW} -Dweblogic.management.server=${ADMIN_URL} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" -Duser.timezone="MST" -Djava.security.auth.login.config="${EM_ABP_HOME}/wl_jaas.config" weblogic.Server
jplaucher will kick off the instrumented JVM.
2. Use a different node manager start up script.
To avoid passing those environment variables as above, use a customized node manager start up script is a good idea.
look at startNodeManager.sh to write your own
nodemanager.properties
======================
StartTemplate=myjprobe.sh
For example, if you set StartTemplate=myjprobe.sh, myjrobe.sh is used to start Weblogic Managed server with jplauncher just like in 1.
1. Customize startManagedWebLogic.sh with instrumentation.
For instance, for JProbe, we can do the following
${JPROBE}/bin/jplauncher
-jp_java="$JAVA_HOME/bin/java" -jp_input="myapp.jpl" -Dweblogic.Name=${SERVER_NAME} -Dweblogic.management.username=${WLS_USER} -Dweblogic.management.password=${WLS_PW} -Dweblogic.management.server=${ADMIN_URL} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" -Duser.timezone="MST" -Djava.security.auth.login.config="${EM_ABP_HOME}/wl_jaas.config" weblogic.Server
jplaucher will kick off the instrumented JVM.
2. Use a different node manager start up script.
To avoid passing those environment variables as above, use a customized node manager start up script is a good idea.
look at startNodeManager.sh to write your own
nodemanager.properties
======================
StartTemplate=myjprobe.sh
For example, if you set StartTemplate=myjprobe.sh, myjrobe.sh is used to start Weblogic Managed server with jplauncher just like in 1.
Subscribe to:
Posts (Atom)