1845726 Members
3201 Online
110248 Solutions
New Discussion

Memory Issue

 
Alfonso_15
Advisor

Memory Issue

Hi Guys:
I am using HP-UX9000/800
With command top i note my free memory is decreasing drastically. Yesterday the machine crashed. How I can to know the process that is consuming a lot o memory and causing this crash?
Thanks a lot
alfonsoarias
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: Memory Issue

Try this script:

# cat memtop

#!/bin/sh
# memtop - show top memory users and pid
# VSZ is in KB
#
echo "VSZ(KB) PID RUSER COMMAND"
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30


Also, how much ram installed - and what is dbc_max_pct and dbc_min_pct set to?

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.
Jon M Zellhoefer
Valued Contributor

Re: Memory Issue

Also look at ipcs -mob (you may have an application hogging your shared memory segments). If you have one with nattch = 0, with a large segsz, it's probably an app that had a large memory reserve which is not actually running and hasn't given that memory segment back to the system. You can remove these with ipcrm -m (shmid).
Raj D.
Honored Contributor

Re: Memory Issue

Hi Alfonso ,

Try checking the processes eating more memory..

# ps -el | sort -r -k10 | more

Also use ,
# glance

# sar -v
# glance -n
To see system table usuage..

Hope this will help,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Steve Andrews_6
Frequent Advisor

Re: Memory Issue

You might also try the ipcs command to help determine who is locking up shared memory segments.
# ipcs -mob
In God We Trust
Ted Buis
Honored Contributor

Re: Memory Issue

You might be able to get HP to analyze the core file from your dump if you are under software support.
Mom 6
Raj D.
Honored Contributor

Re: Memory Issue

Hi Alfonso ,

Get the crash dump , to send to HP ,
/var/adm/crash/crash.x [ Where x is the crash number ]

Also you can check the crash , by running the HP collection.sh script , also need the file crashinfo (binary) , in /var/adm/crash/ directory.

The output file will tell the cause of the crash.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "