File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

slow aplication

 
Leandro Oliveira
Ranch Hand
Posts: 298
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Makes it much faster to transmit.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13044
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Leandro Oliveira
Ranch Hand
Posts: 298
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you give-me more information about the compression filters??? I don't know even where to start.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A google search on "servlet compression filter" should give you plenty information.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic