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

Haohui Mai commented on HDFS-7158:
----------------------------------

The main changes of the v0 patch are the following:

# Store the bytes in PB format directly in the memory instead of extracting out 
at the first place.
# Optimize the usage of INodeReference.
# Miscellaneous clean ups.

I've tested the code on a 3G fsimage, the peak heap usage of WebImageViewer 
reduces from 46G to 7G.

> Reduce the memory usage of WebImageViewer
> -----------------------------------------
>
>                 Key: HDFS-7158
>                 URL: https://issues.apache.org/jira/browse/HDFS-7158
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>         Attachments: HDFS-7158.000.patch
>
>
> Currently the webimageviewer can take up as much memory as the NN uses in 
> order to serve the WebHDFS requests from the client.
> This jira proposes to optimize the memory usage of webimageviewer.



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

Reply via email to