You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Andre Gustavo Lomonaco <lo...@ipplus.com.br> on 2012/11/10 22:17:54 UTC

Problem to Show Slowest Pages

Hi Everyone,

I'm having a problem with pages that spend a lot of time doing some 
analysis.
The IE shows the page loading but never show me the page, although I can see 
in the log that the page was finished

For example, when I try to receive the pag maclvan.htm I can't but the log 
show me that Apache Click finished his job:

[Click] [info ] renderTemplate: 
/protocolos/macvlan.htm,border-template.htm - 7 ms
[Click] [info ] handleRequest:  /protocolos/macvlan.htm - 498406 ms

When I try the same page, but with less data, I can receive the page in my 
IE without problem

[Click] [info ] renderTemplate: 
/protocolos/macvlan.htm,border-template.htm - 5 ms
[Click] [info ] handleRequest:  /protocolos/macvlan.htm - 45003 ms

Is there any timeout that my application needs to respect ?
Any tip or help ?
I'm using Apache Click 2.1.0 with Tomcat 7.0.23

My Best Regards

Andre Gustavo 





Re: Problem to Show Slowest Pages

Posted by Andre Gustavo Lomonaco <lo...@ipplus.com.br>.
Hi Joe Hindsley,

  Thanks a lot for your comments and for your reply.
   I like the idea to use AJAX to retrive data after the page loads, cause 
for me is too dificult to reduce the page analysis time
   Do you have an AJAX example for Apache Click that I can use for this 
situation ?

  Thanks again
  My Best Regards,

  Andre Gustavo Lomonaco

----- Original Message ----- 
From: "Joe Hindsley" <jh...@gmail.com>
To: <us...@click.apache.org>
Sent: Saturday, November 10, 2012 9:07 PM
Subject: Re: Problem to Show Slowest Pages


> Hi Andre,
>
> You'll need to do a bit of digging to determine where the bottleneck is 
> and then optimise that part.
>
> For example, you said that your page spends a lot of time doing analysis - 
> is there any way to pre-generate or cache that data so you don't have to 
> compute it every time the page is hit? Maybe you can take advantage of 
> AJAX to retrieve data after the page loads or limit the amount of data 
> you're sending.
>
> You might also try using a different browser to hit the page - or even use 
> telnet or wget to retrieve it - just to see if you're getting all of the 
> data or if there is a timeout someplace.
>
> It's hard to say which way to look first without knowing the application, 
> but those are some starting points. Ultimately, it's a matter of finding 
> the slow point and fixing it.
>
> Cheers,
>
> Joe Hindsley
>
> On 11/10/2012 04:17 PM, Andre Gustavo Lomonaco wrote:
>> Hi Everyone,
>>
>> I'm having a problem with pages that spend a lot of time doing some
>> analysis.
>> The IE shows the page loading but never show me the page, although I can
>> see in the log that the page was finished
>>
>> For example, when I try to receive the pag maclvan.htm I can't but the
>> log show me that Apache Click finished his job:
>>
>> [Click] [info ] renderTemplate:
>> /protocolos/macvlan.htm,border-template.htm - 7 ms
>> [Click] [info ] handleRequest:  /protocolos/macvlan.htm - 498406 ms
>>
>> When I try the same page, but with less data, I can receive the page in
>> my IE without problem
>>
>> [Click] [info ] renderTemplate:
>> /protocolos/macvlan.htm,border-template.htm - 5 ms
>> [Click] [info ] handleRequest:  /protocolos/macvlan.htm - 45003 ms
>>
>> Is there any timeout that my application needs to respect ?
>> Any tip or help ?
>> I'm using Apache Click 2.1.0 with Tomcat 7.0.23
>>
>> My Best Regards
>>
>> Andre Gustavo
>>
>>
>>
> 





Re: Problem to Show Slowest Pages

Posted by Joe Hindsley <jh...@gmail.com>.
Hi Andre,

You'll need to do a bit of digging to determine where the bottleneck is 
and then optimise that part.

For example, you said that your page spends a lot of time doing analysis 
- is there any way to pre-generate or cache that data so you don't have 
to compute it every time the page is hit? Maybe you can take advantage 
of AJAX to retrieve data after the page loads or limit the amount of 
data you're sending.

You might also try using a different browser to hit the page - or even 
use telnet or wget to retrieve it - just to see if you're getting all of 
the data or if there is a timeout someplace.

It's hard to say which way to look first without knowing the 
application, but those are some starting points. Ultimately, it's a 
matter of finding the slow point and fixing it.

Cheers,

Joe Hindsley

On 11/10/2012 04:17 PM, Andre Gustavo Lomonaco wrote:
> Hi Everyone,
>
> I'm having a problem with pages that spend a lot of time doing some
> analysis.
> The IE shows the page loading but never show me the page, although I can
> see in the log that the page was finished
>
> For example, when I try to receive the pag maclvan.htm I can't but the
> log show me that Apache Click finished his job:
>
> [Click] [info ] renderTemplate:
> /protocolos/macvlan.htm,border-template.htm - 7 ms
> [Click] [info ] handleRequest:  /protocolos/macvlan.htm - 498406 ms
>
> When I try the same page, but with less data, I can receive the page in
> my IE without problem
>
> [Click] [info ] renderTemplate:
> /protocolos/macvlan.htm,border-template.htm - 5 ms
> [Click] [info ] handleRequest:  /protocolos/macvlan.htm - 45003 ms
>
> Is there any timeout that my application needs to respect ?
> Any tip or help ?
> I'm using Apache Click 2.1.0 with Tomcat 7.0.23
>
> My Best Regards
>
> Andre Gustavo
>
>
>