1833005 Members
3495 Online
110048 Solutions
New Discussion

IPC And memory leak

 
SOLVED
Go to solution
Safarali
Valued Contributor

IPC And memory leak

My system one oracle user showing high consumption of memory, is it any way to check the memory leak with IPC without shutting oracle

Regards
Safar
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: IPC And memory leak

Shalom,

http://hpuxconsulting.com/mem.mon

Works on Linux HP-UX and Solaris.
This script is beta and I'm improving it regularly, so bookmark the site.

Detects leaky processes.

also:
ipcs

ipcrm

The latter command lets you clear shared memory blocks if they are not in use. If you hit something that is active, its possible to disable Oracle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Safarali
Valued Contributor

Re: IPC And memory leak

Steve
Thanks for your support
I got the following output how I know there is a leakage in the memory
sh memtest
utility is running....
Building command line HP-UX
memtest[123]: test: Specify a parameter with this command.
memtest[130]: test: Specify a parameter with this command.
Using custom log:
Sun Sep 9 15:31:55 WAT 2007
PROC# -Vmem- Resident Memory --------- command ---------
18039 30830 208628 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
18037 30801 202676 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
18042 29250 204468 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
18038 28669 223668 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
14297 28561 204212 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
18041 28182 192948 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
14298 27572 198708 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
3255 27043 205620 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
14299 24676 185780 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
27707 21075 192388 dw.sapSBX_DVEBMGS02 pf=/usr/sap/SBX/SYS/profile/SBX_DVEBMGSr
14300 19541 166964 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
14301 18486 171956 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
18107 17310 159796 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
9347 17064 157316 dw.sapSBX_DVEBMGS02 pf=/usr/sap/SBX/SYS/profile/SBX_DVEBMGSr
3311 16799 158836 dw.sapSBW_DVEBMGS04 pf=/usr/sap/SBW/SYS/profile/SBW_DVEBMGSr
4096 16315 153076 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
18043 15841 157364 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
5097 15643 151796 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
1678 15606 155252 dw.sapSBR_DVEBMGS00 pf=/usr/sap/SBR/SYS/profile/SBR_DVEBMGSr
9346 15307 159876 dw.sapSBX_DVEBMGS02 pf=/usr/sap/SBX/SYS/profile/SBX_DVEBMGSr
--------------------------------------------------------
whiteknight
Honored Contributor

Re: IPC And memory leak


safarali,

You can use kmeminfo tool from HP to collect the memory info for a start. Please log case to HP support to obtain the tool

Also you also can use perfview to view your measureware data to look at your memory utilization.

Usually memory leak can be fixed by patches.
What HPUX version you are running?

WK
please assign points
Problem never ends, you must know how to fix it
Bill Hassell
Honored Contributor

Re: IPC And memory leak

IPC only shows you shared memory so if a single user is consuming a lot of memory, check if the memory is local to the user's application. Do this by sorting all the processes by local memory usage:

UNIX95=1 ps -e -o vsz,ruser,pid,args | sort -rn | head -20

The first column shows local memory in Kbytes.


Bill Hassell, sysadmin
Safarali
Valued Contributor

Re: IPC And memory leak

Thanks to every one