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

OOM and memory leak again in gerrit #381

Closed
iloveeclipse opened this issue Sep 9, 2022 · 6 comments
Closed

OOM and memory leak again in gerrit #381

iloveeclipse opened this issue Sep 9, 2022 · 6 comments
Assignees
Milestone

Comments

@iloveeclipse
Copy link
Member

iloveeclipse commented Sep 9, 2022

We have again OOM error reported in gerrit, see

There were no changes on master except #325, which is unlikely the root cause.

The #380 only bumps bundle version.

Search in the console for Memory usage reported by JVM.
We see that memory constantly grows between test suites, despite the fact that we call gc and finalization.

The total memory given is 1 GB, the tests start with 22.987.912 bytes used heap and end with multiple OOM's with this picture:

[2022-09-09 12:20:18 +0000] org.eclipse.jdt.core.tests.dom.ASTConverterAST4Test#test0400()
14:20:19  
14:20:19  ########### Memory usage reported by JVM ########
14:20:19     1.073.741.824 bytes max heap
14:20:19     1.073.741.824 bytes heap allocated
14:20:19        47.580.488 bytes free heap
14:20:19     1.026.161.336 bytes used heap
14:20:19  #################################################

So there is some memory leak now. it is either coming from some other platform changes on 4.26 or from external changes like tycho, surefire or whatever else.

This reminds me on #2 that was caused by Tycho leak: eclipse-tycho/tycho#879

Similar to Tycho bug, we have a constant memory growing with every test.

@iloveeclipse
Copy link
Member Author

@laeubi : was there any change on Tycho side similar to eclipse-tycho/tycho#879 that could again cause OOM's?

@sravanlakkimsetti : did we changed anything related in the aggregator poms? I don't see any tycho version change, is is still 3.0.0-SNAPSHOT:
https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/82e840b16f4f0714360357b31e903b9d60d91b06/eclipse-platform-parent/pom.xml#L70

iloveeclipse added a commit to iloveeclipse/eclipse.jdt.core that referenced this issue Sep 9, 2022
@iloveeclipse
Copy link
Member Author

@mickaelistria : I see eclipse-tycho/tycho#1300 (Surefire 3.0.0.M7) was merged in Tycho some days ago. surefire update was also the root cause in eclipse-tycho/tycho#879.

I assume it's same problem now.

@mickaelistria
Copy link
Contributor

Yes most likely. I was expecting some improvement on that topic, but the Maven issue about the memory leak is still open, so nothing concrete happened apparently. I'm reverting that in Tycho.

@mickaelistria
Copy link
Contributor

See eclipse-tycho/tycho#1321

@iloveeclipse
Copy link
Member Author

iloveeclipse commented Sep 9, 2022

I've temporarily bumped memory to see how far we get, and we are close to 1.5 GB: 1.562.672.088 bytes used heap short before test end...

If fixed Tycho is there, we should revert 660f463

jarthana pushed a commit to jarthana/eclipse.jdt.core that referenced this issue Sep 21, 2022
@iloveeclipse iloveeclipse self-assigned this Oct 12, 2022
@iloveeclipse iloveeclipse added this to the 4.26 M2 milestone Oct 12, 2022
@iloveeclipse
Copy link
Member Author

iloveeclipse commented Oct 12, 2022

Fixed in Tycho, so reverted the temporary workaround via #467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants