seqeralabs / wave-cli

Command line tool for Wave containers provisioning service
https://seqera.io/wave
Apache License 2.0
13 stars 3 forks source link

change gc to g1gc for linux distribution of cli #63

Closed munishchouhan closed 7 months ago

munishchouhan commented 7 months ago

This PR will solve the virtual memory issue of cli https://github.com/seqeralabs/wave-cli/issues/46

Native-image provided two solutions:

  1. use g1gc
  2. use -H:-UseCompressedReferences. This is only available in graalvm enterprise edition.

This PR will change the GC to G1 when the target machine is Linux.

Note: After enabling g1gc, the size of binary is increased by 11.6 MB.

munish.chouhan@Munishs-MacBook-Pro wave-cli-test % ls -ltr
-rw-r--r--@ 1 munish.chouhan  staff  61200224 Apr  5 13:47 wave
-rw-r--r--@ 1 munish.chouhan  staff  49582000 Apr  8 15:41 wave-1.2.0-linux-x86_64