Wednesday, September 24, 2008

JSP page buffer size fix for slow page generation/loading

If you think, a JSP page is taking lot of time to load, here is one of the possible reason. The default buffer size for the jsp page is 32k. When this buffer gets full, the buffer is pushed on the net. Sometimes it might be desirable to flush buffers as it doesn't leave user wondering what's happening. But what if you were just close to complete the page? This is what happened with us.

<%@page buffer="64kb" %>

When we pushed up the buffer size, a delay of around 800 ms just vanished.

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]