United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6840305 Discrepancy in system memory details (when 4G or greater) reported by JVM and Windows OS
JDK-6840305 : Discrepancy in system memory details (when 4G or greater) reported by JVM and Windows OS

Details
Type:
Bug
Submit Date:
2009-05-12
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-07-14
Component:
hotspot
OS:
windows_2008
Sub-Component:
runtime
CPU:
generic
Priority:
P2
Resolution:
Won't Fix
Affected Versions:
5.0u16
Fixed Versions:
5.0-pool

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
Customer seeing a discrepancy in system memory details shown in hs_err log and the actual memory in the win2k8 server.

Actual RAM size  :4GB  but in hs_err it is  physical 2097151k(157596k free)
Actual Virtual Memory      :8GB but in hs_err it is swap 4194303k(3189640k free)

                                    

Comments
EVALUATION

GlobalMemoryStatus() does not report correct memory usage when the system has more than 4gb of RAM. GlobalMemoryStatusEx() should be used in place of GlobalMemoryStatus().
                                     
2009-06-17
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/8c79517a9300
                                     
2009-07-17



Hardware and Software, Engineered to Work Together