Shared-memory Overflow Size (-Mxs)
- Last Updated: August 23, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Use Shared-memory Overflow (-Mxs) to
replace the default value of the shared-memory overflow area; it does not increase it.
| Operating system and syntax | UNIX / Windows |
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Database Server | System dependent1 | 1 | – | 32 kilobytes + padding based on the number of users |
- n
- The size of the shared-memory overflow area in kilobytes.
The overflow area is appended to the shared-memory area. If the overflow area is too small, the database engine exits with the following message:
|
Depending on the operating system, the database engine rounds the shared-memory area size to the next 512-byte or 4K boundary.
Specific memory requirements when using mandatory fields
If you are using mandatory fields, consider the following approximate
memory requirements when calculating the value of Shared Memory Overflow (-Mxs):
- 480 byte overhead
- 48 bytes for each table containing mandatory fields
- 12 bytes for each mandatory field
When calculating Shared Memory Overflow (-Mxs), add the total number of bytes to the existing default value. For example,
if the total memory required for the mandatory field array is 80K, -Mxs must be (80K + 32K + 4K (100 users).