Posts

Check system information for Capacity Planning

Working for migration projects requires lots of mesurements about the current running environment that gives you right way for predictions, estimations about the newly build environment. Thinking BIG!!! as architect for the enterprise applications, I started digging details of the system information of every machine I mean, every box and I need to prepare a table that will give all the details about the machine. This will make easy for deciding various things for WebLogic domain and its related environment. Script Objective: Capacity Measurements The Capacity plan is critical where a Senior WebLogic Administrator or Infrastructure Architect need to be more smarter to make wise decisions on allocated infrastructure. If you know the mesurements you can tailor your environment to give best predicated application environment platform. I had seen there is a legacy(old) shell script which gives the required information for mesurements! But it is not really robust and effective to gi...

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...

Setting up a best login profile on UNIX

Image
Usually when you are working on building the platform for any application, you might be given UNIX (Solaris/Linux/HP-UX/AIX) boxes and new generation with Virtual boxes. which contains nothing you need to do many installations and configurations. To make your administrative task easy and simple we need to setup a fine tuned profile file. This profile file will be holding the multiple environment variables those are reusable when you log-on to UNIX Kernel  Here you can define shell functions or you can define simple single lined aliases that makes lengthy commands set to simple trimmed single letter or meaningful words. What is user SHELL and  its profile association? In your UNIX Kernel when a new user login will check the /etc/passwd file which shell is assigned by the super-user. It will look for the system profile and assign the environment values, then on top of it user profile can be loaded. Hence the variable is defined in system profile can be overridden by u...

Configure a WebLogic Server Background Service

Configure a WebLogic Server Background Service server running in the background which is very much required in Production and Test Environments where your operating platform is Windows NT based. Whenever the Windows server is rebooted the WebLogic Admin server or Managed servers running on it are going to started automatically, when they are configured with windows ‘services’. Use WebLogic existing Domain or Create a Domain for testing  Create a installation Script per WebLogic server such as AdminServer or Managed Server Create a .cmd let us workout per AdminServer  with the following  Open notepad or any editor to write the following Windows batch Script echo off SETLOCAL set DOMAIN_NAME=demoDomain set USERDOMAIN_HOME=F:\irfan\demoDomain set SERVER_NAME=AdminServer call "F:\Oracle\wlserver\server\bin\installSvc.cmd" ENDLOCAL Write the above code and SAVE it with ‘AdminServerSrv.cmd’ in your domain\bin open a n...

Why long way for thread dump on UNIX/Linux machines? Easy Steps!

Image
jps - Java process list : Java Utilitycommand  I was looking for diagnostic ways with freely available tools from JDK then I found the great valuable command tool 'jps'. The jps command can be used with three options(l, v, m). it can work for any Java - JEE Servers such as WebLogic, WebSphere, JBoss, Tomcat. In other words, any app server that uses the latest JDK 5+ version (version 6, 7, 8 also supports). Let me walk-through those interesting options in Win and *nix platforms. Before you execute this command tool, make sure that JAVA_HOME\bin is in the PATH setting. Java Command tool : jps options jps Option : jps -l this -l option will give the full Java package name that invoked the Java process. C:\Users\pavanbsd>jps -l 9116 sun.tools.jps.Jps 8812 weblogic.Server Filtering the weblogic instance with find command on jps will give you the desired outcome. C:\Users\pavanbsd>jps -l |find "weblogic" 8812 weblogic.Server jps -v this -v option is m...