-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
JSenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
This code in the autobuild.sh script halves memory between the JVM and TS:
codeql/javascript/resources/tools/autobuild.sh
Lines 7 to 13 in 59a77a8
# If CODEQL_RAM is set, use half for Java and half for TS. | |
if [ -n "${CODEQL_RAM:-}" ] ; then | |
half_ram="$(( CODEQL_RAM / 2 ))" | |
LGTM_TYPESCRIPT_RAM="$half_ram" | |
export LGTM_TYPESCRIPT_RAM | |
jvm_args="$jvm_args -Xmx${half_ram}m" | |
fi |
Since CODEQL_RAM appears to be a default variable, consuming most of the Github runner's memory, this script shouldn't be halving the memory allocation as large TS projects hit a FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
error. How can we override this halving?
Metadata
Metadata
Assignees
Labels
JSenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested