How to configure TaskManager's JVM options through cmdline?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to configure TaskManager's JVM options through cmdline?

Si-li Liu
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
Reply | Threaded
Open this post in threaded view
|

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

yinhua.dai
This post was updated on .
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/