Fix for issue #2404 (ds-start --systemInfo does not detect 64 bits amd64 Solaris 10)
Add extra information based on the "sun.arch.data.model"
system property (see http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_detection)
This property has the value "32-bit", "64-bit", or "unknown"
| | |
| | | System.getProperty("os.name") + " " + |
| | | System.getProperty("os.version") + " " + |
| | | System.getProperty("os.arch")); |
| | | String sunOsArchDataModel = System.getProperty("sun.arch.data.model"); |
| | | if (sunOsArchDataModel != null) |
| | | { |
| | | System.out.print ("JVM Architecture: " + sunOsArchDataModel); |
| | | if (! sunOsArchDataModel.toLowerCase().equals("unknown")) |
| | | { |
| | | System.out.print("-bit"); |
| | | } |
| | | System.out.println(); |
| | | } |
| | | else |
| | | { |
| | | System.out.println("JVM Architecture: unknown"); |
| | | } |
| | | |
| | | try |
| | | { |
| | |
| | | System.getProperty("os.version") + " " + |
| | | System.getProperty("os.arch"); |
| | | attrs.add(createAttribute("operatingSystem", osInfo)); |
| | | String sunOsArchDataModel = System.getProperty("sun.arch.data.model"); |
| | | if (sunOsArchDataModel != null) |
| | | { |
| | | String jvmArch = sunOsArchDataModel; |
| | | if (! sunOsArchDataModel.toLowerCase().equals("unknown")) |
| | | { |
| | | jvmArch += "-bit"; |
| | | } |
| | | attrs.add(createAttribute("jvmArchitecture", jvmArch)); |
| | | } |
| | | else |
| | | { |
| | | attrs.add(createAttribute("jvmArchitecture","unknown")); |
| | | } |
| | | |
| | | try |
| | | { |