How to set G1GC in docker

Running elasticsearch 7.6.1 in docker
Setting ES_JAVA_OPTS env:

-XX:+UseG1GC -Xms16g -Xmx16g -XX:-UseConcMarkSweepGC -XX:UseCMSInitiatingOccupancyOnly -XX:InitiatingHeapOccupancyPercent=75

elasticsearch doesnt start:

configure-sysctl 2020-03-06T12:10:52.753271813Z vm.max_map_count = 262144
elasticsearch 2020-03-06T12:31:42.118036031Z OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
elasticsearch 2020-03-06T12:31:42.11896733Z Error occurred during initialization of VM
elasticsearch 2020-03-06T12:31:42.118991753Z Multiple garbage collectors selected

What am i missing? Cant find any documentation around this topic.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.