Skip to main content

locksiz

Set the maximum size of shared memory for locks.

Synopsis

[config]    locksiz=n

n is an integer with a minimum value of 65,536 (bytes). The default value is 0 which is designed to be appropriate for all systems. If locksiz is set to 0, it will be limited only by the size shared memory given by the gmheap parameter.

Description

The default value of locksiz (n=0) is designed to be appropriate for all systems. In this case, the lock table can grow unlimited up to the available space in gmheap (the Shared Memory Heap); since memory used to allocate locks is taken from gmheap , you cannot use more memory for locks than is available in gmheap. If you need more room for the lock table, increase the gmheap parameter as well. Alternatively, you can lower the LockThreshold to use less space in the lock table.

If locksiz is set to a nonzero value, this places a fixed upper bound on the amount of shared memory that is allocated for locks. However, it is recommended to use the default value of locksiz=0 unless you have application code that relies on a fixed upper bound.

If you edit this setting, changes take effect immediately.

Changing This Parameter

On the Advanced Memory page of the Management Portal (System Administration > Configuration > Additional Settings > Advanced Memory), in the locksiz row, select Edit. Enter a number of bytes.

Instead of using the Management Portal, you can change locksiz in the Config.configOpens in a new tab class (as described in the class reference) or by editing the CPF in a text editor (as described in Editing the Active CPF).

See Also

FeedbackOpens in a new tab