You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Andrey Zagrebin (Jira)" <ji...@apache.org> on 2020/06/09 15:10:00 UTC
[jira] [Closed] (FLINK-18154) Unhelpful error message if heap.size
takes up signficant portion of process.size
[ https://issues.apache.org/jira/browse/FLINK-18154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Zagrebin closed FLINK-18154.
-----------------------------------
Resolution: Fixed
merged into master by 14c4be53b260631610c4890ed76bedb62a17330c
merged into 1.11 by 6498f4b76f6b7b4cfe99972e241a2257575155ea
> Unhelpful error message if heap.size takes up signficant portion of process.size
> --------------------------------------------------------------------------------
>
> Key: FLINK-18154
> URL: https://issues.apache.org/jira/browse/FLINK-18154
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Coordination
> Affects Versions: 1.11.0
> Reporter: Chesnay Schepler
> Assignee: Andrey Zagrebin
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
>
> The process still starts fine though, similar to FLINK-18152.
> {code}
> [] - Loading configuration property: jobmanager.memory.process.size, 2000m
> [] - Loading configuration property: jobmanager.memory.heap.size, 1999m
> Exception in thread "main" java.lang.IllegalArgumentException: bytes must be >= 0
> at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:139)
> at org.apache.flink.configuration.MemorySize.<init>(MemorySize.java:82)
> at org.apache.flink.configuration.MemorySize.subtract(MemorySize.java:216)
> at org.apache.flink.runtime.util.config.memory.ProcessMemoryUtils.deriveJvmMetaspaceAndOverheadFromTotalFlinkMemory(ProcessMemoryUtils.java:147)
> at org.apache.flink.runtime.util.config.memory.ProcessMemoryUtils.deriveProcessSpecWithExplicitInternalMemory(ProcessMemoryUtils.java:86)
> at org.apache.flink.runtime.util.config.memory.ProcessMemoryUtils.memoryProcessSpecFromConfig(ProcessMemoryUtils.java:71)
> at org.apache.flink.runtime.jobmanager.JobManagerProcessUtils.processSpecFromConfig(JobManagerProcessUtils.java:76)
> at org.apache.flink.runtime.jobmanager.JobManagerProcessUtils.processSpecFromConfigWithNewOptionToInterpretLegacyHeap(JobManagerProcessUtils.java:71)
> at org.apache.flink.runtime.util.bash.BashJavaUtils.getJmResourceParams(BashJavaUtils.java:92)
> at org.apache.flink.runtime.util.bash.BashJavaUtils.runCommand(BashJavaUtils.java:66)
> at org.apache.flink.runtime.util.bash.BashJavaUtils.main(BashJavaUtils.java:54)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)