github / github/codeql

incorrect outofmemory death

Đang mở
#21,543 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
cli, devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.