Performance: Download/display a JSP vs HTML
Posted on 2005-04-29
We have a JSP app and one of our page that displays a list of product info from the database is really long and it is taking too much time (7 seconds) to display. We did some diagnosis and found out that the bottle neck is not database/server code. Rather, it starts from the server renders the JSP then browser downloads it and displays it. To test that theory, we saved that page on the browser as a seperate HTML document and put it back on the server. Now when we try to access that HTML on the server it came back less than 2 seconds. The file size is about 400K so I think we've got pretty decent network speed. The problem seems to be pointing to the production server that is sitting 30 miles away from our office rendering the JSP. However, the same JSP shows up in 2 seconds when it is on our development server in the office.
I will really appreciate if anyone have any insight to our problem. I am going to assign 500 points for this question, hope this is a good incentive for all experts here.