Posts

Showing posts from March, 2014

Thread Dump Analysis

Dear WebLogic users/Administrator you might already visited many other sites that discussed about - how to take the thread dump. But here I am going to tell you about automation script makes more simplified way of working, with more information - almost 70% on the occasion of STUCK thread Thread dumps will reveals. In case of High CPU utilization situations, which method is badly working. Step by Step analysis for Thread Dump Thread dump troubleshooting from Jerry Chan Step 1: Automated Thread Dump for WebLogic Take the Thread dump for a managed server that have issues or slowness or latency etc. You just read the description and start applying to your test environment and then try out on your Live environments. Cheers! #!/bin/bash # This script will takes the managed server name as argument and it will work generic to Linux or SunOS or HP-UX. # The only ps command options varies for each platform # Kill -3 command used for every 10 seconds of interval. You can increa...

RegEx for WebLogic Admin

Trick on grep Normally every WebLogic user/Admin knows that "ps -ef|grep java" gives you the WebLogic servers process list in any UNIX or Linux environments. Most of the forums suggesting use "|grep -v" to exclude the "grep line". But, here I don't want to use one more pipe and grep -v option really makes expensive in CPU cycles. Searched for the optimistic solutions and finally found! Two choices using --exclude  and using regex. The exclude options is not available on all UNIX systems. So I've chosen next option. How do you avoid the grep line in the grep command output itself? Here the trick is using the regular expression to workout this requirement. Use your searching pattern any one of the character in [] then it will automatically excludes the grep line from the output. actually it wouldn't get output itself! bash-2.05$ ps -ef |grep jav[a] weblogic   950   934  0   Feb 10 ?        0:06 /usr/local/bea/jdk142_11/bin/java -clie...

WebLogic Server name its PID, CPU, MEM

Image
I am on a 'THINKING CHAIR' again, thinking to find the fine chopped shell script for displaying process id on the opposite to it the WebLogic(java process) instance name. This is the regular need for any WebLogic Administrator. 1. Some times the Thread counts monitoring cannot help to know the status of the Server instance then need to look for the instance is alive or not. That is the java process exist for that particular instance. 2. You may get Stuck Thread alert for any machine through your monitoring tools (HP OVO, Introscope or some other). Then you need to get the thread dump for the stuck thread found WebLogic instance. 3. You may want to kill an instance for any abnormal reasons What is 'ps' command does? The 'ps' command gives us information about processes status on Solaris or Linux or any other UNIX flavor.  There are different varieties of 'ps' command paths i) /usr/bin/ps ii) /usr/ucb/ps If you type “ps” at the prompt, and you...