Apache web server and/or virtual host JBoss ON resources are marked as unavailable due to delayed response to HTTP HEAD request resulting in Call to ApacheServerComponent.getAvailability()] with args [] timed out
Issue
- ApacheServerComponent.getAvailability() timed out
- Apache is being marked as unavailable even though it is up
-
Following message for Apache reported in JBoss ON UI:
"Call to [org.rhq.plugins.apache.ApacheServerComponent.getAvailability()] with args [] timed out after 5000 milliseconds - invocation thread will be interrupted." -
Delay encountered when Apache plug-in issues HEAD request for httpd availability check
-
JBoss ON agent DEBUG logging shows entries like the below:
2012-12-18 09:42:41,819 DEBUG [ResourceContainer.invoker.daemon-4] (rhq.plugins.www.util.WWWUtils)- Pinging [http://myserver:8080/ping.xhtml] with timeout of 5000 milliseconds... 2012-12-18 09:42:41,819 DEBUG [ResourceContainer.invoker.daemon-4] (rhq.plugins.www.util.WWWUtils)- Connecting to [http://myserver:8080/ping.xhtml]... 2012-12-18 09:42:41,820 DEBUG [ResourceContainer.invoker.daemon-4] (rhq.plugins.www.util.WWWUtils)- Connected to [http://myserver:8080/ping.xhtml] in 1 milliseconds. 2012-12-18 09:42:41,820 DEBUG [ResourceContainer.invoker.daemon-4] (rhq.plugins.www.util.WWWUtils)- Sending HEAD request to [http://myserver:8080/ping.xhtml]... 2012-12-18 09:42:46,820 DEBUG [InventoryManager.availability-1] (rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler)- Call to [org.rhq.plugins.apache.ApacheServerComponent.getAvailability()] with args [] timed out after 5000 milliseconds - invocation thread will be interrupted. 2012-12-18 09:42:46,820 DEBUG [InventoryManager.availability-1] (rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler)- Facet lock status for [Resource[id=10360, uuid=e5a46eb6-2386-4b71-a8ab-a320b141e0ff, type={Apache}Apache HTTP Server, key=/jboss/servers/jboss-ews-1.0/httpd||/jboss/servers/jboss-ews-1.0/httpd/conf/httpd.conf, name=myserver:8080, parent=myserver, version=2.2.17]], is-write-locked=[false], is-write-locked-by-current-thread=[false], read-locks=[0], waiting-for-lock-queue-size=[0] 2012-12-18 09:42:46,821 DEBUG [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Failed to collect availability on Resource[id=10360, uuid=e5a46eb6-2386-4b71-a8ab-a320b141e0ff, type={Apache}Apache HTTP Server, key=/jboss/servers/jboss-ews-1.0/httpd||/jboss/servers/jboss-ews-1.0/httpd/conf/httpd.conf, name=myserver:8080, parent=myserver, version=2.2.17] (call timed out) 2012-12-18 09:42:56,823 DEBUG [ResourceContainer.invoker.daemon-4] (rhq.plugins.www.util.WWWUtils)- Read response from HEAD request to [http://myserver:8080/ping.xhtml] in 15003 milliseconds. -
Apache web server and/or virtual host are marked as down or unavailable even when they are available and responding
Environment
- JBoss Operations Network (ON) 3.1.1
- Apache Web Server or Apache Virtual Host resource in inventory with its URL connection setting property properly defined
- mod_dumpio enabled in httpd.conf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.