[ 
https://issues.apache.org/jira/browse/FLINK-18438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155053#comment-17155053
 ] 

Xintong Song commented on FLINK-18438:
--------------------------------------

Could you double check that 1.8.0_101 is the java version used by Flink?

The error message suggests that JVM does not recognize the option 
`MaxMetaspaceSize`. This JVM option is introduced in Java 8. Therefore if the 
error should only occur with lower Java versions. It is wired that you run into 
this error with Java 8.

You can find the actual JVM version used by Flink in the following way.
 1. Edit `<FLINK_DIR>/bin/taskmanager.sh`, and comment out the following line. 
This should disable all the memory related JVM options, and allows the JVM to 
be launched. Please be aware that Flink will not work properly without these 
options.
bq. export JVM_ARGS="${JVM_ARGS} ${jvm_params}"
2. Run `<FLINK_DIR/bin/start-cluster.sh` to start the cluster.
3. Open `xxx-taskexecutor-xxx.log`, and at the very beginning you should find 
the JVM version similar to following.
bq. JVM: OpenJDK 64-Bit Server VM - AdoptOpenJDK - 1.8/25.252-b09

Flink 1.9 does not have this problem because Flink only starts to specify the 
max metaspace size since Flink 1.10.

> TaskManager start failed
> ------------------------
>
>                 Key: FLINK-18438
>                 URL: https://issues.apache.org/jira/browse/FLINK-18438
>             Project: Flink
>          Issue Type: Bug
>          Components: Client / Job Submission
>    Affects Versions: 1.10.1
>         Environment: Java:   java version "1.8.0_101"
>           Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
>           Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) 
> Flink: 1.10.1 (flink-1.10.1-bin-scala_2.12.tgz)
> OS: Windows 10 (1903) / 64-bits
>            Reporter: JohnSiro
>            Priority: Major
>
>  
> Error:  in file  xxx-taskexecutor-0-xxx.out is:
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> Improperly specified VM option 'MaxMetaspaceSize=268435456 '



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to