There seems to be an issue with passing the JAVA_OPTS environment variable to the memory calculator, e.g., even if JAVA_OPTS is set to -Xss512K, the logs shows something like JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=198376K -XX:ReservedCodeCacheSize=240M -Xss1M -Xmx338199K. I believe that the same issue occurs for other JVM memory options.
There seems to be an issue with passing the
JAVA_OPTSenvironment variable to the memory calculator, e.g., even ifJAVA_OPTSis set to-Xss512K, the logs shows something likeJVM Memory Configuration: -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=198376K -XX:ReservedCodeCacheSize=240M -Xss1M -Xmx338199K. I believe that the same issue occurs for other JVM memory options.