Skip to content

java.lang.OutOfMemoryError: Required array length 2147483638 + 22 is too large #4809

Answered by vladak
spiritedRunning asked this question in Q&A
Discussion options

You must be logged in to vote

The indexer seems to be running with the default Java heap size. The size is listed in the indexer logs near the beginning, unfortunately the logs are trimmed.

AOSP is certainly considered a large code base that would require tuning, see https://github.com/oracle/opengrok/wiki/Tuning-for-large-code-bases and note similar tuning ought to be done for the webapp as well.

Also, in addition to the tuning consider ignoring potentially huge files with the -i option.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by spiritedRunning
Comment options

You must be logged in to vote
1 reply
@vladak
Comment options

Comment options

You must be logged in to vote
1 reply
@vladak
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4808 on July 08, 2025 08:48.