Operating System - HP-UX
1825782 Members
2116 Online
109687 Solutions
New Discussion

Re: Memory Used for the system

 
Isaac_4
Frequent Advisor

Memory Used for the system

Hi

I have some question about HPUX and the memory

how memory uses each telnet process ?
how many memory use hpux 10.20 process more o less ?
Exist some relationship with the quanty of memory and telned process fail ?

Thank You
The time is gold
5 REPLIES 5
Q4you
Regular Advisor

Re: Memory Used for the system

Assuming you have Glance PAK installed.

Try this ->

# Telnet login to your system (same one)

# ps -fe | grep and note your process id

# glance

If your temrinal setting are correct, it will bring char GUI

Type g ( this will bring the process list)

Look for your pid, or make select a single process selection by "s" and rnter the PID. it will give you required details.

-Q
machoq1
Esteemed Contributor

Re: Memory Used for the system

you can do a

$>export UNIX95=XPG4
$>ps -eo pid,vsz | grep `ps -ef | grep telnet | awk {'print $2'}`

This will give you the processid and memory in KB used by each telnet process.
Geoff Wild
Honored Contributor

Re: Memory Used for the system

Here's a script I have:

# cat processmem

#!/bin/sh
# processmem - display memory claimed by a process
# gwild 03192004
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "processmem \"process\""
echo "Example:"
echo "processmem rpc"
exit 1
fi
echo " "

PROCESS=$1

mps=0
#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`
for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`
do
mps=`expr $mps + $sz`
done
#echo `expr $mps \* 4096`
echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Isaac_4
Frequent Advisor

Re: Memory Used for the system

this script work under hpux 10.20 ?
Thank you
The time is gold
Geoff Wild
Honored Contributor

Re: Memory Used for the system

The script should work under 10.20 - but I don't have a 10.20 system to test (havn't for years)....sorry...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.