hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sankar Sivarama Subramaniyan (JIRA)" <>
Subject [jira] [Updated] (HIVE-12310) Update memory estimation login in TopNHash
Date Fri, 06 Nov 2015 01:20:27 GMT


Hari Sankar Sivarama Subramaniyan updated HIVE-12310:
    Attachment: HIVE-12310.1.patch

[~thejas] Can you please review the patch.


> Update memory estimation login in TopNHash
> ------------------------------------------
>                 Key: HIVE-12310
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Thejas M Nair
>            Assignee: Hari Sankar Sivarama Subramaniyan
>         Attachments: HIVE-12310.1.patch
> HIVE-12084 changes TopNHash to use Runtime.getRuntime().freeMemory() for finding available
> However, it does not give the all the memory it could use, it ignores unallocated memory.
This is because the heap size of jvm grows up to max heap size (-Xmx) as per it needs. totalMemory()
gives total heap space it has allocated, and freeMemory() is the free memory within that.
> See and
> So instead of using Runtime.getRuntime().freeMemory() , I think it should use maxMemory()
- totalMemory() + freeMemory()

This message was sent by Atlassian JIRA

View raw message