You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Si-li Liu <un...@gmail.com> on 2018/10/23 13:45:16 UTC

How to configure TaskManager's JVM options through cmdline?

Hi

I'm running a flink job on Mesos and I'm trying to change my TaskManager's
JVM options. Because our flink-conf.yaml comes from unify image so I can't
modify it.

I try to put it in environment variable JVM_ARGS, here it my setting:

JVM_ARGS=-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=50
-XX:+UseCMSInitiatingOccupancyOnly -XX:MaxTenuringThreshold=2 -XX:+PrintGC
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps
-verbose:gc

But it seems useless. Could anyone tell me how to pass JVM arguments to
TaskManager through command line? Thanks

-- 
Best regards

Sili Liu

Re: How to configure TaskManager's JVM options through cmdline?

Posted by "yinhua.dai" <yi...@outlook.com>.
You can try with *-yD env.java.opts.taskmanager="-XX:+UseConcMarkSweepGC"*
if you are running fink on yarn.



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/