<p dir="ltr">Yes, I'll check it on latest Jdk9 and let you know. </p>
<p dir="ltr">Best, <br>
Jakub </p>
<div class="gmail_quote">20 maj 2015 16:35 "Jesper Wilhelmsson" <<a href="mailto:jesper.wilhelmsson@oracle.com">jesper.wilhelmsson@oracle.com</a>> napisał(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok. I tried that as well but it didn't reproduce.<br>
<br>
After a closer look it seems as if it is the number of regions that is wrong and causes the huge free size reported. There have been a few changes in this area recently which may have fixed this issue.<br>
<br>
Is it possible to try your reproducer with a recent build of JDK 9 or the latest version of 8u from the OpenJDK source repositories?<br>
/Jesper<br>
<br>
<br>
Jakub Kubryński skrev den 20/5/15 15:23:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
64 bit Linux with 32bit JVM.<br>
<br>
Cheers,<br>
Jakub<br>
<br>
20 maj 2015 15:18 "Jesper Wilhelmsson" <<a href="mailto:jesper.wilhelmsson@oracle.com" target="_blank">jesper.wilhelmsson@oracle.com</a><br>
<mailto:<a href="mailto:jesper.wilhelmsson@oracle.com" target="_blank">jesper.wilhelmsson@oracle.com</a>>> napisał(a):<br>
<br>
Hi,<br>
<br>
Does this reproduce every time?<br>
What platform is it?<br>
<br>
I have tried to reproduce this on 32bit linux but can't see anything weird<br>
there. It seems likely that there is a variable with the wrong type<br>
somewhere on the way. I'll see if I can find something.<br>
/Jesper<br>
<br>
<br>
Jakub Kubryński skrev den 15/5/15 17:22:<br>
<br>
Hi,<br>
<br>
I've just checked that on 32bit JVM (HotSpot 8u45) jmap reports strange<br>
region<br>
information for G1 collector. As you can see Xmx is set to 2G (which fits<br>
MaxHeapSize) but regions count (almost 15k) and capacity is incorrect.<br>
Any ideas<br>
why?<br>
<br>
Heap Configuration:<br>
MinHeapFreeRatio = 40<br>
MaxHeapFreeRatio = 70<br>
MaxHeapSize = <a href="tel:2147483648" value="+12147483648" target="_blank">2147483648</a> <tel:<a href="tel:2147483648" value="+12147483648" target="_blank">2147483648</a>> (2048.0MB)<br>
NewSize = 1048576 (1.0MB)<br>
MaxNewSize = 428867584 (409.0MB)<br>
OldSize = 4194304 (4.0MB)<br>
NewRatio = 2<br>
SurvivorRatio = 8<br>
MetaspaceSize = 16777216 (16.0MB)<br>
CompressedClassSpaceSize = 1073741824 (1024.0MB)<br>
MaxMetaspaceSize = 4294963200 (4095.99609375MB)<br>
G1HeapRegionSize = 1048576 (1.0MB)<br>
<br>
Heap Usage:<br>
G1 Heap:<br>
regions = 14336<br>
capacity = <a href="tel:15032385536" value="+15032385536" target="_blank">15032385536</a> <tel:<a href="tel:15032385536" value="+15032385536" target="_blank">15032385536</a>> (14336.0MB)<br>
used = 76347888 (72.81101989746094MB)<br>
free = 14956037648 (14263.188980102539MB)<br>
0.5078893687043872% used<br>
<br>
--<br>
Best regards,<br>
Jakub Kubrynski<br>
<br>
</blockquote>
</blockquote></div>