Bug 1060066
Summary: | Agent fails to start on JDK1.6 with Unrecognized VM option 'StringTableSize=1000003' | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Filip Brychta <fbrychta> | |
Component: | Agent, Installer | Assignee: | Jirka Kremser <jkremser> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.10 | CC: | hrupp | |
Target Milestone: | --- | |||
Target Release: | RHQ 4.10 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1063370 (view as bug list) | Environment: | ||
Last Closed: | 2014-04-23 12:30:20 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: | 1063370 |
Description
Filip Brychta
2014-01-31 10:18:05 UTC
Idea of a fix for the Unix world: snert:/im/rhq/modules/enterprise/agent/target/rhq-agent/bin hrupp$ diff -u rhq-agent.sh,1 rhq-agent.sh --- rhq-agent.sh,1 2014-01-31 11:40:06.000000000 +0100 +++ rhq-agent.sh 2014-01-31 11:41:48.000000000 +0100 @@ -178,7 +178,11 @@ # ---------------------------------------------------------------------- if [ -z "$RHQ_AGENT_JAVA_OPTS" ]; then - RHQ_AGENT_JAVA_OPTS="-Xms64m -Xmx128m -Djava.net.preferIPv4Stack=true -Drhq.preferences.file=${RHQ_AGENT_HOME}/conf/agent-prefs.properties -XX:StringTableSize=1000003" + RHQ_AGENT_JAVA_OPTS="-Xms64m -Xmx128m -Djava.net.preferIPv4Stack=true -Drhq.preferences.file=${RHQ_AGENT_HOME}/conf/agent-prefs.properties" + JVM_VERSION=`java -version 2>&1 | sed -e '1,1s/^java version "//' -e '2,3d' -e 's/^1.//' -e 's/\..*$//'` + if [ $JVM_VERSION == 7 ]; then + RHQ_AGENT_JAVA_OPTS="$RHQ_AGENT_JAVA_OPTS -XX:StringTableSize=1000003" + fi fi debug_msg "RHQ_AGENT_JAVA_OPTS: $RHQ_AGENT_JAVA_OPTS" removing the JVM option 9000242ddf456e0278eef118b8c035c38816c783 for more details see https://bugzilla.redhat.com/show_bug.cgi?id=1058267#c8 Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10. |