incorrect outofmemory death
- Lingua principale
- CodeQL
- Stelle
- 10.1k
- Fork
- 2.1k
- Merge medio
- 2g 15h
- PR unite (30g)
- 141
Descrizione
I run a query like this:
```
../../sources/codeql/codeql query run ./queries/types-flow.ql -d ../../sources/linux-6.12.74/linux-db/ -j0 --ram 10240 > ./results/types-flow.txt
```
I get
```
types-flow.ql: [1/1 eval 4m37s] Failed: Query evaluation ran out of Java heap (Java heap maximum: 2070 MiB).
(eventual cause: OutOfMemoryError "Java heap space")
CodeQL is out of memory. Try increasing the memory available to CodeQL using the --ram option.
make: *** [Makefile:44: types-flow] Error 99
```
Clearly I passed 10GB to `--ram`, why does the error message say that the java heap maximum is 2GB?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce the reported CodeQL query command with --ram 10240 and capture the memory-related output. Trace how the CLI passes --ram to query evaluation and how the Java heap maximum is selected. Done when the discrepancy is explained and the error reports the relevant configured limit or the behavior is corrected.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- cli, devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100