Friday, July 21, 2006

How to enable dtrace with usermod on Solaris 10?

To enable dtrace for "foo"
usermod -K defaultpriv=basic,proc_owner,dtrace_kernel,dtrace_proc,dtrace_user foo

Friday, July 14, 2006

How to instrument WebLogic with JProbe?

There are two ways.

1. Customize with instrumentation.
For instance, for JProbe, we can do the following
-jp_java="$JAVA_HOME/bin/java" -jp_input="myapp.jpl" -Dweblogic.Name=${SERVER_NAME}${WLS_USER}${WLS_PW}${ADMIN_URL}"${WL_HOME}/server/lib/weblogic.policy" -Duser.timezone="MST""${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 to write your own

For example, if you set, is used to start Weblogic Managed server with jplauncher just like in 1.