We are having an issue of raw HTML(JSP) code being displayed on browser. This is an intermittent behaviour and seems to occur under high load.
In our project, the JSP pages reside in the Application Server(IBM websphere on UNIX environment and the web project runs on ATG framework).
Traffic is routed to the application server via the IBM HTTP Web servers i.e. the webservers are the first to intercept the incoming http requests.
We have tried to debug the issue and found that the response headers have different MIME type when the browser displays raw HTML code.
Somehow it is being set to text/plain instead of text/html.
We are setting the MIME type in the JSPs too like
<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" %>
Please let me know if anyone has faced this issue and can help me debug it.
Is it somethinng to do with the webserver setting wrong MIME type under load?
If so please let me know where to look at to fix it. Thanks!