-
Notifications
You must be signed in to change notification settings - Fork 282
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]: gradle check failing with java heap OutOfMemoryError, capturing heap dumps if available #2523
Conversation
@peterzhuamazon could you please take a look? thanks! |
…g heap dumps if available Signed-off-by: Andriy Redko <[email protected]>
And also in the PR I sent I set the file to specifically only archive during failure while yours use empty archive. Thanks. |
I think this will help to collect and compare logs when gradle check is successful and failed. So better to have the archive file for both scenarios since this is a recurring issue. |
The thing is the file does not even exist if there is no OOM. |
@peterzhuamazon sorry for duplication, have not seen one, I think using |
Signed-off-by: Andriy Redko <[email protected]>
Correct, I belive |
Codecov Report
@@ Coverage Diff @@
## main #2523 +/- ##
=============================================
+ Coverage 94.39% 100.00% +5.60%
=============================================
Files 219 6 -213
Lines 4462 105 -4357
Branches 29 19 -10
=============================================
- Hits 4212 105 -4107
+ Misses 244 0 -244
+ Partials 6 0 -6 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Closing it, sorry about that @peterzhuamazon |
Signed-off-by: Andriy Redko [email protected]
Description
Capturing heap dumps if available in case build fails with
OutOfMemoryError
. We do run build steps with-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=.../build/heapdump
, for example:Issues Resolved
Part of opensearch-project/OpenSearch#3973
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.