1833599 Members
3567 Online
110061 Solutions
New Discussion

Measuring shared memory

 
Simon R Wootton
Regular Advisor

Measuring shared memory

We have a RP7410 running HPUX 11i. The machine is running out of shared memory which is causing application problems.

Is there a way of looking at the amount of shared memory in use at a given point in time which could be logged over a period of time so I can see how and where it is growing ? Even a percentage used type of measure would be useful.

All help appreciated.
Simon
6 REPLIES 6
Sanjay Kumar Suri
Honored Contributor

Re: Measuring shared memory

top command can be used.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Shaikh Imran
Honored Contributor

Re: Measuring shared memory

Hi
Install the trial glance plus or measureware.
Also you can try top,vmstat,etc..,

Regards,

I'll sleep when i am dead.
Piergiacomo Perini
Trusted Contributor

Re: Measuring shared memory

Hi,

exist also command

ipcs,

and the option "-b"
could be useful.

Regards
pg
Sanjay Kumar Suri
Honored Contributor

Re: Measuring shared memory

What is the application?
Are you using some database such as Oracle?
Is the context of shared memory related to Oracle?

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Steve Lewis
Honored Contributor

Re: Measuring shared memory

Simon,

Put this script below into crontab and run it every so often. It lists all your shared memory segments with sizes in Kb and Mb.

Steve


echo " ID Perms Owner Size Creator Lastpid"
ipcs -ma | awk '
function sv(val)
{
if (val>=1024000.0) pv=sprintf("%3.2fMb",val/1024000);
else pv=sprintf("%3.2fKb",val/1024);
return pv;
}
{if(NR>3)printf("%6s %10s %8s %10s %6s %6s\n",$2,$4,$6,sv($10),$11,$12)}'
Steve Lewis
Honored Contributor

Re: Measuring shared memory

Spot my deliberate mistake? ;-)

should be 1048576.0, not 1024000.0.