As the current baseline for the identifying the process id (PID) of WebSphere based on java initiated processes is clumsy on Solaris environment. With this value added automation shell script IBM WPS or WebSphere developer, Administrators, Architects, QA analysts or a proactive Technical Manager can save considerable amount of their time and efforts of their teams.
Current manual process takes approximately 5 minutes to know about the process causing the CPU spike or MEMORY spike. especially on production servers it is very much required to take thread dump, heap dump at time of issues to do the further analysis. It is better to capture the statistics for tuning the performance of the WPS environment.
Believe it or not! This automation task saves almost 600 productive hours per year including Dev, QA, Production environments. It may varies depends on number of machines involved in WPS.
Functional baseline are achieved with ps command but the name of the java instance initiated the process is identified by /usr/ucb/ps command. Using the grep and awk/nawk we can pick out the desired output for the script.
This week we have developed a simple shell script for monitoring WebSphere Process Server running on Solaris environment. The script is targeted the following goals:
1. To display the process related statistics such as Percentage of CPU Load, Percentage of Memory used by WebSphere java processes ( includes Application Servers, Message Server, NodeAgents, DeploymentManager)
2. Process id corresponding to java initiated processes, this can be further useful for taking thread dumps or heap dumps of trouble centric WebSphere Java instances.
3. Create a script file with following stuff and name it as "wasps", means WebSphere Application Server process stats.assign the chmod for execution by u+x option.
Output is giving fine desired statistics, we can further extend this script with setting up the following
1. Threshold for CPU and MEM
.2. mail when abnormal conditions
3. run the script in crontab or autosys job scheduler
The interesting ITIL following IT managers questions are listed out as below:
You can make this value added script for your WPS environment get appreciations from your reporting manager/Client. Here I Concluding with the above script is we can perfectly monitor the CPU, MEM percentage usage by WebSphere processes. The only my concern is that the script every run will be generates two files: file1, file2. Is there any way to avoid using these two files? Do you have any fresh thoughts?
WebSphere, WAS, WPS, WebSphere Process Server, CPU monitoring, Memory monitoring, pid, comm, awk, Sparc, Solaris, nawk