cancel
Showing results for 
Search instead for 
Did you mean: 

RAM CUP load test on Peak Hours

former_member182505
Contributor
0 Kudos

Dear Experts

I am using SAP Ecc6 ehp4 DB2 on HP-UX.

I have a requirement to calculate Maximum load on RAM CPU and other resources on Peak hours . when the maximum user will be connected, kindly guide me to full fill my requirement.

Thanks

Sadiq

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think OS06/ST06/OS07N or topas (AIX) like command at OS level can help.

Thanks

former_member182505
Contributor
0 Kudos

Hi

Thanks for reply but i will not solve my propose.

i checked it before posting. i want any t-code or tool which will show the maximum use of RAM CPU at the peak load time.

Thanks

sadiq

Former Member
0 Kudos

Does it solve purpose a bit ? -

OS06 --> Detailed analysis --> Previous 24 hours --> there you check the history for last 24 hours for CPU/RAM etc.

Or may be the Unix team can also help, they might already be extracting the reports/graphs for the cpu/ram usage on a particular server.

Thanks

former_member182505
Contributor
0 Kudos

Hi Thanks

No OS team.

Kindly tell me the command or step i will take care.

Thanks

Sadiq

Former Member
0 Kudos

I will ask our OS team, they do something like this. It is AIX though.

In the meantime let's see if other colleagues help us.

Thanks Sadiq !

former_member188883
Active Contributor
0 Kudos

Hi sadiq,

You can use the shell script as below

while [ 1 ]

do

for host in $(cat hostlist)

do

ssh username@$ "top -n 4" >> outfile.$ 2>error_log

done

sleep 600

done

Output will be stored in the file error_log.

Hope this is useful.

Regards,

Deepak Kori

former_member182505
Contributor
0 Kudos

Hi Deepak

Thanks for the reply

i created a script using VI Editor.

vi cpuram.sh

and written the line

#!/bin/bash

#This script is writen for the RAM And CPU utiligation check

while 1

do

for host in $(cat hostlist)

do

ssh username@$ "top -n 4">> outfile.$2.error_log

done

sleep 600

done

When i am executing its giving error.

  1. ./cpuram.sh

interpreter "/bin/bash" not found

file link resolves to "/usr/bin/bash"

sh: ./cpuram.sh: not found.

Please check and guide.

Thanks

Sadiq

markus_doehr2
Active Contributor
0 Kudos

> When i am executing its giving error.

> # ./cpuram.sh

> interpreter "/bin/bash" not found

> file link resolves to "/usr/bin/bash"

There doesn't seem to be a shell under /bin/bash, please replace it with a shell that is installed on your system.

Markus

markus_doehr2
Active Contributor
0 Kudos

> i checked it before posting. i want any t-code or tool which will show the maximum use of RAM CPU at the peak load time.

ST06 - Detailed Analysis - Memory last 24 h

What is missing here?

Markus

former_member182505
Contributor
0 Kudos

Hi Markus

Thanks For the reply Can you please guide to check which shell is installed in my server.

and how can i replace it.

Thanks

Sadiq

markus_doehr2
Active Contributor
0 Kudos

> Thanks For the reply Can you please guide to check which shell is installed in my server.

> and how can i replace it.

login as <sid>adm and execute

echo $SHELL

I suggest you get a Unix guy to you to help you in adapting the scripts according to your needs.

Or simply use ST06 and see at which time of the day the max. memory and the max. cpu were used.

Markus

former_member182505
Contributor
0 Kudos

Hi Markus

Thanks Again. st06 is given for a hours and % of users my requirement is No of users and exact time.

I tried your suggestion please check the output and suggest.

ho-sndbx:hsbadm 21> echo $SHELL

/bin/csh

For the root user

  1. echo $SHELL

/sbin/sh

Thanks

Sadiq

markus_doehr2
Active Contributor
0 Kudos

> Thanks Again. st06 is given for a hours and % of users my requirement is No of users and exact time.

And what do you do then with and information like

10:36:15 pm - 106 users - 14,748 GB RAM - CPU Load 3,8

What does this information tell you? on another day with other transactions this can be different. Usefull is usually only the max/peak usage which can be seen in ST06.

> For the root user

> # echo $SHELL

> /sbin/sh

The HP-UX bourne shell is very limited, I suggest you replace /bin/bash with /bin/ksh (Korn Shell).

Any further questions about how to write scripts should be addressed in a different channel since they are not really SAP related.

Markus

former_member182505
Contributor
0 Kudos

Hi Markus

Actually its a requirement form My IT Head.

No issue i will try to convince with St06.

Thanks lot

Sadiq

Answers (0)