查了好多网上说的使用ENV的方式设置发现均不成功。
jvm参数部分一定要分开,否则导致容器无法启动!
ENTRYPOINT ["/opt/infosec/cssp/jdk1.8.0_202/bin/java","-jar","-Xms1024m", "-Xmx1024m","-XX:+PrintGCDetails", "-XX:+PrintGCTimeStamps", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/opt/infosec/cssp", "-Xloggc:/opt/infosec/cssp","/opt/infosec/cssp/cssp-csm.jar"]
然后启动后进入容器内部使用:jmap -heap pid查看参数是否生效