My JSP application runs fine sometimes, but on other instances, when i try to refresh the page, the server outputs only a part of the page. In the Tomcat Console, I see "IOException, Connection reset by peer". If I keep refreshing the page, it loads the complete page at some point. Otherwise I have to restart the server and try again. Any suggestions on how I can overcome this?

radheep arikkath

I also had a similar sort of problem regarding page loading wherein it used to load partially the page and later on it may or may not load the complete page. It seemed that the default buffer size for the JSP page was not enough. We overcame it by increasing the page buffer size as:

<%@ page language="java" buffer= "64KB" %>