Operating System - OpenVMS
1834628 Members
2807 Online
110069 Solutions
New Discussion

Re: How to check for memory leak

 
PatchAdmin
Occasional Contributor

How to check for memory leak

Hi there

How do I check for a memory on an OpenVMS system and what commands must I use to do that.
5 REPLIES 5
Ian Miller.
Honored Contributor

Re: How to check for memory leak

SHOW MEMORY and its variations.

SHOW MEMORY/POOL/FULL shows the paged and non-paged pools. If there is a problem which consumes pool then it shows here as the amount in use continually increases.

SHOW MEMORY/FILE/FULL shows the amount of page and swap file inuse. A memory leak in a proces can show here as the amount of reserved pagefile continually increases.

For a problem with process local pool (P1 pool) then SHOW PROCESS/MEMORY will show the free space continually reducing.
____________________
Purely Personal Opinion
labadie_1
Honored Contributor

Re: How to check for memory leak

Hello

If a process has a memory leak, it will use all his pgflquota, and fail with
system-f-exquota

To check the use of pgflquota for a process, use Amds or Availability Manager, available at
http://h71000.www7.hp.com/openvms/products/availman/index.html

or use pquota on the freeware
http://h71000.www7.hp.com/freeware/freeware40/pquota/

regards

Gerard
Hein van den Heuvel
Honored Contributor

Re: How to check for memory leak

Is this perhaps in relation to
patch kit: VMS731-SYS-V0400

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=284548

Cheers,
hein.
Martin P.J. Zinser
Honored Contributor

Re: How to check for memory leak

I do not have much experience with it, but I think PCA from the DECset suite should be able
to trace down such problems in application code. If you do indeed experience the SYS4 problem, you best bet is to get the fix from engeneering.
Ian Miller.
Honored Contributor

Re: How to check for memory leak

If the problem is with a program of your own the heap analyzer feature of the debugger may help. See
http://vms.cc.wmich.edu/disk$openvms0731/000000/731final/4538/4538pro_023.html#dbg_analyzer_ch

____________________
Purely Personal Opinion