You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Mariia Mykhailova (JIRA)" <ji...@apache.org> on 2015/09/29 23:59:04 UTC
[jira] [Created] (REEF-792) Find actual memory on the machine in
ContainerManager,java
Mariia Mykhailova created REEF-792:
--------------------------------------
Summary: Find actual memory on the machine in ContainerManager,java
Key: REEF-792
URL: https://issues.apache.org/jira/browse/REEF-792
Project: REEF
Issue Type: Improvement
Components: REEF Runtime Local
Reporter: Mariia Mykhailova
Priority: Minor
{{org/apache/reef/runtime/local/driver/ContainerManager.java}}
In {{sendNodeDescriptors}} method, try to get actual system memory on the machine before falling back to default value.
It looks like this can only be determined via [an API that is only on the Oracle JDK|http://stackoverflow.com/questions/5512378/how-to-get-ram-size-and-size-of-hard-disk-using-java]. We could have a {{try}} block to do that and use {{this.defaultMemorySize}} in the catch
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)