Github user rmetzger commented on the issue:
https://github.com/apache/flink/pull/2177
So you are suggesting to use the heap cutoff also for the JVM started in
standalone mode?
The cutoff was introduced for YARN because there is a difference in the
amount of used memory for a container we specify to YARN vs the memory the JVM
is actually using.
So if we specify a container of 1000 MB, it will be killed by YARN as soon
as we use 1001 MBs. For operating systems, this doesn't apply and if users run
into issues, the can just set a lower heap size.
For Mesos, I don't know how it behaves, but I hope that there is a similar
requirement, otherwise, we would have prematurely optimized the configuration
keys.
I'm against applying this mechanism to all JVMs we start.
For the environment variables of the standalone mode, its quite easy to put
the environment variables into the config.sh file, or just set the env
variables.
But true, we could do a follow up JIRA to extract those env variables and
set them in the config.sh script.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---