Bug 714817 - apache plugin: with some versions of JRockit 1.6 JVM, Apache server avail checks hang indefinitely when trying to HTTP-ping a server that's down
Summary: apache plugin: with some versions of JRockit 1.6 JVM, Apache server avail che...
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.0.1
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Mike Foley
Depends On:
Blocks: jon3
TreeView+ depends on / blocked
Reported: 2011-06-20 21:23 UTC by Ian Springer
Modified: 2013-08-06 00:39 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2011-06-22 20:44:56 UTC

Attachments (Terms of Use)

Description Ian Springer 2011-06-20 21:23:24 UTC

Comment 1 Ian Springer 2011-06-21 19:05:02 UTC
[master 6002385] fixes this. The fix was to call setReadTimeout(1000) on the HTTP URL connection. It appears that for a non-responding URL, in the Sun JDK, the call to connect() would fail and so our setConnectTimeout(3000) sufficed, but, in the JRockit JDK, the call to connect() would succeed and then the call to getResponseCode() would hang because no read timeout was specified.

To test this, start an Agent with JRockit 1.6 and inventory an Apache server. Bring one or more of the Apache vhosts down then run the "discovery -f" and "avail" commands from the Agent prompt and make sure neither command hangs. Do the same with Agent on the Sun JVM to make sure it works there too.

Comment 2 Mike Foley 2011-06-22 20:44:56 UTC
not explicitly supported.  not going to verify this at this time.

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