Bug 822218 - Investigate dropping -Djava.net.preferIPv4Stack=true from agent options
Summary: Investigate dropping -Djava.net.preferIPv4Stack=true from agent options
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 809125 919199
TreeView+ depends on / blocked
 
Reported: 2012-05-16 16:26 UTC by Heiko W. Rupp
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 809125 0 high NEW [eap6] incorrectly detected server listening on IPv6 address 2022-03-31 04:28:34 UTC
Red Hat Bugzilla 809721 0 medium NEW [eap6] deployment cannot be created when server is listening on IPv6 2022-03-31 04:28:31 UTC
Red Hat Bugzilla 824102 0 unspecified NEW [as5] server discovery sometimes discovers a JNP URL containing an IPv6 address surrounded by square brackets (e.g. "jnp... 2024-03-04 13:35:13 UTC

Internal Links: 809125 809721 824102

Description Heiko W. Rupp 2012-05-16 16:26:38 UTC
We should investigate dropping that flag - how will connections to jmx servers and the agent/server communication work?

This flag prevents simultaneous usage of IPv6 and IPv4 :

See Bug 809721 and Bug 809125

------
from rhq-devel:

Interestingly enough, this bug itself may have been solved, but we may be running into a different one:

the -Djava.net.preferIPv4Stack=true property now looks like the bad guy:

snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ echo $RHQ_AGENT_JAVA_OPTS 
-Xmx320m -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n
snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ bin/standalone.sh 
Listening for transport dt_socket at address: 8788

Starting the plugin container.
Loading plugins
...Loaded plugin: JBossAS7
...Loaded plugin: JMX
...Loaded plugin: Platforms

Ready.
[0]:0 > disc s
Discovery took: 1021ms
[Resource[id=-3, uuid=a7d94d2d-944d-4c12-881a-73bef576a3c7, type={JBossAS7}JBossAS7 Standalone Server, key=/devel/jboss-eap-6.0/standalone, name=EAP (::1:9990), parent=snert, version=EAP 6.0.0.Beta2]]
[1]:0 > avail -3
EAP (::1:9990)( -3 ):UP
[2]:0 > quit
Terminating ..
Shutting down ...
snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ export RHQ_AGENT_JAVA_OPTS="$RHQ_AGENT_JAVA_OPTS -Djava.net.preferIPv4Stack=true"
snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ echo $RHQ_AGENT_JAVA_OPTS -Xmx320m -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n -Djava.net.preferIPv4Stack=true
snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ bin/standalone.sh Listening for transport dt_socket at address: 8788

Starting the plugin container.
Loading plugins
dis...Loaded plugin: JBossAS7
...Loaded plugin: JMX
...Loaded plugin: Platforms

Ready.
[0]:0 >  disc s
Discovery took: 1172ms
[Resource[id=-3, uuid=5a2f33c7-62a3-434a-95cc-c24aa319725f, type={JBossAS7}JBossAS7 Standalone Server, key=/devel/jboss-eap-6.0/standalone, name=EAP (::1:9990), parent=snert, version=EAP 6.0]]
[1]:0 > avail -3
EAP (::1:9990)( -3 ):DOWN


Note You need to log in before you can comment on or make changes to this bug.