[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Monitoring dynamic memory allocation?

» close window

The Question is:

 
Are there any tools on OpenVMS V7.1-2 that I can use to monitor dynamic
memory allocation?
 
 


The Answer is :

 
  Terse questions beget terse answers, and potentially an answer to a
  question other than that intended -- in this case, the answer to your
  question depends greatly on what you mean by "dynamic memory allocation".
 
  The subject could range from the Run-Time Library (RTL) lib$get_vm and
  related services and the clients of these services (such as C malloc
  and free) to OpenVMS system dynamic memory, or potentially other areas
  of dynamic memory.
 
  In the case of the RTL, please see the lib$stat_vm call and the Debugger's
  heap analyzer tool.  In the case of system dynamic memory, please see the
  SHOW POOL and similar commands in ANALYZE/SYSTEM (SDA).
 
  Various C programmers have also instrumented their application code, both
  to tailor the specific memory allocation scheme -- malloc and free are
  obviously quite generic, and lib$get_vm and the VM zone support can more
  closely tailor memory behaviour to application requirements -- and to
  more easily detect and report heap corruptions.
 
  Commercial system monitoring packages are also available.
 

answer written or last revised on ( 22-JUN-1999 )

» close window