From 673b4d40bec3c5ad2d623b715282d113eee01912 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Tue, 21 May 2024 22:12:59 +0200 Subject: [PATCH] clean up --- .../java/lucee/runtime/config/ConfigServerImpl.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/src/main/java/lucee/runtime/config/ConfigServerImpl.java b/core/src/main/java/lucee/runtime/config/ConfigServerImpl.java index 22ca2d8315..ab9960e480 100644 --- a/core/src/main/java/lucee/runtime/config/ConfigServerImpl.java +++ b/core/src/main/java/lucee/runtime/config/ConfigServerImpl.java @@ -36,7 +36,6 @@ import lucee.commons.digest.Hash; import lucee.commons.digest.HashUtil; import lucee.commons.io.SystemUtil; -import lucee.commons.io.log.Log; import lucee.commons.io.log.LogUtil; import lucee.commons.io.res.Resource; import lucee.commons.io.res.ResourcesImpl; @@ -509,16 +508,9 @@ else if (check && percentageAvailable < permGenCleanUpThreshold) { // up to 100% setPermGenCleanUpThreshold(permGenCleanUpThreshold - 5); } - else { - LogUtil.log(ThreadLocalPageContext.getConfig(this), Log.LEVEL_WARN, ConfigServerImpl.class.getName(), - " Free Perm Gen Space is less than 5% free: shrinking all template classloaders : consider increasing allocated Perm Gen Space"); - } + } else if (check && kbFreePermSpace < 2048) { - LogUtil.log(ThreadLocalPageContext.getConfig(this), Log.LEVEL_WARN, ConfigServerImpl.class.getName(), - - " Free Perm Gen Space is less than 2Mb (free:" + ((SystemUtil.getFreePermGenSpaceSize() / 1024)) + "kb), shrinking all template classloaders"); - // first request a GC and then check if it helps System.gc(); if ((SystemUtil.getFreePermGenSpaceSize() / 1024) < 2048) { shrink();