Skip to content

Commit

Permalink
Merge pull request lucee#2099 from zspitzer/LDEV-2418-6.0
Browse files Browse the repository at this point in the history
LDEV-2418 add lucee.pagePool.maxSize env var
  • Loading branch information
zspitzer authored Jun 2, 2023
2 parents 89c8624 + d1a6984 commit 35aecc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/lucee/runtime/PageSourcePool.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
import lucee.commons.collection.LongKeyList;
import lucee.commons.io.log.Log;
import lucee.commons.io.log.LogUtil;
import lucee.commons.io.SystemUtil;
import lucee.runtime.config.Config;
import lucee.runtime.dump.DumpData;
import lucee.runtime.dump.DumpProperties;
import lucee.runtime.dump.DumpTable;
import lucee.runtime.dump.DumpUtil;
import lucee.runtime.dump.Dumpable;
import lucee.runtime.dump.SimpleDumpData;
import lucee.runtime.op.Caster;
import lucee.runtime.type.dt.DateTimeImpl;

/**
Expand All @@ -52,7 +54,7 @@ public final class PageSourcePool implements Dumpable {
*/
public PageSourcePool() {
this.timeout = 10000;
this.maxSize = 1000;
this.maxSize = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.pagePool.maxSize", null),1000);
}

/**
Expand Down

0 comments on commit 35aecc7

Please sign in to comment.