MAXMEM |
maxmem determines the maximum amount of memory that can be used by the application and modifies this parameter.
[S]maxmem Integer
# Back up the current value[L]SVGMEM = [S]maxmem
# Place the maximum value[S]maxmem = 9999
maxmem is an Adonix system variable of the Integer type, which indicates how much memory the application can use (in kilo-bytes). Assigning it allows you to modify this parameter.
maxmem can use the values from zero (0) to 9999, however, a minimum of 1024 is required to launch an application.
maxmem is initialized with 128 by Adonix.
The space taken by application messages ([S]adxmbm) and that occupied by the processes kept in memory ([S]adxmpr) should be taken into account in the [S]maxmem calculation.
maxmem is usually set by one of the processes called "APL.ini," which is launched when you start up the application. However, its modification will be taken into account immediately. You can only increase maxmem during the session. If you try to decrease it, an n 50 (ERDOM) error will be generated.
While using an application, the size of the memory that it occupies tends to grow. Certain configurations of the operating system limit the maximum size of memory that a process can use. In this case, UNIX generates an error if the process attempts to exceed it. To anticipate such incidents maxmem limits the size used. When this limit has been reached, a PLUMEM ("No more available memory") error is generated and the user will have to quit his/her application.
The limitation by the operating system is designed especially to stop a process that would loop accidentally in memory allocation. .
|
Error |
Description |
|
ERDOM (50) |
Value of assignment beyond limits |
|
|