Partail/Duplicate Content merged with original contenr and served by Apache+Mod_jk

Discussion in 'Apache' started by wipkar, Sep 1, 2009.

  1. #1
    Hi,

    In our production envt,we are making use of a configuration of Apache+Mod_jk+JBOSS+ATG.We are recently facing a problem where the client browser is being served with Multiple/Duplicate content from Apache.

    I am having a local setup of the above configuration and am able to recreate the problem.The setup involves apache configured with mod_jk having two worker nodes balanced by a load balancer worker.The problem occurs when the app code takes a longer time than the time defined in the socket_timeout parameter of the worker nodes.I have set the config to be 2 secs for both nodes and the appserver is made to sleep for 3secs.

    The behaviour observed is as follows:

    The first node fails after the socket timeout time and the second node is able to retreive the response from the app server.However while turning on the debug of mod_jk,i am observing that a partial content has been served by the AJP Connector/Container from the App server for the node 1.Also,a full content has been served for the request initiated by node2.

    The partial content has been merged with the full content and this merged content has been served to the client browser.Hence the browser has a duplicate/multiple content shown to the customers.

    Can somebody help by providing a workaround to eliminate this partial content and serve only the full content either at the Web server/Mod_jk layer or at the app server end.

    Please find attached the complete byte level request response occuring in Mod_jk logs
     

    Attached Files:

    wipkar, Sep 1, 2009 IP