You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/01/04 12:56:50 UTC

[GitHub] [maven-mvnd] hashhar opened a new issue #560: Let JVM set max heap size instead of a default value of 2GB (`mvnd.maxHeapSize`)

hashhar opened a new issue #560:
URL: https://github.com/apache/maven-mvnd/issues/560


   Have we considered making the `mvnd.maxHeapSize` config default to null so that the JVM can decide the max heap size instead of the current default of 2GB?
   
   This will bring it in line with vanilla Maven which leaves the heap size to the JVM unless an explicit `-Xmx` is passed (either on command line, MAVEN_OPTS or other mechanisms listed on https://maven.apache.org/configure.html).
   
   With current out-of-box behaviour of mvnd it's a bit frustrating to discover that the daemon is crashing because it is low on memory especially since the observable failure is the lost keepalives instead of an OOM.
   
   (See https://github.com/apache/maven-mvnd/issues/291#issuecomment-1003319291 for more context)
   
   cc: @gnodet created as requested.
   
   I'll be happy to submit a patch if we can agree on some behavior here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] gnodet commented on issue #560: Let JVM set max heap size instead of a default value of 2GB (`mvnd.maxHeapSize`)

Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #560:
URL: https://github.com/apache/maven-mvnd/issues/560#issuecomment-1005026536


   > Have we considered making the `mvnd.maxHeapSize` config default to null so that the JVM can decide the max heap size instead of the current default of 2GB?
   > 
   > This will bring it in line with vanilla Maven which leaves the heap size to the JVM unless an explicit `-Xmx` is passed (either on command line, MAVEN_OPTS or other mechanisms listed on https://maven.apache.org/configure.html).
   > 
   > With current out-of-box behaviour of mvnd it's a bit frustrating to discover that the daemon is crashing because it is low on memory especially since the observable failure is the lost keepalives instead of an OOM.
   > 
   > (See [#291 (comment)](https://github.com/apache/maven-mvnd/issues/291#issuecomment-1003319291) for more context)
   > 
   > cc: @gnodet created as requested.
   > 
   > I'll be happy to submit a patch if we can agree on some behavior here.
   
   @hashhar I think not setting the max heap size sounds reasonable.  Do you want to provide a PR for that ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] hashhar commented on issue #560: Let JVM set max heap size instead of a default value of 2GB (`mvnd.maxHeapSize`)

Posted by GitBox <gi...@apache.org>.
hashhar commented on issue #560:
URL: https://github.com/apache/maven-mvnd/issues/560#issuecomment-1005130944


   Thanks for the decision. I'll work on the PR over this weekend, expect it soon.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] cheneychoi commented on issue #560: Let JVM set max heap size instead of a default value of 2GB (`mvnd.maxHeapSize`)

Posted by GitBox <gi...@apache.org>.
cheneychoi commented on issue #560:
URL: https://github.com/apache/maven-mvnd/issues/560#issuecomment-1042504843


   @hashhar hey bro,i met the same situation ,is this issue solved?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-mvnd] ppalaga commented on issue #560: Let JVM set max heap size instead of a default value of 2GB (`mvnd.maxHeapSize`)

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #560:
URL: https://github.com/apache/maven-mvnd/issues/560#issuecomment-1004825508


   > making the `mvnd.maxHeapSize` config default to null so that the JVM can decide the max heap size instead of the current default of 2GB?
   
   Sounds like a good idea. Thanks for reporting @hashhar!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org