incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection
Date Thu, 12 May 2011 01:37:47 GMT

     [ https://issues.apache.org/jira/browse/HAMA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Edward J. Yoon updated HAMA-386:
--------------------------------

    Attachment: patch.txt

attach my patch.

(P.S. GroboUtils and TestBSPPeer will be removed.)

> Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage
collection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HAMA-386
>                 URL: https://issues.apache.org/jira/browse/HAMA-386
>             Project: Hama
>          Issue Type: Improvement
>            Reporter: Edward J. Yoon
>         Attachments: patch.txt
>
>
> When the data size is bigger than 50% of available memory, it will throws an OOM exception
:/
> {code}
>     int dataSize = (int) (Runtime.getRuntime().maxMemory() * 0.60);
>     ByteMessage msg = new ByteMessage(Bytes.toBytes("tag"), new byte[dataSize]);
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message