6 The Registry Interface

LeapHeap communicates with the system administrator through an interface within the Window NT registry. Each application is given a separate, dedicated key subtree in the registry. This subtree is created the first time the application runs with LeapHeap.

The administrator modifies values in the application's key tree in order to set LeapHeap sizing and options. LeapHeap modifies values in the key tree to report errors and monitor compartment usage. The word 'administrator' is used in the sense of a role; administrative privileges are not needed to access the LeapHeap registry interface.

The LeapHeap interface resides in the HKEY_CURRENT_USER branch of the registry. It follows that each user is able to run an application with different LeapHeap parameters. This is a side effect rather than by design; the key trees cannot be put in the HKEY_LOCAL_MACHINE branch because of permission problems. If an application runs as a Windows NT service, its LeapHeap settings will more than likely appear in HKEY_USERS\.DEFAULT. If not, they can be easily found by searching in the registry editor for the string 'leapheap'.

6.1 Keys
6.2 Monitoring
6.3 Tuning