Error Messages:
Unrecognized option: -server -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xms512m -Xmx1024m -Xmn512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -Dtask=true
Error: Could not create the Java Virtual Machine.
Unrecognized option: -server -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xms512m -Xmx1024m -Xmn512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -Dtask=true
Error: Could not create the Java Virtual Machine.
Background:
Setting JVM parameters and then using docker file to start jar package reported an error.
Setting JVM parameters and then using docker file to start jar package reported an error.
Solution:
Use the ENTRYPOINT exec command.
ENV jvm_opts=”-server -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xms512m -Xmx1024m -Xmn512m -Xss256k -XX:S
urvivorRatio=8 -XX:+UseConcMarkSweepGC -Dtask=true”
Use the ENTRYPOINT exec command.
ENV jvm_opts=”-server -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xms512m -Xmx1024m -Xmn512m -Xss256k -XX:S
urvivorRatio=8 -XX:+UseConcMarkSweepGC -Dtask=true”
ENTRYPOINT exec java -jar $jvm_opts trade-chat.jar $app_arg
Read More:
- [Solved] Docker Start Error: System.InvalidOperationException Failed to set version to docker-desktop exit code
- [Solved] IntelliJ IDEA Start Error: Failed to create JVM.JVM Path
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location
- Springboot Project: How to Introduces Local Jar Package
- [Solved] Error launching IDEA: Failed to create JVM. JVM Path…
- The MapReduce program generates a jar package and runs with an error classnotfoundexception
- [Solved] Windows PyCharm Start Error: failed to load JVM DLL pycharmjbrbinserverjvm.dll
- IDEA was Filed to Start: error launching idea (Failed to create JVM )
- [Solved] Maven Package Error: Error assembling JAR
- Failed to scan osdt_cert.jar & osdt_core.jar [How to Solve]
- [Solved] Docker Start Error: Error response from daemon: oci runtime error: container with id exists: 7f4336393ab
- [Solved] Centos7 Install docker Error: iptables v1.4.21: Couldn‘t load target `DOCKER-ISOLATION‘
- How to Upload Docker Image to docker hub
- How to Solve Error: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- [Solved] Docker-compose Start error: pyrsistent syntax error: invalid syntax
- [Solved] jvm 1 Error occurred during initialization of VM Could not reserve enough space for object heap
- How to Solve JVM Common Errors: outofmemoryerror & stackoverflowerror
- error:unable to access jarfile cracker2017.jar [How to Solve]
- [Solved] Tomcat7 Start Error: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCon
- [Solved] ES Error: request contains unrecognized parameter [ignore_throttled]