JDK-6252770 : Fix the swap space info on linux machine.
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2005-04-08
  • Updated: 2010-04-03
  • Resolved: 2005-04-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u4Fixed 6 b35Fixed
Related Reports
Relates :  
Description
Swap sapce info reported by MM on some linux machine may not be correct.
The sysinfo() returns memory size in mem_units bytes. So we need to 
multiply the free swap and total swap and other memory information
with mem_units. 


###@###.### 2005-04-08 20:20:06 GMT

Comments
EVALUATION The sysinfo structure was modified since Linux 2.3.23, 2.3.48. The sizes are given as multiples of mem_unit bytes (no longer in bytes). 6191542 modified com.sun.management.UnixOperatingSystem to get swap space info from sysinfo instead of /proc but assumes the sizes are in bytes which is incorrect when running on Linux 2.3.48 or later releases. Fix this in Mustang. ###@###.### 2005-04-11 16:53:00 GMT
11-04-2005