department-of-veterans-affairs / codeql-tools

MIT License
4 stars 2 forks source link

Provide an option to specify RAM and THREADS values #75

Closed lindluni closed 1 year ago

lindluni commented 1 year ago

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.