This pull requests adds the ability for users to specify values for the number of threads and the amount of RAM for CodeQL to use while performing Actions. Since the CodeQL CLI is written in Java, the Java Virtual Machine has a tendency to to exceed its default heap values and cause Out of Memory failures.
This will be following up with a technote in the SWA Wiki on how to set these values, but the net-net is, if a user does not set any values, all available threads and the default CodeQL RAM values will be used. If a user sets either the CODEQL_THREADS or CODEQL_RAM environment variables, those values will be passed to the CodeQL --threads and --ram flags.
This pull requests adds the ability for users to specify values for the number of threads and the amount of RAM for CodeQL to use while performing Actions. Since the CodeQL CLI is written in Java, the Java Virtual Machine has a tendency to to exceed its default heap values and cause
Out of Memory
failures.This will be following up with a technote in the SWA Wiki on how to set these values, but the net-net is, if a user does not set any values, all available threads and the default CodeQL RAM values will be used. If a user sets either the
CODEQL_THREADS
orCODEQL_RAM
environment variables, those values will be passed to the CodeQL--threads
and--ram
flags.