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

Tsz Wo Nicholas Sze commented on HDFS-7276:
-------------------------------------------

- nAllocations=65536
{noformat}
arrayLength=65536, nThreads=256, nAllocations=65536, maxArrays=1024
  NewByteArrayWithoutLimit: 13347
  NewByteArrayWithLimit: 13335
  UsingByteArrayManager: 12970
arrayLength=65536, nThreads=256, nAllocations=65536, maxArrays=4096
  NewByteArrayWithoutLimit: 13266
  NewByteArrayWithLimit: 13269
  UsingByteArrayManager: 12859
arrayLength=65536, nThreads=256, nAllocations=65536, maxArrays=16384
  NewByteArrayWithoutLimit: 13270
  NewByteArrayWithLimit: 13279
  UsingByteArrayManager: 12886
arrayLength=65536, nThreads=256, nAllocations=65536, maxArrays=65536
  NewByteArrayWithoutLimit: 13287
  NewByteArrayWithLimit: 13276
  UsingByteArrayManager: 12886
arrayLength=65536, nThreads=256, nAllocations=65536, maxArrays=262144
  NewByteArrayWithoutLimit: 13344
  NewByteArrayWithLimit: 13324
  UsingByteArrayManager: 12906
{noformat}


> Limit the number of byte arrays used by DFSOutputStream
> -------------------------------------------------------
>
>                 Key: HDFS-7276
>                 URL: https://issues.apache.org/jira/browse/HDFS-7276
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: h7276_20141021.patch, h7276_20141022.patch, 
> h7276_20141023.patch, h7276_20141024.patch, h7276_20141027.patch
>
>
> When there are a lot of DFSOutputStream's writing concurrently, the number of 
> outstanding packets could be large.  The byte arrays created by those packets 
> could occupy a lot of memory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to