/** * @return {@code True} if offheap eviction is enabled. */ boolean offheapEvictionEnabled() { return offheapEnabled && cctx.config().getOffHeapMaxMemory() > 0; }
private void warnFirstEvict() { synchronized (this) { if (firstEvictWarn) return; firstEvictWarn = true; } U.warn(log, "Off-heap evictions started. You may wish to increase 'offHeapMaxMemory' in " + "cache configuration [cache=" + cctx.name() + ", offHeapMaxMemory=" + cctx.config().getOffHeapMaxMemory() + ']', "Off-heap evictions started: " + cctx.name()); } };
long max = cctx.config().getOffHeapMaxMemory();
/** {@inheritDoc} */ @Override public void start0() throws GridException { spaceName = CU.swapSpaceName(cctx); swapMgr = cctx.gridSwap(); offheap = cctx.offheap(); swapEnabled = enabled && cctx.config().isSwapEnabled() && cctx.kernalContext().swap().enabled(); offheapEnabled = enabled && cctx.config().getOffHeapMaxMemory() >= 0 && (cctx.config().getMemoryMode() == ONHEAP_TIERED || cctx.config().getMemoryMode() == OFFHEAP_TIERED); if (offheapEnabled) initOffHeap(); }
long offHeapSize = dataCache.configuration().getOffHeapMaxMemory();
long offHeapSize = dataCache.configuration().getOffHeapMaxMemory();
new GridUnsafeMemory(cacheCfg.getOffHeapMaxMemory()) : null;
if (cc.getOffHeapMaxMemory() < 0) cc.setOffHeapMaxMemory(0); // Set to unlimited. if (cc.getOffHeapMaxMemory() < 0) cc.setOffHeapMaxMemory(0); // Set to unlimited. if (!systemCache(cc.getName()) && cc.getEvictionPolicy() == null && cc.getOffHeapMaxMemory() >= 0) U.quietAndWarn(log, "Eviction policy not enabled with ONHEAP_TIERED mode for cache " + "(entries will not be moved to off-heap store): " + cc.getName());
cfg.transactionManagerLookupClassName(ccfg.getTransactionManagerLookupClassName()); cfg.txSerializableEnabled(ccfg.isTxSerializableEnabled()); cfg.offsetHeapMaxMemory(ccfg.getOffHeapMaxMemory()); cfg.maxQueryIteratorCount(ccfg.getMaximumQueryIteratorCount()); cfg.maxConcurrentAsyncOperations(ccfg.getMaxConcurrentAsyncOperations());
invalidate = cc.isInvalidate(); keepPortableInStore = cc.isKeepPortableInStore(); offHeapMaxMem = cc.getOffHeapMaxMemory(); maxConcurrentAsyncOps = cc.getMaxConcurrentAsyncOperations(); maxQryIterCnt = cc.getMaximumQueryIteratorCount();