1   Debugging Application Errors (INSVIRMEM, etc)?    The Question is:    B When i run a Cobol program, sometimes we have the following error:    LIB-F-INSVIRMEM    . I tried ti increase the values of  PGFLQUO and VIRTUALPAGECNT but doesn't work    L Which sentences of the program Cobol use virtual memory?, we try to modified  them!    Thanks  The Answer is :   B   Every statement, every instruction, every item of data, occupies   virtual memory.    C   Nearly every part of an application imaginable on OpenVMS can and D   will consume some amount of virtual memory.  Large data structures@   and particularly large arrays of data structures do tend to beB   among the larger of the more common consumers, but are certainly   not the only consumers.    A   If you are receiving an insufficient virtual memory error, your A   application is consuming more virtual memory than is available. B   This can be a result of a coding error (wrong arguments, a leak,C   etc), a corruption within the run-time environment, or otherwise.    B   If you wish to determine use, you will want to review constructsA   such as arrays and recursion as these can consume quantities of C   virtual memory for the stack.  Program instructions and non-stack @   storage require virtual storage, as well.  In the case of codeB   and non-stack data, you can review the compiler listings and theD   image maps for the application image(s) for information on virtualC   memory usage.  Some library routines, such as those that allocate E   memory pool or that perform SORT/MERGE operations, can also consume    quantities of virtual memory.    C   Whether or not you increased PGFLQUOTA and/or VIRTUALPAGECNT (and F   by how much, and to what value?), you need to find the coding error,B   or you need to increase the PGFLQUOTA value further.  The answerB   remains the same as that listed in the OpenVMS FAQ and discussed?   elsewhere here in Ask The Wizard -- if you see the INSFVIRMEM B   error, then you have (deliberately or unintentionally) asked forA   more virtual memory or more backing storage in the pagefile (as <   limited by the process PGFLQUOTA quota) than is available.   B   For basic debugging information, please start with topic (1661).>   For information on decoding details provided to you with the@   error and for general debugging information, please see topics   including (4129) and (7552).   B   Please review the discussion of this Insufficient Virtual MemoryC   (INSVIRMEM) error in the OpenVMS Frequently Asked Questions (FAQ) E   document, and various of the existing topics here in Ask The Wizard C   including (9565), (9571), (9501), (8892), (7857), (6524), (6507), 3   (6399), (5166), (3479) and likely various others.    A   And if you have not already done so here, please do remember to A   use the OpenVMS Debugger -- this single programming tool is one E   of the most important and most useful tools available to an OpenVMS E   programmer.  The OpenVMS Wizard strongly recommends all programmers E   learn about and use the OpenVMS Debugger.  (Details on the Debugger @   are available in the OpenVMS documentation set -- ranging fromC   the basic usage and commands, to programming the debugger to wait A   hours or days for particular errors or corruptions to arise, to F   dynamically activating the Debugger entirely under program control.)   /  Answer written or last revised on  6-MAY-2004  