You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2011/05/11 10:30:47 UTC

[jira] [Created] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

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


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

[jira] [Updated] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: HAMA-386.patch

Trivial changes.

> 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
>    Affects Versions: 0.2.0
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-386.patch, 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

[jira] [Commented] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032634#comment-13032634 ] 

Hudson commented on HAMA-386:
-----------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12478928/patch.txt
against trunk revision 1100148.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 6 new or modified tests.

    core tests +1.  The patch passed core unit tests.

Changes : http://builds.apache.org/hudson/job/Hama-Patch/336/changes/
Console output: http://builds.apache.org/hudson/job/Hama-Patch/336/console

This message is automatically generated.

> 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
>    Affects Versions: 0.2.0
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         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

[jira] [Updated] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Updated] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

        Fix Version/s: 0.3.0
             Assignee: Edward J. Yoon
    Affects Version/s: 0.2.0
               Status: Patch Available  (was: Open)

submitting

> 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
>    Affects Versions: 0.2.0
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         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

[jira] [Updated] (HAMA-386) Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

committed.

> 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
>    Affects Versions: 0.2.0
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.3.0
>
>         Attachments: HAMA-386.patch, 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