-
Notifications
You must be signed in to change notification settings - Fork 75
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
Default Eclipse JVM should not have -XmX parameter #1463
Comments
I believe option (b) makes sense. On "usual" working environments today we have way more RAM as before and JVM would "automatically" reserve more than default 2GB (SDK sets The only problem I see "smaller" configurations like Jenkins platform builds that usually suffer from too strict resources limits and where JVM would set smaller heap. |
FYI, this issue was discussed here as well: Most folks are using one of the EPP packages, so what the Platform does has much narrower impact than what EPP does... |
As I mentioned in eclipse-packaging/packages#37 (comment) the EPP normally aims to follow where the Platform/SDK leads. This has been the case because we used to inherit the Platform settings, that was changed recently(ish) which gives us the option to drop the xmx from EPP. In this case perhaps EPP should lead and platform/SDK can follow along later? |
Or we can just try to do this in SDK and see if something breaks on Jenkins/official build & fix Jenkins files etc in case we still need Xmx option. I will push a PR in a moment. |
Any objections? => #1471 |
So far there were no regressions in the SDK tests, we will see if some Jenkins jobs would fail. The default SDK
|
I see a first OOM in the Jenkins test: @laeubi : I can't understand what maved output says and in which task it had OOM. It also looks like there are multiple tasks running in parallel (see org.eclipse.core.tests.resources test output mixed with all other entries). There is also one maven error Can you help understand following:
|
Platform build is executed in parallel
You can see the limits here: https://ci.eclipse.org/platform/job/eclipse.platform/job/PR-731/5/consoleText
but I don't really understand how |
If the tycho starts SDK product during tests, it uses I honestly don't know what tycho does to construct the test application and if that inherits But still open question: any clue which task has reported OOM? |
is the module failing the build, but this might only be a side-effect of the JVM itsel running out of memmory, thats why I said, I can't see that a PROCESS (that can read eclipse.ini) is failing, the JVM that running the BUILD seems going OOM... |
What I mean is something like eclipse-platform/eclipse.platform#767. |
If you want to share things in common, it is best placed here in |
I don't see which / where is this FAILURE reported in the log (above the table)? The last relevant entry I see is an INFO |
So this line has to be adopted to have
|
`-Xmx2g` is needed for Jenkins where RAM is low. SDK doesn't specify `-Xmx` anymore, see eclipse-platform#1463
Change is reverted, due possibility that is causes OOM in Jenkins builds. |
OK, looks like we see OOM's elsewhere without this patch, see eclipse-platform/eclipse.platform#764. So I plan to re-submit #1471 as soon as we have solution for more RAM on Jenkins, see https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/3885 . See #1483 |
eclipse-platform/eclipse.platform#784 provided now 8 GB RAM for Platform builds on Jenkins, let see if that helped or not. |
Has there been any negative effects of this? EPP will make this same change too unless someone raises a concern inhttps://github.com/eclipse-packaging/packages/issues/37 |
Only for poor VM (Jenkins) instances with <= 4GB RAM. For PC's/VM's with >=8 GB everything should be fine. |
I have noticed that recent installers, when using the default supplied VM to run Eclipse, has an -XmX parameter.
This leads to an extremely frustrating experience with large projects. I suddenly found my debugger doing all sorts of very weird things, which led to a loooooooong goose chase before I found the cause.
Either
(a) the platform needs some indication that it is running into memory issues
(b) just leave that parameter out, in which case the VM will grow to use available memory on the machine.
(I vote for option b)
Thanks.
The text was updated successfully, but these errors were encountered: