%SYSTEM.Config.SharedMemoryHeap
class %SYSTEM.Config.SharedMemoryHeap extends %SYSTEM.Help
The %SYSTEM.Config.SharedMemoryHeap class provides an interface to return amount of Shared Memory Heap used by Cache system.It also provides API to get available Shared Memory Heap and recommended Shared Memory Heap parameter for configuration.
Method Inventory
- FreeCount()
- GetUsageSummary()
- MaxCount()
- RecommendedSize()
- UsageQueryClose()
- UsageQueryExecute()
- UsageQueryFetch()
- WebListClose()
- WebListExecute()
- WebListFetch()
Parameters
Methods
Return amount of available Shared Memory Heap in Cache System.
This returns a string in total,pages,smt,genstrtab format.
total - total Shared Memory Heap available including pages,smt,genstrtab.
pages - total available Shared Memory Heap pages(in bytes).
smt - total available memory in SMT table.
genstrtab - total available memory in General String Table.
Total SMH memory used.
Total SMH pages allocated.
Total SMH memory configured.
Return recommended amount of Shared Memory Heap to be configured in kilobytes.
This does not include the memory reserved for Shadowing:
1 cpu 5MB, 2 cpus 8MB, + 2MB for others [based on $System.Util.NumberOfCPUs()]
NumberOfProcess is the number of maximum process you want to calculate on. Omit this parameter or zero will use value in ^|"%SYS"|SYS("LASTMAXPID").
The calculation is based on the current memory usage of the system.
Total current used memory + ReserveExtra + Lock Table Size * 1.5 + 1 MB if LineByLine Monitor is not running.
The ReserveExtra is number of CPU * 2 MB + 1MB.