Fixed
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Zac SpitzerZac SpitzerPriority
NewLabels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Zac Spitzer
Zac SpitzerPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 13 December 2024 at 21:15
Updated 20 March 2025 at 13:01
Resolved 22 January 2025 at 09:22
Lucee has an internal cache of variable names, which was hardwired to 5000
https://github.com/lucee/Lucee/blob/6.2/core/src/main/java/lucee/runtime/type/KeyImpl.java#L49
Once reached, Lucee re-calculates the key hash every time, for each loaded class, unless it’s in the existing cache.
add a new env var / system property
-Dlucee.cache.variableKeys=50000
to increase this cache size (LUCEE_CACHE_VARIABLEKEYS
as an env var)We may revisit the default 5000, also it would be good to make this cache size visible, maybe logging out when it first gets reached?
setting
LUCEE_CACHE_VARIABLEKEYS=0
disables this cache all together