Skip to content

Commit

Permalink
LDEV-5205 allow configuring LUCEE_THREADS_MAXDEFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 16, 2024
1 parent 0983627 commit af05603
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/lucee/runtime/functions/closure/Each.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@

public final class Each extends BIF implements ClosureFunc {

public static final int DEFAULT_MAX_THREAD = 20;
public static final int DEFAULT_MAX_THREAD = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.threads.maxDefault", null), 20);

private static final long serialVersionUID = 1955185705863596525L;

public static String call(PageContext pc, Object obj, UDF udf) throws PageException {
Expand Down
5 changes: 5 additions & 0 deletions core/src/main/java/resource/setting/sysprop-envvar.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,10 @@
"sysprop": "lucee.cache.variableKeys",
"envvar": "LUCEE_CACHE_VARIABLEKEYS",
"desc": "Sets the max number of variable names (keys) to cache"
},
{
"sysprop": "lucee.threads.maxDefault",
"envvar": "LUCEE_THREADS_MAXDEFAULT",
"desc": "Sets the default max number of parallel threads, default 20"
}
]
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.217-SNAPSHOT"/>
<property name="version" value="6.2.0.218-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.217-SNAPSHOT</version>
<version>6.2.0.218-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit af05603

Please sign in to comment.