Skip to content

Commit e2a1ef9

Browse files
committed
add missing env var description
1 parent c7055d3 commit e2a1ef9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/recipes/environment-variables-system-properties.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,20 @@ Defines the maximum number of elements that can be stored in the cfthread scope.
761761

762762
Default character set used to read templates (`.cfm` and `.cfc` files).
763763

764+
#### LUCEE_TEMPLATE_CLASSLOADER_INSPECTION_SIZE
765+
766+
*SysProp:* `-Dlucee.template.classloader.inspection.size`
767+
*EnvVar:* `LUCEE_TEMPLATE_CLASSLOADER_INSPECTION_SIZE`
768+
769+
Defines the threshold number of loaded classes that triggers an inspection to determine if the physical classloader should be flushed. When the total number of loaded classes (including all renamed versions) exceeds this value, Lucee checks the ratio of total classes to unique classes to determine if a flush is needed. The default value is 2000.
770+
771+
#### LUCEE_TEMPLATE_CLASSLOADER_INSPECTION_RATIO
772+
773+
*SysProp:* `-Dlucee.template.classloader.inspection.ratio`
774+
*EnvVar:* `LUCEE_TEMPLATE_CLASSLOADER_INSPECTION_RATIO`
775+
776+
Defines the ratio threshold that indicates excessive memory usage from obsolete class versions. When templates are updated during development, Lucee loads new versions while old versions remain in memory, creating a "leak". This ratio (total loaded classes / unique loaded classes) measures this accumulation. A ratio of 3 means on average each unique class has 3 versions loaded. When both the inspection size and this ratio threshold are exceeded, the classloader is flushed to free memory occupied by obsolete class versions. The default value is 3.
777+
764778
#### LUCEE_TYPE_CHECKING
765779

766780
*SysProp:* `-Dlucee.type.checking`

0 commit comments

Comments
 (0)