Freemem

The 'Freemem' function returns the number of bytes not used in the main memory of the Adonix server process.

Syntax

freemem

Example

# check if at least 100K of memory are availableIf freemem>100000# We have enough memoryElse# Let's enhance maxmem to get more memorymaxmem+=100000Endif

See also

maxmem, maxheap, freeheap, Server Memory requirements