-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make it easier to import the project in IDEA #16309
Conversation
.mvn/jvm.config
Outdated
@@ -2,3 +2,5 @@ | |||
-Dmaven.wagon.http.retryHandler.requestSentEnabled=true | |||
-Dmaven.wagon.http.retryHandler.count=10 | |||
-Dkotlin.environment.keepalive=true | |||
-Xmx8g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsmet this would help a lot as people would no longer need to read the instructions prior to importing the project.
But do we have enough physical RAM on CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure that RAM capacity of CI is 8GB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks @geoand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, thanks @Ladicek . I'll change it to 5 - should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW doesn't CI override it? I'll change it to 5 just to be sure but I wonder for how long it will be enough :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean 7 GB? :-) https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
Ah, good point!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must say it's a bit sad that just for one IDE (albeit the most popular one as it seems) we now have to set almost three times as much memory than before.
I guess folks with constrainted memory (and who are not using IDEA) can just lower it via MAVEN_OPTS
.
Anyway, setting some common value via jvm.config
was long overdue. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea although to be fair it's unclear how much it's really needing. From what I heard, it's working OK for most people provided they set 2G but some mentioned having to set more; my guess is that 2G is good enough but there's possibly other problems confusing such observations...
So that's why I went with a min and a max heap setting; max to 5G but I hope it will never actually reach to using them all, probably not even half.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Sanne, it looks good :)
I have made some suggestions for you to consider
Failing Jobs
|
thanks @zakkak , applied most of your suggestions and squashed+rebased. |
@@ -446,17 +462,13 @@ This project is an open source project, please act responsibly, be nice, polite | |||
|
|||
* The Maven build fails with `OutOfMemoryException` | |||
|
|||
Set Maven options to use 1.5GB of heap: `export MAVEN_OPTS="-Xmx1563m"`. | |||
Set Maven options to use more memory: `export MAVEN_OPTS="-Xmx4g"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With 5g now set in .mvn/jvm.config
, the example here doesn't really give it "more memory".
Edit: Corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True - and technically I think we could remove the section. But I did wonder if someone has a MAVEN_OPTS
set, it might override the project settings and get you in trouble - which would be fixed by giving it "more memory" and setting this explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, MAVEN_OPTS
should override this but my main point is/was that 4 is less than 5. 😉
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/scala# Tests: 3
+ Success: 1
- Failures: 1
- Errors: 1
! Skipped: 0 ❌
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/scala# Tests: 3
+ Success: 1
- Failures: 1
- Errors: 1
! Skipped: 0 ❌
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/scala# Tests: 3
+ Success: 1
- Failures: 1
- Errors: 1
! Skipped: 0 ❌
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/scala# Tests: 3
+ Success: 1
- Failures: 1
- Errors: 1
! Skipped: 0 ❌
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/elytron-undertow# Tests: 217
+ Success: 216
- Failures: 1
- Errors: 0
! Skipped: 0 ❌
|
The Scala tests seems to be failing :( |
Thanks, I'll have a look at those scala tests. |
should work now.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this change lets me import Quarkus without OOME errors
Failing Jobs
Test Failures⚙️ JVM Tests - JDK 11 Windows #📦 extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment# Tests: 16
+ Success: 14
- Failures: 1
- Errors: 0
! Skipped: 1 ❌
|
No description provided.