How Adaptive Server uses memory

Memory exists in Adaptive Server as total logical or physical memory:

When Adaptive Server starts, it allocates memory for:

Figure 18-1 illustrates how Adaptive Server allocates memory as you change some of the memory configuration parameters:

Figure 18-1: How Adaptive Server handles memory configuration changes

When a 2MB worker process pool is added to the Adaptive Server memory configuration, the procedure and data caches maintain their originally configured sizes; 1.6MB and 5.3MB, respectively. Because max memory is 5MB larger than the total logical memory size, it easily absorbs the added memory pool. If the new worker process pool brings the size of the server above the limit of max memory, any command you issue to increase the worker process pool fails. If this happens, the total logical memory required for the new configuration is indicated in the sp_configure failure message. Set the value of max memory to a value greater than the total logical memory required by the new configuration. Then retry your sp_configure request.

The size of the default data cache and the procedure cache has a significant impact on overall performance. See Chapter 15, “Memory Use and Performance,” in the Performance and Tuning Guide for recommendations on optimizing procedure cache size.