[
https://issues.apache.org/jira/browse/HADOOP-11098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14768986#comment-14768986
]
Tsz Wo Nicholas Sze commented on HADOOP-11098:
----------------------------------------------
The problem can be easily reproduced by running the following code in Java 7
and Java 8 respectively.
{code}
public static void main(String[] args) {
final String p = "java.version";
System.out.println(p + " = " + System.getProperty(p));
MemoryMXBean b = ManagementFactory.getMemoryMXBean();
MemoryUsage memNonHeap = b.getNonHeapMemoryUsage();
System.out.println("max = " + memNonHeap.getMax());
}
{code}
- java 7
{code}
java.version = 1.7.0_60
max = 136314880
{code}
- java 8
{code}
java.version = 1.8.0_60
max = -1
{code}
> [JDK8] Max Non Heap Memory default changed between JDK7 and 8
> -------------------------------------------------------------
>
> Key: HADOOP-11098
> URL: https://issues.apache.org/jira/browse/HADOOP-11098
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: JDK8
> Reporter: Travis Thompson
>
> I noticed this because the NameNode UI shows "Max Non Heap Memory" which
> after some digging I found correlates to MaxDirectMemorySize.
> JDK7
> {noformat}
> Heap Memory used 16.75 GB of 23 GB Heap Memory. Max Heap Memory is 23.7 GB.
> Non Heap Memory used 57.32 MB of 67.38 MB Commited Non Heap Memory. Max Non
> Heap Memory is 130 MB.
> {noformat}
> JDK8
> {noformat}
> Heap Memory used 3.02 GB of 7.65 GB Heap Memory. Max Heap Memory is 23.7 GB.
> Non Heap Memory used 103.12 MB of 104.41 MB Commited Non Heap Memory. Max Non
> Heap Memory is -1 B.
> {noformat}
> More information in first comment.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)