You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Sergey Dudoladov (JIRA)" <ji...@apache.org> on 2015/10/05 12:28:26 UTC

[jira] [Commented] (REEF-792) Find actual memory on the machine in ContainerManager,java

    [ https://issues.apache.org/jira/browse/REEF-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14943196#comment-14943196 ] 

Sergey Dudoladov commented on REEF-792:
---------------------------------------

Pull request at https://github.com/apache/incubator-reef/pull/542 

> 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)