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

By default, locksiz is configured to an amount that is designed to be appropriate for all systems. However, since memory used to allocate locks is taken from gmheap (the Shared Memory Heap), you cannot use more memory for locks than exists 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 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