Weblogic Server Stuck thread and very high cpu usage when executing a query

We were observing frequent server hangs. On taking thread dumps at the time of hang we found the following culprit thread. [STUCK] ExecuteThread: ‘6’ for queue: ‘weblogic.kernel.Default (self-tuning)’” daemon prio=1 tid=01baae30 nid=55 lwp_id=9965842 runnable [1ff05000..1ff03878] at oracle.jdbc.oci8.OCIDBAccess.do_fetch(Native Method) at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java:1758) – locked < 36582dd0> (a oracle.jdbc.oci8.OCIDBAccess) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2659) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2832)

Continue reading »

Shell Script to send alert on HighCPU Usage on Solaris

Find below a sample script which you can use to send a mail when the there is a High CPU.I have tested it on Solaris. The server name is TestServer. Feel free to use it in your environment and to share any thoughts. pid=`/usr/ucb/ps -auxwww | grep TestServer | tr

Continue reading »

Investigating High CPU Usage with Weblogic on Solaris

1 )First determine the Weblogic Server Process id /usr/ucb/ps -auxwww | grep java faiz 8448 1.2 24.025954081965448 ? R Sep 21 249:19 /bea10/jdk1.6.0_14/bin/sparcv9/java -server -Xms2048m -Xmx2048m -verbose:gc -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+UseParallelGC -XX:NewRatio=3 -da -Dplatform.home=/web_apps/bea10/wlserver_10.3 -Dwls.home=/web_apps/bea10/wlserver_10.3/server -Dweblogic.home=/web_apps/bea10/wlserver_10.3/server -Dweblogic.management.discover=false -Dweblogic.management.server=http://xx.xx.xx.xx:10000 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/bea10/patch_wls1030/profiles/default/sysext_manifest_classpath:/bea10/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.Name=Server1 -Djava.security.policy=/bea10/wlserver_10.3/server/lib/weblogic.policy weblogic.Server 2) Find the threads (LWPID) that

Continue reading »