Guys I have an aplication wich is used for cadastration of people, this aplication is widely used, and some times responds fast, other times responds slow. I have the folowing code for each page: //at the start of the page: long initTime=System.currentTimeMillis(); //at the end of the page: <!--Processing time: <%=System.currentTimeMillis()-initTime%> The processing time evarage is 2.7 seconds for each page. But the problem is that in some areas out side the company (using an external link 1Mb) the aplication spends an evarage of 17 seconds to appear in the browser of the client, but if we look at the end of the Html generated we will see a number wich is in the first evarage (2.7). What should I do?? please help!
how big is the page? If it's a very large amount of HTML, then you could try a compression filter. This will zip the response, and send it to the browser as a zipped file, which it will then decompress.
I made a response time histogram collection function for my on-line mock Java exams and find that the main peak is in the very low times but a significant number take much longer. I suspect what is happening is that the long times represent people with slow dial-up connections or other form of network congestion. Maybe your clients outside the company just have slow connections, in which case, Mike's compression suggestion could be a big help. Bill
Joined: Nov 07, 2002
Could you give-me more information about the compression filters??? I don't know even where to start.
A google search on "servlet compression filter" should give you plenty information.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus