go-java-launcher icon indicating copy to clipboard operation
go-java-launcher copied to clipboard

Support for container launcher-static configuration

Open fryz opened this issue 3 years ago • 0 comments

In recent versions of Java, JVM memory configuration has become a bit more sophisticated with supporting launching processes in containers. Specifically, there is a desire to want to utilize some memory configuration flags that only work within containers (eg: MinRAMPercentage/MaxRAMPercentage), but this currently isn't possible with the launcher because it needs to support launching processes not in containers.

It's been proposed to bake some logic into go-java-launcher to detect the CONTAINER=true env var (see gradle-sls-docker's Dockerfile on internal github) and and then flip between a container launcher-static and a regular launcher-static.

fryz avatar Apr 22 '21 00:04 fryz