Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed May 21, 2024
1 parent c91b249 commit 673b4d4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/main/java/lucee/runtime/config/ConfigServerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 673b4d4

Please sign in to comment.