Friday, October 2, 2009

Enhancements To The Scripts Listing Processes and Memory Usage of PeopleSoft Application Server and Process Scheduler

In the post released in February I introduced a script that is able to list all processes of a Peoplesoft app server/process scheduler as well as each process' memory usage information.

I have enhanced this script with the following new features:

- For Peoplesoft App Server & Process Scheduler:

= When -m is specified, the script will print CPU usage percentage aside from memory usage.


$ ~/bin/pl -cmh DOMAIN
PID PROCESS VSIZE(m) RSS(m) CPU%
--- ------- -------- ------ ----
7744 PSBRKHND 104.6 48.3 0.0
27887 PSAPPSRV 585.0 401.7 0.8
7799 PSPUBHND 100.7 24.6 0.0
7685 BBL 11.6 3.9 0.0
7704 PSSAMSRV 98.2 19.6 0.0
7796 PSBRKDSP 108.6 51.8 0.0
7802 PSPUBDSP 332.7 61.8 0.1
9122 JREPSVR 9.5 1.0 0.0
9055 JSL(9050) 11.0 1.9 0.0
8030 PSSUBHND 100.6 19.7 0.0
8350 PSSUBDSP 108.6 49.1 0.0
20335 PSAPPSRV 986.7 803.7 0.7
20562 PSAPPSRV 962.3 712.4 1.0
15765 PSAPPSRV 1006.4 805.3 0.5
13737 PSAPPSRV 188.0 157.3 0.8
6362 PSMONITORSRV 103.3 75.6 0.0
21579 PSWATCHSRV 14.6 8.2 0.0
9114 JSH(9053) 52.6 21.1 0.0
9089 JSH(9051) 44.6 16.8 0.1
9107 JSH(9052) 36.6 21.0 0.0



= When -s is specified, the script will print statistical information on the bottom.


$ ~/bin/pl -cmhs DOMAIN
PID PROCESS VSIZE(m) RSS(m) CPU%
--- ------- -------- ------ ----
7744 PSBRKHND 104.6 48.3 0.0
27887 PSAPPSRV 585.0 401.7 0.1
7799 PSPUBHND 100.7 24.6 0.0
7685 BBL 11.6 3.9 0.0
7704 PSSAMSRV 98.2 19.6 0.0
7796 PSBRKDSP 108.6 51.8 0.0
7802 PSPUBDSP 332.7 61.8 0.1
9122 JREPSVR 9.5 1.0 0.0
9055 JSL(9050) 11.0 1.9 0.0
8030 PSSUBHND 100.6 19.7 0.0
8350 PSSUBDSP 108.6 49.1 0.0
20335 PSAPPSRV 986.7 803.7 0.2
20562 PSAPPSRV 962.3 712.4 0.1
15765 PSAPPSRV 1006.4 805.3 0.3
13737 PSAPPSRV 188.0 157.3 0.1
6362 PSMONITORSRV 103.3 75.6 0.0
21579 PSWATCHSRV 14.6 8.2 0.0
9114 JSH(9053) 52.6 21.1 0.0
9089 JSH(9051) 44.6 16.8 0.1
9107 JSH(9052) 36.6 21.0 0.0
--- ------- -------- ------ ----
17 SERVER 4832.3 3245.7 0.9
5 PSAPPSRV 3728.4 2880.3 0.8
3 CLIENT 133.8 59.0 0.1


= For app server, ports opened by JSL/JSH/WSL/WSH will be printed.

See above example.


= When -r is specified, the script will print the summary memory and CPU usage of processes of all app servers/process schedulers running on the server. This is useful when you need to monitor server's performance. Actually Oracle recommends that the total resident memory for the entire PS Processes not exceed 70 percent of the total real memory available on the server.


$ ~/bin/pl -r
CATEGORY COUNT VSIZE(m) RSS(m) RSS% CPU%
-------- ----- --------- ------ ---- ----
All 98 37598.7 19232.7 29.3 1.7
PSAPPSRV 28 26224.3 15047.6 22.9 1.1
PSAESRV 0 0.0 0.0 0.0 0.0


- For Peoplesoft Web Server: the script now can print some configuration information and running information (memory and CPU usage) of a web domain.


$ ~/bin/pl -w webdomain
DOMAIN: webdomain
TYPE: Single Server
WEBSITES: server1, server2
HEAP SIZE: -Xms512m -Xmx512m -XX:MaxPermSize=256m
SERVER: PIA
HTTP: 8080
HTTPS: 8843 enabled
PID: 19098
RESOURCES: VSIZE=893.8m RSS=700.4m CPU=0.2%


The help message:


Usage 1: list process info for a app server and/or a prcs server
pl [-f] -c|p [-m -h] [-s]

Options:
-f force execution even appserv domain doesn't exsit
-c print processes of application server
-p print processes of process scheduler
-m print memory usage (virtual memory and RSS) and CPU usage(%)
-h print memory usage in human readable format
-s print summary and statistical info

Usage 2: calculate RAM/CPU usage of all app/prcs processes
pl -r

Usage 3: list setting and running info from a web domain (Weblogic only)
pl -w






Currently only Solaris version of the script is available. You can get it from here.


Update on 13-Oct-2009: Some bug fixes. pl -w produces more information.

3 comments:

Anonymous said...

Do you script of aix?

Anonymous said...

Many green coffee bean extraсt side effects contain gгеen tеa.
Days 10-12 you eat cheese with red wіne. You
should nοtе the actuаl specific diѕtinctionѕ in between weight-losѕ treatment centers and also" fat camps.

Also visit my blog post :: pure green coffee extract

Unknown said...

Thanks for sharing the Information, it's really printed on my mind that was awesome