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 17:32:22 UTC

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

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