Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-386

Removing 'System.arraycopy(...)' call from all message constructors to reduce memory/garbage collection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.3.0
    • None
    • None

    Description

      When the data size is bigger than 50% of available memory, it will throws an OOM exception :/

          int dataSize = (int) (Runtime.getRuntime().maxMemory() * 0.60);
          ByteMessage msg = new ByteMessage(Bytes.toBytes("tag"), new byte[dataSize]);
      

      Attachments

        1. HAMA-386.patch
          5 kB
          Edward J. Yoon
        2. patch.txt
          4 kB
          Edward J. Yoon

        Activity

          People

            udanax Edward J. Yoon
            udanax Edward J. Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: