Product Information > JADE Encyclopaedia of Classes – Volume 2 > Chapter 1 - System Classes > setCacheSizes64

setCacheSizes64

setCacheSizes64(persistentCache:      Integer64 io;
                transientCache:       Integer64 io;
                remoteTransientCache: Integer64 io);

The Node class setCacheSizes64 method changes the sizes of the persistent, transient, and remote transient cache on the node on which the method is executing to be set to the specified values.

The cache size cannot be set lower than the minimum for that type of cache or higher than two-thirds of the physical memory size. In addition, the cache size sometimes cannot be reduced because of current usage of objects on it. If the cache size cannot be set to the requested value, it is increased or reduced as much as possible at that time. No exception is raised.

The parameter values are then updated with the actual new cache sizes.

The cache size on 32-bit systems cannot exceed 4G bytes.

For Compact JADE, the default cache sizes cannot exceed 1M byte and the maximum value is 20 percent of the physical memory.

The values are set for the current JADE session only.

When you next initiate JADE, the values in the ObjectCacheSizeLimit, TransientCacheSizeLimit, and RemoteTransientCacheSizeLimit parameters in the appropriate [JadeClient] or [JadeServer] section of the JADE initialization file are those that are used for the persistent, transient, and remote transient cache sizes, respectively.

For details about cache sizes, see the appropriate parameters in "JADE Object Manager Client Module Section [JadeClient]" or "JADE Object Manager Server Section [JadeServer]", in the JADE Initialization File Reference. See also the getCacheSizes64 method.