Bug 852037
Summary: | JBoss startup failure: -XX:+UseCompressedOops java option unsupported with OpenJDK 1.7.0_05-icedtea | |||
---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Keith Burdis <keith> | |
Component: | ovirt-engine-installer | Assignee: | Juan Hernández <juan.hernandez> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.1 GA | CC: | acathrow, dyasny, iheim, juan.hernandez, ykaul | |
Target Milestone: | --- | |||
Target Release: | 3.2 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | infra | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 857692 (view as bug list) | Environment: | ||
Last Closed: | 2013-02-15 06:46:49 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 857692 |
Description
Keith Burdis
2012-08-27 12:11:16 UTC
I am a bit confused, you say that the x86_64 machine doesn't support the flag but you are given the output of "java -v" of the i386 version, which is probably what you have configured by default with "alternatives". I have exactly that version installed and the option works fine: # rpm -qa | grep openjdk java-1.7.0-openjdk-1.7.0.5-2.2.1.fc17.9.x86_64 java-1.7.0-openjdk-devel-1.7.0.5-2.2.1.fc17.9.x86_64 # java -version java version "1.7.0_05-icedtea" OpenJDK Runtime Environment (fedora-2.2.1.fc17.9-x86_64) OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode) Are you sure you are using the 64 bits of the virtual machine to run the engine and not the 32 bits version that you have installed? It is very easy to check, just change with the "alternatives" command with version is in use, and maybe change it: # alternatives --display java java - status is auto. link currently points to /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java ... If you see that you are using the 32 bits please change to the 64 bits version: # alternatives --config java If you see the the problem with the 32 bits version we might need to remove that option when running in 32 bits environments (it is mainly a performance improvement). Yes, you're right, the -XX:+UseCompressedOops option works fine with 64-bit java: [keith@server ~]$ /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.5.x86_64/jre/bin/java -XX:+UseCompressedOops test Error: Could not find or load main class test but fails with 32-bit java: [keith@server ~]$ /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.5/jre/bin/java -XX:+UseCompressedOops test Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Thanks for spotting the problem with my setup. not sure if we should fix to work on 32bit, or just validate its 64bit jvm As we have to check if it is 64 or 32 bits anyhow, I would just remove that option of it is 32bit. The suggested fix for this issue is here: http://gerrit.ovirt.org/7949 The fix has been merged: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=bc8709e4c28384386aed39ee1f7d25ee70e063b7 3.2 beta built, moving to ON_QA status to allow testing |