Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The build fails with java.lang.OutOfMemoryError: Java heap space #7746

Open
reta opened this issue May 25, 2023 · 4 comments
Open

[BUG] The build fails with java.lang.OutOfMemoryError: Java heap space #7746

reta opened this issue May 25, 2023 · 4 comments
Labels
bug Something isn't working Build Libraries & Interfaces Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.

Comments

@reta
Copy link
Collaborator

reta commented May 25, 2023

Describe the bug

The java.lang.OutOfMemoryError: Java heap space is back

Could not read standard output of command '/usr/lib/jvm/temurin-17-jdk-amd64/bin/java'.
java.lang.OutOfMemoryError: Java heap space
	at java.****/java.util.Arrays.copyOf(Arrays.java:3537)
	at java.****/java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:100)
	at java.****/java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:130)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:67)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:53)
	at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
	at java.****/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.****/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.****/java.lang.Thread.run(Thread.java:833)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • CI

Additional context
https://build.ci.opensearch.org/job/gradle-check/16255/.

@minalsha
Copy link
Contributor

@reta could you please add some details? Thanks

@reta
Copy link
Collaborator Author

reta commented Jul 14, 2023

There aren't much - the builds fail, you could see the error in the description, everything else has to be investigated sadly ....

@dbwiddis
Copy link
Member

Is there any way we can enable -XX:+HeapDumpOnOutOfMemoryError on the builds to get more information in the logs?

@reta
Copy link
Collaborator Author

reta commented Aug 15, 2023

Is there any way we can enable -XX:+HeapDumpOnOutOfMemoryError on the builds to get more information in the logs?

It is there [1] but it is not available as Jenkins artifact (as it supposed to [2]), so the dump is not accessible

[1] #3973 (comment)
[2] opensearch-project/opensearch-build#2515

@bbarani bbarani added the Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Build Libraries & Interfaces Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.
Projects
None yet
Development

No branches or pull requests

5 participants