You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rainer Jung <ra...@kippdata.de> on 2010/09/09 09:15:22 UTC

Re: [users@httpd] FW: Request to a specific URL Link on one of the web applications is returning "Bad Gateway"

On 09.09.2010 06:54, Karthik Nanjangude wrote:
> Config Spec
>
> Apache 2.2.1.6
>
> Jboss 4.2.1
>
> mod_jk-1.2.28-httpd-2.2.3.so
>
> Linux Red Hat
>
> DB Oracle
>
> Hosted Application : 4 apps [ Independent Containers of JBOSS Server
> mapped to Apache ]
>
> Logs Configured : JkLogFile “/apps/logs” & JkLogLevel debug
>
> Problem : Request to a specific URL Link on one of the web applications
> is returning “Bad Gateway”
>
> Since JBOSS is consuming some time ( 15 sec minimum ) to fetch this
> report fro Db
>
> How can this problem be fixed.
>
> All other links are displayable correctly
>
> Worker .properties is as follows
>
> worker.list = aloadbalancer, status, sloadbalancer, dloadbalancer,
> cloadbalancer, mloadbalancer
>
> # Define Node1
>
> # modify the host as your host IP or DNS name.
>
> worker.node1.port=8080
>
> worker.node1.host=10.10.21.170
>
> worker.node1.type=ajp13
>
> worker.node1.lbfactor=1
>
> worker.node1.socket_timeout=10
>
> worker.node1.prepost_timeout=10000
>
> worker.node1.connect_timeout=10000
>
> worker.node1.ping_mode=A
>
> # Load-balancing behaviour
>
> worker.aloadbalancer.type=lb
>
> worker.aloadbalancer.balanced_workers=node1
>
> # Status worker for managing load balancer
>
> worker.status.type=status
>
> worker.list=aloadbalancer,status

That's likely happening because of the 10 seconds socket timeout, and 
the 15 seconds JBoss needs to answer.

- Remove the socket timeout and use more fine-grained timeouts. See the 
example confguration contained in the source download for mod_jk *1.2.30*.

- The root cause is very likely logged in the mod_jk log as an "error" 
(timeout waiting for response or similar).

- The usual list to discuss mod_jk is the Tomcat users mailing list.

To subscribe, send mail to

    users-subscribe@tomcat.apache.org

Regards,

Rainer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org