It's not a secret anymore!
The moose likes Performance and the fly likes slow aplication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "slow aplication" Watch "slow aplication" New topic

slow aplication

Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
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

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Mar 22, 2000
Posts: 13037
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.
Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
Could you give-me more information about the compression filters??? I don't know even where to start.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
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
I agree. Here's the link:
subject: slow aplication
It's not a secret anymore!