The offheap module manages server-side offheap memory resources (offheap-resources) on Terracotta nodes. It allows allocating, reserving, freeing, and monitoring dedicated pools of direct memory outside the Java garbage collector heap.
OffHeapResource: Represents a single named offheap memory pool with allocation methods (reserve(long),release(long),getAvailable()).OffHeapResources: Service providing lookup of configured offheap pools by name.OffHeapResourcesProvider: Voltron service provider registering offheap resources in the server runtime.OffheapResourceConfigChangeHandler: Dynamic config listener handling dynamic increases or additions of offheap memory resources.OffHeapResourceStatisticsManagementProvider: Exposes allocation metrics, max capacity, and consumption statistics to the Terracotta Management Server.
- Dependencies:
common:structures,dynamic-config:server:api,management:model,management:registry. - Consumed By:
- Clustered cache and store entities (e.g. Ehcache clustered tiers) to allocate offheap memory storage.
- Dynamic config CLI tools for defining and resizing offheap memory pools.