funtion taking time to return Callback

View: New views
20 Messages — Rating Filter:   Alert me  

funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   Am using DWR 2.0.
   I have written a piece of code in javascript as:

   StrandSummary.buildStrandSummary(objParametersBD, function(objSummary){
        objObjectiveSummary = objSummary;
        displayStrandSummary();
   });
 
   Where StrandSummary is my java class converted to dwr. objParametersBD and objObjectiveSummary  are global javascript objects.
 
   The problem is when I call "buildStrandSummary" it is taking around 20sec to return me the callback.
When I checked the java classes, the entire logic and query building is beging done in around 2 sec.
In these classes there are around 8 getters and setters classes invlolved.

I just want to know the reason why this is taking time to return a callback.

Thanks in Advance,
Rizwan

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?

    <filter class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
      <param name="delay" value="200"/>
    </filter>

Have you tried executing from the dwr debug page? Is it some clientside rendering taking the time?

2009/6/23 Rizwan Ahmed <rizwan.amd@...>

Hi,
  Am using DWR 2.0.
  I have written a piece of code in javascript as:

  StrandSummary.buildStrandSummary(objParametersBD, function(objSummary){
       objObjectiveSummary = objSummary;
       displayStrandSummary();
  });

  Where StrandSummary is my java class converted to dwr. objParametersBD
and objObjectiveSummary  are global javascript objects.

  The problem is when I call "buildStrandSummary" it is taking around 20sec
to return me the callback.
When I checked the java classes, the entire logic and query building is
beging done in around 2 sec.
In these classes there are around 8 getters and setters classes invlolved.

I just want to know the reason why this is taking time to return a callback.

Thanks in Advance,
Rizwan

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lance,

     I will configure this and check it.
I feel its not exactly clientside problem, but it is taking time to get the callback.

Rizwan

Lance Java wrote:
I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
    <filter class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
     
    </filter>

Have you tried executing from the dwr debug page? Is it some clientside
rendering taking the time?

2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>

>
> Hi,
>   Am using DWR 2.0.
>   I have written a piece of code in javascript as:
>
>   StrandSummary.buildStrandSummary(objParametersBD, function(objSummary){
>        objObjectiveSummary = objSummary;
>        displayStrandSummary();
>   });
>
>   Where StrandSummary is my java class converted to dwr. objParametersBD
> and objObjectiveSummary  are global javascript objects.
>
>   The problem is when I call "buildStrandSummary" it is taking around 20sec
> to return me the callback.
> When I checked the java classes, the entire logic and query building is
> beging done in around 2 sec.
> In these classes there are around 8 getters and setters classes invlolved.
>
> I just want to know the reason why this is taking time to return a
> callback.
>
> Thanks in Advance,
> Rizwan
>
> --
> View this message in context:
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you give a bit more info on the return type of the method and the converter you are using?
Is it a simple bean converter or is it some form of hibernate converter fetching unwanted rows from your DB?

2009/6/23 Rizwan Ahmed <rizwan.amd@...>

Hi Lance,

    I will configure this and check it.
I feel its not exactly clientside problem, but it is taking time to get the
callback.

Rizwan


Lance Java wrote:
>
> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>     <filter class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>
>     </filter>
>
> Have you tried executing from the dwr debug page? Is it some clientside
> rendering taking the time?
>
> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>
>>
>> Hi,
>>   Am using DWR 2.0.
>>   I have written a piece of code in javascript as:
>>
>>   StrandSummary.buildStrandSummary(objParametersBD, function(objSummary){
>>        objObjectiveSummary = objSummary;
>>        displayStrandSummary();
>>   });
>>
>>   Where StrandSummary is my java class converted to dwr. objParametersBD
>> and objObjectiveSummary  are global javascript objects.
>>
>>   The problem is when I call "buildStrandSummary" it is taking around
>> 20sec
>> to return me the callback.
>> When I checked the java classes, the entire logic and query building is
>> beging done in around 2 sec.
>> In these classes there are around 8 getters and setters classes
>> invlolved.
>>
>> I just want to know the reason why this is taking time to return a
>> callback.
>>
>> Thanks in Advance,
>> Rizwan
>>
>> --
>> View this message in context:
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ExtraLatencyAjaxFilter didnot solved my problem.
Its not a simple bean converter. The return type is bean itself. That inturn sets 6-8 beans in that.

Lance Java wrote:
Can you give a bit more info on the return type of the method and the
converter you are using?Is it a simple bean converter or is it some form of
hibernate converter fetching unwanted rows from your DB?

2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>

>
> Hi Lance,
>
>     I will configure this and check it.
> I feel its not exactly clientside problem, but it is taking time to get the
> callback.
>
> Rizwan
>
>
> Lance Java wrote:
> >
> > I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
> >     <filter class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
> >
> >     </filter>
> >
> > Have you tried executing from the dwr debug page? Is it some clientside
> > rendering taking the time?
> >
> > 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
> >
> >>
> >> Hi,
> >>   Am using DWR 2.0.
> >>   I have written a piece of code in javascript as:
> >>
> >>   StrandSummary.buildStrandSummary(objParametersBD,
> function(objSummary){
> >>        objObjectiveSummary = objSummary;
> >>        displayStrandSummary();
> >>   });
> >>
> >>   Where StrandSummary is my java class converted to dwr. objParametersBD
> >> and objObjectiveSummary  are global javascript objects.
> >>
> >>   The problem is when I call "buildStrandSummary" it is taking around
> >> 20sec
> >> to return me the callback.
> >> When I checked the java classes, the entire logic and query building is
> >> beging done in around 2 sec.
> >> In these classes there are around 8 getters and setters classes
> >> invlolved.
> >>
> >> I just want to know the reason why this is taking time to return a
> >> callback.
> >>
> >> Thanks in Advance,
> >> Rizwan
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
> >> Sent from the DWR - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >> For additional commands, e-mail: users-help@dwr.dev.java.net
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry... ExtraLatencyFilter adds a pause to each request... was just checking if you had it on.
Try alert(dwr.util.toDescriptiveString(response, 20)) on the clientside to see if the returned object contains a large dataset.

2009/6/23 Rizwan Ahmed <rizwan.amd@...>

ExtraLatencyAjaxFilter didnot solved my problem.
Its not a simple bean converter. The return type is bean itself. That inturn
sets 6-8 beans in that.


Lance Java wrote:
>
> Can you give a bit more info on the return type of the method and the
> converter you are using?Is it a simple bean converter or is it some form
> of
> hibernate converter fetching unwanted rows from your DB?
>
> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>
>>
>> Hi Lance,
>>
>>     I will configure this and check it.
>> I feel its not exactly clientside problem, but it is taking time to get
>> the
>> callback.
>>
>> Rizwan
>>
>>
>> Lance Java wrote:
>> >
>> > I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>> >     <filter
>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>> >
>> >     </filter>
>> >
>> > Have you tried executing from the dwr debug page? Is it some clientside
>> > rendering taking the time?
>> >
>> > 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>> >
>> >>
>> >> Hi,
>> >>   Am using DWR 2.0.
>> >>   I have written a piece of code in javascript as:
>> >>
>> >>   StrandSummary.buildStrandSummary(objParametersBD,
>> function(objSummary){
>> >>        objObjectiveSummary = objSummary;
>> >>        displayStrandSummary();
>> >>   });
>> >>
>> >>   Where StrandSummary is my java class converted to dwr.
>> objParametersBD
>> >> and objObjectiveSummary  are global javascript objects.
>> >>
>> >>   The problem is when I call "buildStrandSummary" it is taking around
>> >> 20sec
>> >> to return me the callback.
>> >> When I checked the java classes, the entire logic and query building
>> is
>> >> beging done in around 2 sec.
>> >> In these classes there are around 8 getters and setters classes
>> >> invlolved.
>> >>
>> >> I just want to know the reason why this is taking time to return a
>> >> callback.
>> >>
>> >> Thanks in Advance,
>> >> Rizwan
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>> >> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@...
>> >> For additional commands, e-mail: users-help@...
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24165110.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is not normal so my guess is you are trying to return way too much
data or have recursive data.  Are you really using version of 2.0, not
2.05?  I mention this because we used to have some performance issues in
building JS objects on the client.  We were using string concatenation
instead of adding to and joining an array.  This can cause older IE
versions to bog down.  This is fixed in 2.05, but may exist in older 2.x
versions.

Have you tried calling your method from the DWR test page as Lance
initially recommended?  Does this happen in all browsers (try using
Firefox)?  You need to determine if the slow up on the server (DWR
serializing) or on the client.  In addition to Lance's recommendation I
would recommend placing some breakpoints in your script with Firebug
(you can even place some in engine.js before and after the call
returns).  To weed out DWR's serialization on the server you can grab
the source code and place a breakpoint in the marshallOutbound method on
BaseCallMarshaller.


Rizwan Ahmed wrote:

> ExtraLatencyAjaxFilter didnot solved my problem.
> Its not a simple bean converter. The return type is bean itself. That inturn
> sets 6-8 beans in that.
>
>
> Lance Java wrote:
>  
>> Can you give a bit more info on the return type of the method and the
>> converter you are using?Is it a simple bean converter or is it some form
>> of
>> hibernate converter fetching unwanted rows from your DB?
>>
>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>
>>    
>>> Hi Lance,
>>>
>>>     I will configure this and check it.
>>> I feel its not exactly clientside problem, but it is taking time to get
>>> the
>>> callback.
>>>
>>> Rizwan
>>>
>>>
>>> Lance Java wrote:
>>>      
>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>>>>     <filter
>>>>        
>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>      
>>>>     </filter>
>>>>
>>>> Have you tried executing from the dwr debug page? Is it some clientside
>>>> rendering taking the time?
>>>>
>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>
>>>>        
>>>>> Hi,
>>>>>   Am using DWR 2.0.
>>>>>   I have written a piece of code in javascript as:
>>>>>
>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>>>>>          
>>> function(objSummary){
>>>      
>>>>>        objObjectiveSummary = objSummary;
>>>>>        displayStrandSummary();
>>>>>   });
>>>>>
>>>>>   Where StrandSummary is my java class converted to dwr.
>>>>>          
>>> objParametersBD
>>>      
>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>
>>>>>   The problem is when I call "buildStrandSummary" it is taking around
>>>>> 20sec
>>>>> to return me the callback.
>>>>> When I checked the java classes, the entire logic and query building
>>>>>          
>>> is
>>>      
>>>>> beging done in around 2 sec.
>>>>> In these classes there are around 8 getters and setters classes
>>>>> invlolved.
>>>>>
>>>>> I just want to know the reason why this is taking time to return a
>>>>> callback.
>>>>>
>>>>> Thanks in Advance,
>>>>> Rizwan
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>          
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>      
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>>>          
>>>>        
>>> --
>>> View this message in context:
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>      
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I changed my application to use dwr 2.0.5. But still the same issue.
I think I dont have any delay in client side rendering (by the way am using Firefox).
I have kept a timer before the function
StrandSummary.buildStrandSummary(objParametersBD,
       function(objSummary){
            objObjectiveSummary = objSummary;
            displayStrandSummary();
});

and after "function(objSummary)". My problem is it is taking some 20sec of time to return me the callback function. Is that having more java beans is creating problem. (I feel this should not be)

Thanks,
Rizwan

David Marginian-3 wrote:
This is not normal so my guess is you are trying to return way too much
data or have recursive data.  Are you really using version of 2.0, not
2.05?  I mention this because we used to have some performance issues in
building JS objects on the client.  We were using string concatenation
instead of adding to and joining an array.  This can cause older IE
versions to bog down.  This is fixed in 2.05, but may exist in older 2.x
versions.

Have you tried calling your method from the DWR test page as Lance
initially recommended?  Does this happen in all browsers (try using
Firefox)?  You need to determine if the slow up on the server (DWR
serializing) or on the client.  In addition to Lance's recommendation I
would recommend placing some breakpoints in your script with Firebug
(you can even place some in engine.js before and after the call
returns).  To weed out DWR's serialization on the server you can grab
the source code and place a breakpoint in the marshallOutbound method on
BaseCallMarshaller.


Rizwan Ahmed wrote:
> ExtraLatencyAjaxFilter didnot solved my problem.
> Its not a simple bean converter. The return type is bean itself. That inturn
> sets 6-8 beans in that.
>
>
> Lance Java wrote:
>  
>> Can you give a bit more info on the return type of the method and the
>> converter you are using?Is it a simple bean converter or is it some form
>> of
>> hibernate converter fetching unwanted rows from your DB?
>>
>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
>>
>>    
>>> Hi Lance,
>>>
>>>     I will configure this and check it.
>>> I feel its not exactly clientside problem, but it is taking time to get
>>> the
>>> callback.
>>>
>>> Rizwan
>>>
>>>
>>> Lance Java wrote:
>>>      
>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>>>>     <filter
>>>>        
>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>      
>>>>     </filter>
>>>>
>>>> Have you tried executing from the dwr debug page? Is it some clientside
>>>> rendering taking the time?
>>>>
>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
>>>>
>>>>        
>>>>> Hi,
>>>>>   Am using DWR 2.0.
>>>>>   I have written a piece of code in javascript as:
>>>>>
>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>>>>>          
>>> function(objSummary){
>>>      
>>>>>        objObjectiveSummary = objSummary;
>>>>>        displayStrandSummary();
>>>>>   });
>>>>>
>>>>>   Where StrandSummary is my java class converted to dwr.
>>>>>          
>>> objParametersBD
>>>      
>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>
>>>>>   The problem is when I call "buildStrandSummary" it is taking around
>>>>> 20sec
>>>>> to return me the callback.
>>>>> When I checked the java classes, the entire logic and query building
>>>>>          
>>> is
>>>      
>>>>> beging done in around 2 sec.
>>>>> In these classes there are around 8 getters and setters classes
>>>>> invlolved.
>>>>>
>>>>> I just want to know the reason why this is taking time to return a
>>>>> callback.
>>>>>
>>>>> Thanks in Advance,
>>>>> Rizwan
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>          
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>      
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>>
>>>>>
>>>>>          
>>>>        
>>> --
>>> View this message in context:
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>
>>>
>>>      
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
For additional commands, e-mail: users-help@dwr.dev.java.net

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I still think that the object you are returning contains a large data set.
Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your callback function
You will need to include /dwr/util.js

2009/6/24 Rizwan Ahmed <rizwan.amd@...>

I changed my application to use dwr 2.0.5. But still the same issue.
I think I dont have any delay in client side rendering (by the way am using
Firefox).
I have kept a timer before the function
StrandSummary.buildStrandSummary(objParametersBD,
      function(objSummary){
           objObjectiveSummary = objSummary;
           displayStrandSummary();
});

and after "function(objSummary)". My problem is it is taking some 20sec of
time to return me the callback function. Is that having more java beans is
creating problem. (I feel this should not be)

Thanks,
Rizwan


David Marginian-3 wrote:
>
> This is not normal so my guess is you are trying to return way too much
> data or have recursive data.  Are you really using version of 2.0, not
> 2.05?  I mention this because we used to have some performance issues in
> building JS objects on the client.  We were using string concatenation
> instead of adding to and joining an array.  This can cause older IE
> versions to bog down.  This is fixed in 2.05, but may exist in older 2.x
> versions.
>
> Have you tried calling your method from the DWR test page as Lance
> initially recommended?  Does this happen in all browsers (try using
> Firefox)?  You need to determine if the slow up on the server (DWR
> serializing) or on the client.  In addition to Lance's recommendation I
> would recommend placing some breakpoints in your script with Firebug
> (you can even place some in engine.js before and after the call
> returns).  To weed out DWR's serialization on the server you can grab
> the source code and place a breakpoint in the marshallOutbound method on
> BaseCallMarshaller.
>
>
> Rizwan Ahmed wrote:
>> ExtraLatencyAjaxFilter didnot solved my problem.
>> Its not a simple bean converter. The return type is bean itself. That
>> inturn
>> sets 6-8 beans in that.
>>
>>
>> Lance Java wrote:
>>
>>> Can you give a bit more info on the return type of the method and the
>>> converter you are using?Is it a simple bean converter or is it some form
>>> of
>>> hibernate converter fetching unwanted rows from your DB?
>>>
>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>
>>>
>>>> Hi Lance,
>>>>
>>>>     I will configure this and check it.
>>>> I feel its not exactly clientside problem, but it is taking time to get
>>>> the
>>>> callback.
>>>>
>>>> Rizwan
>>>>
>>>>
>>>> Lance Java wrote:
>>>>
>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>>>>>     <filter
>>>>>
>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>
>>>>>     </filter>
>>>>>
>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>> clientside
>>>>> rendering taking the time?
>>>>>
>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>   Am using DWR 2.0.
>>>>>>   I have written a piece of code in javascript as:
>>>>>>
>>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>
>>>> function(objSummary){
>>>>
>>>>>>        objObjectiveSummary = objSummary;
>>>>>>        displayStrandSummary();
>>>>>>   });
>>>>>>
>>>>>>   Where StrandSummary is my java class converted to dwr.
>>>>>>
>>>> objParametersBD
>>>>
>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>
>>>>>>   The problem is when I call "buildStrandSummary" it is taking around
>>>>>> 20sec
>>>>>> to return me the callback.
>>>>>> When I checked the java classes, the entire logic and query building
>>>>>>
>>>> is
>>>>
>>>>>> beging done in around 2 sec.
>>>>>> In these classes there are around 8 getters and setters classes
>>>>>> invlolved.
>>>>>>
>>>>>> I just want to know the reason why this is taking time to return a
>>>>>> callback.
>>>>>>
>>>>>> Thanks in Advance,
>>>>>> Rizwan
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some time ago I proposed a configurable level cap. Under some circumstances DWR is just converting way too much data (for example when using the hibernate converter with the assume session attribute set to true).

On Wed, Jun 24, 2009 at 9:59 AM, Lance Java <lance.java@...> wrote:
I still think that the object you are returning contains a large data set.
Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your callback function
You will need to include /dwr/util.js

2009/6/24 Rizwan Ahmed <rizwan.amd@...>

I changed my application to use dwr 2.0.5. But still the same issue.
I think I dont have any delay in client side rendering (by the way am using
Firefox).
I have kept a timer before the function
StrandSummary.buildStrandSummary(objParametersBD,
      function(objSummary){
           objObjectiveSummary = objSummary;
           displayStrandSummary();
});

and after "function(objSummary)". My problem is it is taking some 20sec of
time to return me the callback function. Is that having more java beans is
creating problem. (I feel this should not be)

Thanks,
Rizwan


David Marginian-3 wrote:
>
> This is not normal so my guess is you are trying to return way too much
> data or have recursive data.  Are you really using version of 2.0, not
> 2.05?  I mention this because we used to have some performance issues in
> building JS objects on the client.  We were using string concatenation
> instead of adding to and joining an array.  This can cause older IE
> versions to bog down.  This is fixed in 2.05, but may exist in older 2.x
> versions.
>
> Have you tried calling your method from the DWR test page as Lance
> initially recommended?  Does this happen in all browsers (try using
> Firefox)?  You need to determine if the slow up on the server (DWR
> serializing) or on the client.  In addition to Lance's recommendation I
> would recommend placing some breakpoints in your script with Firebug
> (you can even place some in engine.js before and after the call
> returns).  To weed out DWR's serialization on the server you can grab
> the source code and place a breakpoint in the marshallOutbound method on
> BaseCallMarshaller.
>
>
> Rizwan Ahmed wrote:
>> ExtraLatencyAjaxFilter didnot solved my problem.
>> Its not a simple bean converter. The return type is bean itself. That
>> inturn
>> sets 6-8 beans in that.
>>
>>
>> Lance Java wrote:
>>
>>> Can you give a bit more info on the return type of the method and the
>>> converter you are using?Is it a simple bean converter or is it some form
>>> of
>>> hibernate converter fetching unwanted rows from your DB?
>>>
>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>
>>>
>>>> Hi Lance,
>>>>
>>>>     I will configure this and check it.
>>>> I feel its not exactly clientside problem, but it is taking time to get
>>>> the
>>>> callback.
>>>>
>>>> Rizwan
>>>>
>>>>
>>>> Lance Java wrote:
>>>>
>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>>>>>     <filter
>>>>>
>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>
>>>>>     </filter>
>>>>>
>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>> clientside
>>>>> rendering taking the time?
>>>>>
>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>   Am using DWR 2.0.
>>>>>>   I have written a piece of code in javascript as:
>>>>>>
>>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>
>>>> function(objSummary){
>>>>
>>>>>>        objObjectiveSummary = objSummary;
>>>>>>        displayStrandSummary();
>>>>>>   });
>>>>>>
>>>>>>   Where StrandSummary is my java class converted to dwr.
>>>>>>
>>>> objParametersBD
>>>>
>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>
>>>>>>   The problem is when I call "buildStrandSummary" it is taking around
>>>>>> 20sec
>>>>>> to return me the callback.
>>>>>> When I checked the java classes, the entire logic and query building
>>>>>>
>>>> is
>>>>
>>>>>> beging done in around 2 sec.
>>>>>> In these classes there are around 8 getters and setters classes
>>>>>> invlolved.
>>>>>>
>>>>>> I just want to know the reason why this is taking time to return a
>>>>>> callback.
>>>>>>
>>>>>> Thanks in Advance,
>>>>>> Rizwan
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...




Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have around 2500 records from the database and my loop may run around 15000 times

Lance Java wrote:
I still think that the object you are returning contains a large data set.
Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
callback function
You will need to include /dwr/util.js

2009/6/24 Rizwan Ahmed <rizwan.amd@gmail.com>

>
> I changed my application to use dwr 2.0.5. But still the same issue.
> I think I dont have any delay in client side rendering (by the way am using
> Firefox).
> I have kept a timer before the function
> StrandSummary.buildStrandSummary(objParametersBD,
>       function(objSummary){
>            objObjectiveSummary = objSummary;
>            displayStrandSummary();
> });
>
> and after "function(objSummary)". My problem is it is taking some 20sec of
> time to return me the callback function. Is that having more java beans is
> creating problem. (I feel this should not be)
>
> Thanks,
> Rizwan
>
>
> David Marginian-3 wrote:
> >
> > This is not normal so my guess is you are trying to return way too much
> > data or have recursive data.  Are you really using version of 2.0, not
> > 2.05?  I mention this because we used to have some performance issues in
> > building JS objects on the client.  We were using string concatenation
> > instead of adding to and joining an array.  This can cause older IE
> > versions to bog down.  This is fixed in 2.05, but may exist in older 2.x
> > versions.
> >
> > Have you tried calling your method from the DWR test page as Lance
> > initially recommended?  Does this happen in all browsers (try using
> > Firefox)?  You need to determine if the slow up on the server (DWR
> > serializing) or on the client.  In addition to Lance's recommendation I
> > would recommend placing some breakpoints in your script with Firebug
> > (you can even place some in engine.js before and after the call
> > returns).  To weed out DWR's serialization on the server you can grab
> > the source code and place a breakpoint in the marshallOutbound method on
> > BaseCallMarshaller.
> >
> >
> > Rizwan Ahmed wrote:
> >> ExtraLatencyAjaxFilter didnot solved my problem.
> >> Its not a simple bean converter. The return type is bean itself. That
> >> inturn
> >> sets 6-8 beans in that.
> >>
> >>
> >> Lance Java wrote:
> >>
> >>> Can you give a bit more info on the return type of the method and the
> >>> converter you are using?Is it a simple bean converter or is it some
> form
> >>> of
> >>> hibernate converter fetching unwanted rows from your DB?
> >>>
> >>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
> >>>
> >>>
> >>>> Hi Lance,
> >>>>
> >>>>     I will configure this and check it.
> >>>> I feel its not exactly clientside problem, but it is taking time to
> get
> >>>> the
> >>>> callback.
> >>>>
> >>>> Rizwan
> >>>>
> >>>>
> >>>> Lance Java wrote:
> >>>>
> >>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
> >>>>>     <filter
> >>>>>
> >>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
> >>>>
> >>>>>     </filter>
> >>>>>
> >>>>> Have you tried executing from the dwr debug page? Is it some
> >>>>> clientside
> >>>>> rendering taking the time?
> >>>>>
> >>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
> >>>>>
> >>>>>
> >>>>>> Hi,
> >>>>>>   Am using DWR 2.0.
> >>>>>>   I have written a piece of code in javascript as:
> >>>>>>
> >>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
> >>>>>>
> >>>> function(objSummary){
> >>>>
> >>>>>>        objObjectiveSummary = objSummary;
> >>>>>>        displayStrandSummary();
> >>>>>>   });
> >>>>>>
> >>>>>>   Where StrandSummary is my java class converted to dwr.
> >>>>>>
> >>>> objParametersBD
> >>>>
> >>>>>> and objObjectiveSummary  are global javascript objects.
> >>>>>>
> >>>>>>   The problem is when I call "buildStrandSummary" it is taking
> around
> >>>>>> 20sec
> >>>>>> to return me the callback.
> >>>>>> When I checked the java classes, the entire logic and query building
> >>>>>>
> >>>> is
> >>>>
> >>>>>> beging done in around 2 sec.
> >>>>>> In these classes there are around 8 getters and setters classes
> >>>>>> invlolved.
> >>>>>>
> >>>>>> I just want to know the reason why this is taking time to return a
> >>>>>> callback.
> >>>>>>
> >>>>>> Thanks in Advance,
> >>>>>> Rizwan
> >>>>>>
> >>>>>> --
> >>>>>> View this message in context:
> >>>>>>
> >>>>>>
> >>>>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
> >>>>
> >>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
> >>>>>>
> >>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>> --
> >>>> View this message in context:
> >>>>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
> >>>> Sent from the DWR - Users mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >>>> For additional commands, e-mail: users-help@dwr.dev.java.net
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> > For additional commands, e-mail: users-help@dwr.dev.java.net
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Strange you didn't tell us this before since we asked this multiple times.
You haven't provided any code... are you returning 2500 x 15000 records? That sounds like a lot.

A couple of suggestions:

1. Use bean converters "include" or "exclude" to restrict only the properties you need

2. Return a page of data at a time and only refresh a new page when the user clicks on a next page link.



2009/6/24 Rizwan Ahmed <rizwan.amd@...>

I have around 2500 records from the database and my loop may run around 15000
times


Lance Java wrote:
>
> I still think that the object you are returning contains a large data set.
> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
> callback function
> You will need to include /dwr/util.js
>
> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>
>>
>> I changed my application to use dwr 2.0.5. But still the same issue.
>> I think I dont have any delay in client side rendering (by the way am
>> using
>> Firefox).
>> I have kept a timer before the function
>> StrandSummary.buildStrandSummary(objParametersBD,
>>       function(objSummary){
>>            objObjectiveSummary = objSummary;
>>            displayStrandSummary();
>> });
>>
>> and after "function(objSummary)". My problem is it is taking some 20sec
>> of
>> time to return me the callback function. Is that having more java beans
>> is
>> creating problem. (I feel this should not be)
>>
>> Thanks,
>> Rizwan
>>
>>
>> David Marginian-3 wrote:
>> >
>> > This is not normal so my guess is you are trying to return way too much
>> > data or have recursive data.  Are you really using version of 2.0, not
>> > 2.05?  I mention this because we used to have some performance issues
>> in
>> > building JS objects on the client.  We were using string concatenation
>> > instead of adding to and joining an array.  This can cause older IE
>> > versions to bog down.  This is fixed in 2.05, but may exist in older
>> 2.x
>> > versions.
>> >
>> > Have you tried calling your method from the DWR test page as Lance
>> > initially recommended?  Does this happen in all browsers (try using
>> > Firefox)?  You need to determine if the slow up on the server (DWR
>> > serializing) or on the client.  In addition to Lance's recommendation I
>> > would recommend placing some breakpoints in your script with Firebug
>> > (you can even place some in engine.js before and after the call
>> > returns).  To weed out DWR's serialization on the server you can grab
>> > the source code and place a breakpoint in the marshallOutbound method
>> on
>> > BaseCallMarshaller.
>> >
>> >
>> > Rizwan Ahmed wrote:
>> >> ExtraLatencyAjaxFilter didnot solved my problem.
>> >> Its not a simple bean converter. The return type is bean itself. That
>> >> inturn
>> >> sets 6-8 beans in that.
>> >>
>> >>
>> >> Lance Java wrote:
>> >>
>> >>> Can you give a bit more info on the return type of the method and the
>> >>> converter you are using?Is it a simple bean converter or is it some
>> form
>> >>> of
>> >>> hibernate converter fetching unwanted rows from your DB?
>> >>>
>> >>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>> >>>
>> >>>
>> >>>> Hi Lance,
>> >>>>
>> >>>>     I will configure this and check it.
>> >>>> I feel its not exactly clientside problem, but it is taking time to
>> get
>> >>>> the
>> >>>> callback.
>> >>>>
>> >>>> Rizwan
>> >>>>
>> >>>>
>> >>>> Lance Java wrote:
>> >>>>
>> >>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>> >>>>>     <filter
>> >>>>>
>> >>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>> >>>>
>> >>>>>     </filter>
>> >>>>>
>> >>>>> Have you tried executing from the dwr debug page? Is it some
>> >>>>> clientside
>> >>>>> rendering taking the time?
>> >>>>>
>> >>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>> >>>>>
>> >>>>>
>> >>>>>> Hi,
>> >>>>>>   Am using DWR 2.0.
>> >>>>>>   I have written a piece of code in javascript as:
>> >>>>>>
>> >>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>> >>>>>>
>> >>>> function(objSummary){
>> >>>>
>> >>>>>>        objObjectiveSummary = objSummary;
>> >>>>>>        displayStrandSummary();
>> >>>>>>   });
>> >>>>>>
>> >>>>>>   Where StrandSummary is my java class converted to dwr.
>> >>>>>>
>> >>>> objParametersBD
>> >>>>
>> >>>>>> and objObjectiveSummary  are global javascript objects.
>> >>>>>>
>> >>>>>>   The problem is when I call "buildStrandSummary" it is taking
>> around
>> >>>>>> 20sec
>> >>>>>> to return me the callback.
>> >>>>>> When I checked the java classes, the entire logic and query
>> building
>> >>>>>>
>> >>>> is
>> >>>>
>> >>>>>> beging done in around 2 sec.
>> >>>>>> In these classes there are around 8 getters and setters classes
>> >>>>>> invlolved.
>> >>>>>>
>> >>>>>> I just want to know the reason why this is taking time to return a
>> >>>>>> callback.
>> >>>>>>
>> >>>>>> Thanks in Advance,
>> >>>>>> Rizwan
>> >>>>>>
>> >>>>>> --
>> >>>>>> View this message in context:
>> >>>>>>
>> >>>>>>
>> >>>>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>> >>>>
>> >>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> ---------------------------------------------------------------------
>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>> >>>>>> For additional commands, e-mail: users-help@...
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>> --
>> >>>> View this message in context:
>> >>>>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>> >>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >>>>
>> >>>>
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: users-unsubscribe@...
>> >>>> For additional commands, e-mail: users-help@...
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@...
>> > For additional commands, e-mail: users-help@...
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Its not 2500 * 15000, but total times the loop runs is 15000 times and in that it will put the all the 2500 records in to 6-8 bean classes.

Lance Java wrote:
Strange you didn't tell us this before since we asked this multiple times.You
haven't provided any code... are you returning 2500 x 15000 records? That
sounds like a lot.

A couple of suggestions:

1. Use bean converters "include" or "exclude" to restrict only the
properties you need
http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html

2. Return a page of data at a time and only refresh a new page when the user
clicks on a next page link.



2009/6/24 Rizwan Ahmed <rizwan.amd@gmail.com>

>
> I have around 2500 records from the database and my loop may run around
> 15000
> times
>
>
> Lance Java wrote:
> >
> > I still think that the object you are returning contains a large data
> set.
> > Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
> > callback function
> > You will need to include /dwr/util.js
> >
> > 2009/6/24 Rizwan Ahmed <rizwan.amd@gmail.com>
> >
> >>
> >> I changed my application to use dwr 2.0.5. But still the same issue.
> >> I think I dont have any delay in client side rendering (by the way am
> >> using
> >> Firefox).
> >> I have kept a timer before the function
> >> StrandSummary.buildStrandSummary(objParametersBD,
> >>       function(objSummary){
> >>            objObjectiveSummary = objSummary;
> >>            displayStrandSummary();
> >> });
> >>
> >> and after "function(objSummary)". My problem is it is taking some 20sec
> >> of
> >> time to return me the callback function. Is that having more java beans
> >> is
> >> creating problem. (I feel this should not be)
> >>
> >> Thanks,
> >> Rizwan
> >>
> >>
> >> David Marginian-3 wrote:
> >> >
> >> > This is not normal so my guess is you are trying to return way too
> much
> >> > data or have recursive data.  Are you really using version of 2.0, not
> >> > 2.05?  I mention this because we used to have some performance issues
> >> in
> >> > building JS objects on the client.  We were using string concatenation
> >> > instead of adding to and joining an array.  This can cause older IE
> >> > versions to bog down.  This is fixed in 2.05, but may exist in older
> >> 2.x
> >> > versions.
> >> >
> >> > Have you tried calling your method from the DWR test page as Lance
> >> > initially recommended?  Does this happen in all browsers (try using
> >> > Firefox)?  You need to determine if the slow up on the server (DWR
> >> > serializing) or on the client.  In addition to Lance's recommendation
> I
> >> > would recommend placing some breakpoints in your script with Firebug
> >> > (you can even place some in engine.js before and after the call
> >> > returns).  To weed out DWR's serialization on the server you can grab
> >> > the source code and place a breakpoint in the marshallOutbound method
> >> on
> >> > BaseCallMarshaller.
> >> >
> >> >
> >> > Rizwan Ahmed wrote:
> >> >> ExtraLatencyAjaxFilter didnot solved my problem.
> >> >> Its not a simple bean converter. The return type is bean itself. That
> >> >> inturn
> >> >> sets 6-8 beans in that.
> >> >>
> >> >>
> >> >> Lance Java wrote:
> >> >>
> >> >>> Can you give a bit more info on the return type of the method and
> the
> >> >>> converter you are using?Is it a simple bean converter or is it some
> >> form
> >> >>> of
> >> >>> hibernate converter fetching unwanted rows from your DB?
> >> >>>
> >> >>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
> >> >>>
> >> >>>
> >> >>>> Hi Lance,
> >> >>>>
> >> >>>>     I will configure this and check it.
> >> >>>> I feel its not exactly clientside problem, but it is taking time to
> >> get
> >> >>>> the
> >> >>>> callback.
> >> >>>>
> >> >>>> Rizwan
> >> >>>>
> >> >>>>
> >> >>>> Lance Java wrote:
> >> >>>>
> >> >>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
> configured?
> >> >>>>>     <filter
> >> >>>>>
> >> >>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
> >> >>>>
> >> >>>>>     </filter>
> >> >>>>>
> >> >>>>> Have you tried executing from the dwr debug page? Is it some
> >> >>>>> clientside
> >> >>>>> rendering taking the time?
> >> >>>>>
> >> >>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
> >> >>>>>
> >> >>>>>
> >> >>>>>> Hi,
> >> >>>>>>   Am using DWR 2.0.
> >> >>>>>>   I have written a piece of code in javascript as:
> >> >>>>>>
> >> >>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
> >> >>>>>>
> >> >>>> function(objSummary){
> >> >>>>
> >> >>>>>>        objObjectiveSummary = objSummary;
> >> >>>>>>        displayStrandSummary();
> >> >>>>>>   });
> >> >>>>>>
> >> >>>>>>   Where StrandSummary is my java class converted to dwr.
> >> >>>>>>
> >> >>>> objParametersBD
> >> >>>>
> >> >>>>>> and objObjectiveSummary  are global javascript objects.
> >> >>>>>>
> >> >>>>>>   The problem is when I call "buildStrandSummary" it is taking
> >> around
> >> >>>>>> 20sec
> >> >>>>>> to return me the callback.
> >> >>>>>> When I checked the java classes, the entire logic and query
> >> building
> >> >>>>>>
> >> >>>> is
> >> >>>>
> >> >>>>>> beging done in around 2 sec.
> >> >>>>>> In these classes there are around 8 getters and setters classes
> >> >>>>>> invlolved.
> >> >>>>>>
> >> >>>>>> I just want to know the reason why this is taking time to return
> a
> >> >>>>>> callback.
> >> >>>>>>
> >> >>>>>> Thanks in Advance,
> >> >>>>>> Rizwan
> >> >>>>>>
> >> >>>>>> --
> >> >>>>>> View this message in context:
> >> >>>>>>
> >> >>>>>>
> >> >>>>
> >>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
> >> >>>>
> >> >>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> >> ---------------------------------------------------------------------
> >> >>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >> >>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> >> >>>>>
> >> >>>> --
> >> >>>> View this message in context:
> >> >>>>
> >>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
> >> >>>> Sent from the DWR - Users mailing list archive at Nabble.com.
> >> >>>>
> >> >>>>
> >> >>>>
> >> ---------------------------------------------------------------------
> >> >>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >> >>>> For additional commands, e-mail: users-help@dwr.dev.java.net
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>
> >> >>
> >> >>
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >> > For additional commands, e-mail: users-help@dwr.dev.java.net
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
> >> Sent from the DWR - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> >> For additional commands, e-mail: users-help@dwr.dev.java.net
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Most browsers will start to slow down trying to represent 2500 records as javascript variables.
I would try to re-think your approach to try and avoid this.

Cheers,
Lance.

2009/6/24 Rizwan Ahmed <rizwan.amd@...>

Its not 2500 * 15000, but total times the loop runs is 15000 times and in
that it will put the all the 2500 records in to 6-8 bean classes.


Lance Java wrote:
>
> Strange you didn't tell us this before since we asked this multiple
> times.You
> haven't provided any code... are you returning 2500 x 15000 records? That
> sounds like a lot.
>
> A couple of suggestions:
>
> 1. Use bean converters "include" or "exclude" to restrict only the
> properties you need
> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>
> 2. Return a page of data at a time and only refresh a new page when the
> user
> clicks on a next page link.
>
>
>
> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>
>>
>> I have around 2500 records from the database and my loop may run around
>> 15000
>> times
>>
>>
>> Lance Java wrote:
>> >
>> > I still think that the object you are returning contains a large data
>> set.
>> > Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
>> > callback function
>> > You will need to include /dwr/util.js
>> >
>> > 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>> >
>> >>
>> >> I changed my application to use dwr 2.0.5. But still the same issue.
>> >> I think I dont have any delay in client side rendering (by the way am
>> >> using
>> >> Firefox).
>> >> I have kept a timer before the function
>> >> StrandSummary.buildStrandSummary(objParametersBD,
>> >>       function(objSummary){
>> >>            objObjectiveSummary = objSummary;
>> >>            displayStrandSummary();
>> >> });
>> >>
>> >> and after "function(objSummary)". My problem is it is taking some
>> 20sec
>> >> of
>> >> time to return me the callback function. Is that having more java
>> beans
>> >> is
>> >> creating problem. (I feel this should not be)
>> >>
>> >> Thanks,
>> >> Rizwan
>> >>
>> >>
>> >> David Marginian-3 wrote:
>> >> >
>> >> > This is not normal so my guess is you are trying to return way too
>> much
>> >> > data or have recursive data.  Are you really using version of 2.0,
>> not
>> >> > 2.05?  I mention this because we used to have some performance
>> issues
>> >> in
>> >> > building JS objects on the client.  We were using string
>> concatenation
>> >> > instead of adding to and joining an array.  This can cause older IE
>> >> > versions to bog down.  This is fixed in 2.05, but may exist in older
>> >> 2.x
>> >> > versions.
>> >> >
>> >> > Have you tried calling your method from the DWR test page as Lance
>> >> > initially recommended?  Does this happen in all browsers (try using
>> >> > Firefox)?  You need to determine if the slow up on the server (DWR
>> >> > serializing) or on the client.  In addition to Lance's
>> recommendation
>> I
>> >> > would recommend placing some breakpoints in your script with Firebug
>> >> > (you can even place some in engine.js before and after the call
>> >> > returns).  To weed out DWR's serialization on the server you can
>> grab
>> >> > the source code and place a breakpoint in the marshallOutbound
>> method
>> >> on
>> >> > BaseCallMarshaller.
>> >> >
>> >> >
>> >> > Rizwan Ahmed wrote:
>> >> >> ExtraLatencyAjaxFilter didnot solved my problem.
>> >> >> Its not a simple bean converter. The return type is bean itself.
>> That
>> >> >> inturn
>> >> >> sets 6-8 beans in that.
>> >> >>
>> >> >>
>> >> >> Lance Java wrote:
>> >> >>
>> >> >>> Can you give a bit more info on the return type of the method and
>> the
>> >> >>> converter you are using?Is it a simple bean converter or is it
>> some
>> >> form
>> >> >>> of
>> >> >>> hibernate converter fetching unwanted rows from your DB?
>> >> >>>
>> >> >>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>> >> >>>
>> >> >>>
>> >> >>>> Hi Lance,
>> >> >>>>
>> >> >>>>     I will configure this and check it.
>> >> >>>> I feel its not exactly clientside problem, but it is taking time
>> to
>> >> get
>> >> >>>> the
>> >> >>>> callback.
>> >> >>>>
>> >> >>>> Rizwan
>> >> >>>>
>> >> >>>>
>> >> >>>> Lance Java wrote:
>> >> >>>>
>> >> >>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>> configured?
>> >> >>>>>     <filter
>> >> >>>>>
>> >> >>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>> >> >>>>
>> >> >>>>>     </filter>
>> >> >>>>>
>> >> >>>>> Have you tried executing from the dwr debug page? Is it some
>> >> >>>>> clientside
>> >> >>>>> rendering taking the time?
>> >> >>>>>
>> >> >>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>> Hi,
>> >> >>>>>>   Am using DWR 2.0.
>> >> >>>>>>   I have written a piece of code in javascript as:
>> >> >>>>>>
>> >> >>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>> >> >>>>>>
>> >> >>>> function(objSummary){
>> >> >>>>
>> >> >>>>>>        objObjectiveSummary = objSummary;
>> >> >>>>>>        displayStrandSummary();
>> >> >>>>>>   });
>> >> >>>>>>
>> >> >>>>>>   Where StrandSummary is my java class converted to dwr.
>> >> >>>>>>
>> >> >>>> objParametersBD
>> >> >>>>
>> >> >>>>>> and objObjectiveSummary  are global javascript objects.
>> >> >>>>>>
>> >> >>>>>>   The problem is when I call "buildStrandSummary" it is taking
>> >> around
>> >> >>>>>> 20sec
>> >> >>>>>> to return me the callback.
>> >> >>>>>> When I checked the java classes, the entire logic and query
>> >> building
>> >> >>>>>>
>> >> >>>> is
>> >> >>>>
>> >> >>>>>> beging done in around 2 sec.
>> >> >>>>>> In these classes there are around 8 getters and setters classes
>> >> >>>>>> invlolved.
>> >> >>>>>>
>> >> >>>>>> I just want to know the reason why this is taking time to
>> return
>> a
>> >> >>>>>> callback.
>> >> >>>>>>
>> >> >>>>>> Thanks in Advance,
>> >> >>>>>> Rizwan
>> >> >>>>>>
>> >> >>>>>> --
>> >> >>>>>> View this message in context:
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>
>> >>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>> >> >>>>
>> >> >>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>>
>> >> ---------------------------------------------------------------------
>> >> >>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>> >> >>>>>> For additional commands, e-mail: users-help@...
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>
>> >> >>>> --
>> >> >>>> View this message in context:
>> >> >>>>
>> >>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>> >> >>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> ---------------------------------------------------------------------
>> >> >>>> To unsubscribe, e-mail: users-unsubscribe@...
>> >> >>>> For additional commands, e-mail: users-help@...
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@...
>> >> > For additional commands, e-mail: users-help@...
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>> >> Sent from the DWR - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@...
>> >> For additional commands, e-mail: users-help@...
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24183175.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You have a loop running 15000 times to populate 2500 records?  That
sounds like a pretty poor design to me.  If you want to know for sure
where the problem is I suggest following my previous advice:

"You need to determine if the slow up on the server (DWR serializing) or
on the client.  In addition to Lance's recommendation I would recommend
placing some breakpoints in your script with Firebug (you can even place
some in engine.js before and after the call returns).  To weed out DWR's
serialization on the server you can grab the source code and place a
breakpoint in the marshallOutbound method on BaseCallMarshaller."

By placing a breakpoint at the start and end of marshallOutbound you
will be able to see how long it takes DWR to convert your data.

Rizwan Ahmed wrote:

> Its not 2500 * 15000, but total times the loop runs is 15000 times and in
> that it will put the all the 2500 records in to 6-8 bean classes.
>
>
> Lance Java wrote:
>  
>> Strange you didn't tell us this before since we asked this multiple
>> times.You
>> haven't provided any code... are you returning 2500 x 15000 records? That
>> sounds like a lot.
>>
>> A couple of suggestions:
>>
>> 1. Use bean converters "include" or "exclude" to restrict only the
>> properties you need
>> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>>
>> 2. Return a page of data at a time and only refresh a new page when the
>> user
>> clicks on a next page link.
>>
>>
>>
>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>
>>    
>>> I have around 2500 records from the database and my loop may run around
>>> 15000
>>> times
>>>
>>>
>>> Lance Java wrote:
>>>      
>>>> I still think that the object you are returning contains a large data
>>>>        
>>> set.
>>>      
>>>> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
>>>> callback function
>>>> You will need to include /dwr/util.js
>>>>
>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>
>>>>        
>>>>> I changed my application to use dwr 2.0.5. But still the same issue.
>>>>> I think I dont have any delay in client side rendering (by the way am
>>>>> using
>>>>> Firefox).
>>>>> I have kept a timer before the function
>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>       function(objSummary){
>>>>>            objObjectiveSummary = objSummary;
>>>>>            displayStrandSummary();
>>>>> });
>>>>>
>>>>> and after "function(objSummary)". My problem is it is taking some
>>>>>          
>>> 20sec
>>>      
>>>>> of
>>>>> time to return me the callback function. Is that having more java
>>>>>          
>>> beans
>>>      
>>>>> is
>>>>> creating problem. (I feel this should not be)
>>>>>
>>>>> Thanks,
>>>>> Rizwan
>>>>>
>>>>>
>>>>> David Marginian-3 wrote:
>>>>>          
>>>>>> This is not normal so my guess is you are trying to return way too
>>>>>>            
>>> much
>>>      
>>>>>> data or have recursive data.  Are you really using version of 2.0,
>>>>>>            
>>> not
>>>      
>>>>>> 2.05?  I mention this because we used to have some performance
>>>>>>            
>>> issues
>>>      
>>>>> in
>>>>>          
>>>>>> building JS objects on the client.  We were using string
>>>>>>            
>>> concatenation
>>>      
>>>>>> instead of adding to and joining an array.  This can cause older IE
>>>>>> versions to bog down.  This is fixed in 2.05, but may exist in older
>>>>>>            
>>>>> 2.x
>>>>>          
>>>>>> versions.
>>>>>>
>>>>>> Have you tried calling your method from the DWR test page as Lance
>>>>>> initially recommended?  Does this happen in all browsers (try using
>>>>>> Firefox)?  You need to determine if the slow up on the server (DWR
>>>>>> serializing) or on the client.  In addition to Lance's
>>>>>>            
>>> recommendation
>>> I
>>>      
>>>>>> would recommend placing some breakpoints in your script with Firebug
>>>>>> (you can even place some in engine.js before and after the call
>>>>>> returns).  To weed out DWR's serialization on the server you can
>>>>>>            
>>> grab
>>>      
>>>>>> the source code and place a breakpoint in the marshallOutbound
>>>>>>            
>>> method
>>>      
>>>>> on
>>>>>          
>>>>>> BaseCallMarshaller.
>>>>>>
>>>>>>
>>>>>> Rizwan Ahmed wrote:
>>>>>>            
>>>>>>> ExtraLatencyAjaxFilter didnot solved my problem.
>>>>>>> Its not a simple bean converter. The return type is bean itself.
>>>>>>>              
>>> That
>>>      
>>>>>>> inturn
>>>>>>> sets 6-8 beans in that.
>>>>>>>
>>>>>>>
>>>>>>> Lance Java wrote:
>>>>>>>
>>>>>>>              
>>>>>>>> Can you give a bit more info on the return type of the method and
>>>>>>>>                
>>> the
>>>      
>>>>>>>> converter you are using?Is it a simple bean converter or is it
>>>>>>>>                
>>> some
>>>      
>>>>> form
>>>>>          
>>>>>>>> of
>>>>>>>> hibernate converter fetching unwanted rows from your DB?
>>>>>>>>
>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>> Hi Lance,
>>>>>>>>>
>>>>>>>>>     I will configure this and check it.
>>>>>>>>> I feel its not exactly clientside problem, but it is taking time
>>>>>>>>>                  
>>> to
>>>      
>>>>> get
>>>>>          
>>>>>>>>> the
>>>>>>>>> callback.
>>>>>>>>>
>>>>>>>>> Rizwan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Lance Java wrote:
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>>>>>>>>>>                    
>>> configured?
>>>      
>>>>>>>>>>     <filter
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>>     </filter>
>>>>>>>>>>
>>>>>>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>>>>>>> clientside
>>>>>>>>>> rendering taking the time?
>>>>>>>>>>
>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>> Hi,
>>>>>>>>>>>   Am using DWR 2.0.
>>>>>>>>>>>   I have written a piece of code in javascript as:
>>>>>>>>>>>
>>>>>>>>>>>   StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>> function(objSummary){
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>>>        objObjectiveSummary = objSummary;
>>>>>>>>>>>        displayStrandSummary();
>>>>>>>>>>>   });
>>>>>>>>>>>
>>>>>>>>>>>   Where StrandSummary is my java class converted to dwr.
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>> objParametersBD
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>>>>>>
>>>>>>>>>>>   The problem is when I call "buildStrandSummary" it is taking
>>>>>>>>>>>                      
>>>>> around
>>>>>          
>>>>>>>>>>> 20sec
>>>>>>>>>>> to return me the callback.
>>>>>>>>>>> When I checked the java classes, the entire logic and query
>>>>>>>>>>>                      
>>>>> building
>>>>>          
>>>>>>>>> is
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>>> beging done in around 2 sec.
>>>>>>>>>>> In these classes there are around 8 getters and setters classes
>>>>>>>>>>> invlolved.
>>>>>>>>>>>
>>>>>>>>>>> I just want to know the reason why this is taking time to
>>>>>>>>>>>                      
>>> return
>>> a
>>>      
>>>>>>>>>>> callback.
>>>>>>>>>>>
>>>>>>>>>>> Thanks in Advance,
>>>>>>>>>>> Rizwan
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>      
>>>>>>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>> ---------------------------------------------------------------------
>>>>>          
>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>>
>>>>>>>>>                  
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>      
>>>>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>> ---------------------------------------------------------------------
>>>>>          
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>              
>>>>>>
>>>>>>            
>>> ---------------------------------------------------------------------
>>>      
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>          
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>>>      
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>>>          
>>>>        
>>> --
>>> View this message in context:
>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>      
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: funtion taking time to return Callback

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> You have a loop running 15000 times to populate 2500 records?  That sounds like a pretty poor design to me
Me too... I hope you are only running 6-8 database queries (1 for each bean type). If you are anywhere near 50 queries or more you need to re-think.

2009/6/24 David Marginian <david@...>
You have a loop running 15000 times to populate 2500 records?  That sounds like a pretty poor design to me.  If you want to know for sure where the problem is I suggest following my previous advice:


"You need to determine if the slow up on the server (DWR serializing) or on the client.  In addition to Lance's recommendation I would recommend placing some breakpoints in your script with Firebug (you can even place some in engine.js before and after the call returns).  To weed out DWR's serialization on the server you can grab the source code and place a breakpoint in the marshallOutbound method on BaseCallMarshaller."

By placing a breakpoint at the start and end of marshallOutbound you will be able to see how long it takes DWR to convert your data.
Rizwan Ahmed wrote:
Its not 2500 * 15000, but total times the loop runs is 15000 times and in
that it will put the all the 2500 records in to 6-8 bean classes.


Lance Java wrote:
 
Strange you didn't tell us this before since we asked this multiple
times.You
haven't provided any code... are you returning 2500 x 15000 records? That
sounds like a lot.

A couple of suggestions:

1. Use bean converters "include" or "exclude" to restrict only the
properties you need
http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html

2. Return a page of data at a time and only refresh a new page when the
user
clicks on a next page link.



2009/6/24 Rizwan Ahmed <rizwan.amd@...>

   
I have around 2500 records from the database and my loop may run around
15000
times


Lance Java wrote:
     
I still think that the object you are returning contains a large data
       
set.
     
Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
callback function
You will need to include /dwr/util.js

2009/6/24 Rizwan Ahmed <rizwan.amd@...>

       
I changed my application to use dwr 2.0.5. But still the same issue.
I think I dont have any delay in client side rendering (by the way am
using
Firefox).
I have kept a timer before the function
StrandSummary.buildStrandSummary(objParametersBD,
     function(objSummary){
          objObjectiveSummary = objSummary;
          displayStrandSummary();
});

and after "function(objSummary)". My problem is it is taking some
         
20sec
     
of
time to return me the callback function. Is that having more java
         
beans
     
is
creating problem. (I feel this should not be)

Thanks,
Rizwan


David Marginian-3 wrote:
         
This is not normal so my guess is you are trying to return way too
           
much
     
data or have recursive data.  Are you really using version of 2.0,
           
not
     
2.05?  I mention this because we used to have some performance
           
issues
     
in
         
building JS objects on the client.  We were using string
           
concatenation
     
instead of adding to and joining an array.  This can cause older IE
versions to bog down.  This is fixed in 2.05, but may exist in older
           
2.x
         
versions.

Have you tried calling your method from the DWR test page as Lance
initially recommended?  Does this happen in all browsers (try using
Firefox)?  You need to determine if the slow up on the server (DWR
serializing) or on the client.  In addition to Lance's
           
recommendation
I
     
would recommend placing some breakpoints in your script with Firebug
(you can even place some in engine.js before and after the call
returns).  To weed out DWR's serialization on the server you can
           
grab
     
the source code and place a breakpoint in the marshallOutbound
           
method
     
on
         
BaseCallMarshaller.


Rizwan Ahmed wrote:
           
ExtraLatencyAjaxFilter didnot solved my problem.
Its not a simple bean converter. The return type is bean itself.
             
That
     
inturn
sets 6-8 beans in that.


Lance Java wrote:

             
Can you give a bit more info on the return type of the method and
               
the
     
converter you are using?Is it a simple bean converter or is it
               
some
     
form
         
of
hibernate converter fetching unwanted rows from your DB?

2009/6/23 Rizwan Ahmed <rizwan.amd@...>


               
Hi Lance,

   I will configure this and check it.
I feel its not exactly clientside problem, but it is taking time
                 
to
     
get
         
the
callback.

Rizwan


Lance Java wrote:

                 
I don't suppose you've got joe's ExtraLatencyAjaxFilter
                   
configured?
     
   <filter

                   
class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">

                 
   </filter>

Have you tried executing from the dwr debug page? Is it some
clientside
rendering taking the time?

2009/6/23 Rizwan Ahmed <rizwan.amd@...>


                   
Hi,
 Am using DWR 2.0.
 I have written a piece of code in javascript as:

 StrandSummary.buildStrandSummary(objParametersBD,

                     
function(objSummary){

                 
      objObjectiveSummary = objSummary;
      displayStrandSummary();
 });

 Where StrandSummary is my java class converted to dwr.

                     
objParametersBD

                 
and objObjectiveSummary  are global javascript objects.

 The problem is when I call "buildStrandSummary" it is taking
                     
around
         
20sec
to return me the callback.
When I checked the java classes, the entire logic and query
                     
building
         
is

                 
beging done in around 2 sec.
In these classes there are around 8 getters and setters classes
invlolved.

I just want to know the reason why this is taking time to
                     
return
a
     
callback.

Thanks in Advance,
Rizwan

--
View this message in context:


                     
http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
     
Sent from the DWR - Users mailing list archive at Nabble.com.



                     
---------------------------------------------------------------------
         
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



                     
--
View this message in context:

                 
http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
     
Sent from the DWR - Users mailing list archive at Nabble.com.



                 
---------------------------------------------------------------------
         
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



                 
             

           
---------------------------------------------------------------------
     
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



           
--
View this message in context:

         
http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
     
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


         
       
--
View this message in context:
http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


     
   

 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: funtion taking time to return Callback

by Rizwan Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am running only 2 quries and my quries and business logic takes lessthan 2 seconds to process.
Am not very sure how to do the changes in engine.js

Lance Java wrote:
> You have a loop running 15000 times to populate 2500 records?  That sounds
like a pretty poor design to meMe too... I hope you are only running 6-8
database queries (1 for each bean type). If you are anywhere near 50 queries
or more you need to re-think.

2009/6/24 David Marginian <david@butterdev.com>

> You have a loop running 15000 times to populate 2500 records?  That sounds
> like a pretty poor design to me.  If you want to know for sure where the
> problem is I suggest following my previous advice:
>
> "You need to determine if the slow up on the server (DWR serializing) or on
> the client.  In addition to Lance's recommendation I would recommend placing
> some breakpoints in your script with Firebug (you can even place some in
> engine.js before and after the call returns).  To weed out DWR's
> serialization on the server you can grab the source code and place a
> breakpoint in the marshallOutbound method on BaseCallMarshaller."
>
> By placing a breakpoint at the start and end of marshallOutbound you will
> be able to see how long it takes DWR to convert your data.
> Rizwan Ahmed wrote:
>
>> Its not 2500 * 15000, but total times the loop runs is 15000 times and in
>> that it will put the all the 2500 records in to 6-8 bean classes.
>>
>>
>> Lance Java wrote:
>>
>>
>>> Strange you didn't tell us this before since we asked this multiple
>>> times.You
>>> haven't provided any code... are you returning 2500 x 15000 records? That
>>> sounds like a lot.
>>>
>>> A couple of suggestions:
>>>
>>> 1. Use bean converters "include" or "exclude" to restrict only the
>>> properties you need
>>> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>>>
>>> 2. Return a page of data at a time and only refresh a new page when the
>>> user
>>> clicks on a next page link.
>>>
>>>
>>>
>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@gmail.com>
>>>
>>>
>>>
>>>> I have around 2500 records from the database and my loop may run around
>>>> 15000
>>>> times
>>>>
>>>>
>>>> Lance Java wrote:
>>>>
>>>>
>>>>> I still think that the object you are returning contains a large data
>>>>>
>>>>>
>>>> set.
>>>>
>>>>
>>>>> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside your
>>>>> callback function
>>>>> You will need to include /dwr/util.js
>>>>>
>>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@gmail.com>
>>>>>
>>>>>
>>>>>
>>>>>> I changed my application to use dwr 2.0.5. But still the same issue.
>>>>>> I think I dont have any delay in client side rendering (by the way am
>>>>>> using
>>>>>> Firefox).
>>>>>> I have kept a timer before the function
>>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>      function(objSummary){
>>>>>>           objObjectiveSummary = objSummary;
>>>>>>           displayStrandSummary();
>>>>>> });
>>>>>>
>>>>>> and after "function(objSummary)". My problem is it is taking some
>>>>>>
>>>>>>
>>>>> 20sec
>>>>
>>>>
>>>>> of
>>>>>> time to return me the callback function. Is that having more java
>>>>>>
>>>>>>
>>>>> beans
>>>>
>>>>
>>>>> is
>>>>>> creating problem. (I feel this should not be)
>>>>>>
>>>>>> Thanks,
>>>>>> Rizwan
>>>>>>
>>>>>>
>>>>>> David Marginian-3 wrote:
>>>>>>
>>>>>>
>>>>>>> This is not normal so my guess is you are trying to return way too
>>>>>>>
>>>>>>>
>>>>>> much
>>>>
>>>>
>>>>> data or have recursive data.  Are you really using version of 2.0,
>>>>>>>
>>>>>>>
>>>>>> not
>>>>
>>>>
>>>>> 2.05?  I mention this because we used to have some performance
>>>>>>>
>>>>>>>
>>>>>> issues
>>>>
>>>>
>>>>> in
>>>>>>
>>>>>>
>>>>>>> building JS objects on the client.  We were using string
>>>>>>>
>>>>>>>
>>>>>> concatenation
>>>>
>>>>
>>>>> instead of adding to and joining an array.  This can cause older IE
>>>>>>> versions to bog down.  This is fixed in 2.05, but may exist in older
>>>>>>>
>>>>>>>
>>>>>> 2.x
>>>>>>
>>>>>>
>>>>>>> versions.
>>>>>>>
>>>>>>> Have you tried calling your method from the DWR test page as Lance
>>>>>>> initially recommended?  Does this happen in all browsers (try using
>>>>>>> Firefox)?  You need to determine if the slow up on the server (DWR
>>>>>>> serializing) or on the client.  In addition to Lance's
>>>>>>>
>>>>>>>
>>>>>> recommendation
>>>> I
>>>>
>>>>
>>>>> would recommend placing some breakpoints in your script with Firebug
>>>>>>> (you can even place some in engine.js before and after the call
>>>>>>> returns).  To weed out DWR's serialization on the server you can
>>>>>>>
>>>>>>>
>>>>>> grab
>>>>
>>>>
>>>>> the source code and place a breakpoint in the marshallOutbound
>>>>>>>
>>>>>>>
>>>>>> method
>>>>
>>>>
>>>>> on
>>>>>>
>>>>>>
>>>>>>> BaseCallMarshaller.
>>>>>>>
>>>>>>>
>>>>>>> Rizwan Ahmed wrote:
>>>>>>>
>>>>>>>
>>>>>>>> ExtraLatencyAjaxFilter didnot solved my problem.
>>>>>>>> Its not a simple bean converter. The return type is bean itself.
>>>>>>>>
>>>>>>>>
>>>>>>> That
>>>>
>>>>
>>>>> inturn
>>>>>>>> sets 6-8 beans in that.
>>>>>>>>
>>>>>>>>
>>>>>>>> Lance Java wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Can you give a bit more info on the return type of the method and
>>>>>>>>>
>>>>>>>>>
>>>>>>>> the
>>>>
>>>>
>>>>> converter you are using?Is it a simple bean converter or is it
>>>>>>>>>
>>>>>>>>>
>>>>>>>> some
>>>>
>>>>
>>>>> form
>>>>>>
>>>>>>
>>>>>>> of
>>>>>>>>> hibernate converter fetching unwanted rows from your DB?
>>>>>>>>>
>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Hi Lance,
>>>>>>>>>>
>>>>>>>>>>    I will configure this and check it.
>>>>>>>>>> I feel its not exactly clientside problem, but it is taking time
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> to
>>>>
>>>>
>>>>> get
>>>>>>
>>>>>>
>>>>>>> the
>>>>>>>>>> callback.
>>>>>>>>>>
>>>>>>>>>> Rizwan
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Lance Java wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> configured?
>>>>
>>>>
>>>>>    <filter
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>    </filter>
>>>>>>>>>>>
>>>>>>>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>>>>>>>> clientside
>>>>>>>>>>> rendering taking the time?
>>>>>>>>>>>
>>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@gmail.com>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>  Am using DWR 2.0.
>>>>>>>>>>>>  I have written a piece of code in javascript as:
>>>>>>>>>>>>
>>>>>>>>>>>>  StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> function(objSummary){
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>       objObjectiveSummary = objSummary;
>>>>>>>>>>>>       displayStrandSummary();
>>>>>>>>>>>>  });
>>>>>>>>>>>>
>>>>>>>>>>>>  Where StrandSummary is my java class converted to dwr.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> objParametersBD
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>>>>>>>
>>>>>>>>>>>>  The problem is when I call "buildStrandSummary" it is taking
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> around
>>>>>>
>>>>>>
>>>>>>> 20sec
>>>>>>>>>>>> to return me the callback.
>>>>>>>>>>>> When I checked the java classes, the entire logic and query
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> building
>>>>>>
>>>>>>
>>>>>>> is
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> beging done in around 2 sec.
>>>>>>>>>>>> In these classes there are around 8 getters and setters classes
>>>>>>>>>>>> invlolved.
>>>>>>>>>>>>
>>>>>>>>>>>> I just want to know the reason why this is taking time to
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> return
>>>> a
>>>>
>>>>
>>>>> callback.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks in Advance,
>>>>>>>>>>>> Rizwan
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> View this message in context:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>
>>>>
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>>>>>>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>>
>>>>
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>>>>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>
>>>>
>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>>>>
>>>>
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: funtion taking time to return Callback

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That is part of what I told you to do, the other part is downloading the dwr source and placing breakpoints.  The bottom-line is that you are either returning too much data or attempting to serialize to many fields.  Why don't you send the relevant Java code (beans), the remote method you are calling, and your dwr.xml configuration?
On Wed, Jun 24, 2009 at 7:59 AM, Rizwan Ahmed <rizwan.amd@...> wrote:

I am running only 2 quries and my quries and business logic takes lessthan 2
seconds to process.
Am not very sure how to do the changes in engine.js


Lance Java wrote:
>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
> like a pretty poor design to meMe too... I hope you are only running 6-8
> database queries (1 for each bean type). If you are anywhere near 50
> queries
> or more you need to re-think.
>
> 2009/6/24 David Marginian <david@...>
>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
>> like a pretty poor design to me.  If you want to know for sure where the
>> problem is I suggest following my previous advice:
>>
>> "You need to determine if the slow up on the server (DWR serializing) or
>> on
>> the client.  In addition to Lance's recommendation I would recommend
>> placing
>> some breakpoints in your script with Firebug (you can even place some in
>> engine.js before and after the call returns).  To weed out DWR's
>> serialization on the server you can grab the source code and place a
>> breakpoint in the marshallOutbound method on BaseCallMarshaller."
>>
>> By placing a breakpoint at the start and end of marshallOutbound you will
>> be able to see how long it takes DWR to convert your data.
>> Rizwan Ahmed wrote:
>>
>>> Its not 2500 * 15000, but total times the loop runs is 15000 times and
>>> in
>>> that it will put the all the 2500 records in to 6-8 bean classes.
>>>
>>>
>>> Lance Java wrote:
>>>
>>>
>>>> Strange you didn't tell us this before since we asked this multiple
>>>> times.You
>>>> haven't provided any code... are you returning 2500 x 15000 records?
>>>> That
>>>> sounds like a lot.
>>>>
>>>> A couple of suggestions:
>>>>
>>>> 1. Use bean converters "include" or "exclude" to restrict only the
>>>> properties you need
>>>> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>>>>
>>>> 2. Return a page of data at a time and only refresh a new page when the
>>>> user
>>>> clicks on a next page link.
>>>>
>>>>
>>>>
>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>
>>>>
>>>>
>>>>> I have around 2500 records from the database and my loop may run
>>>>> around
>>>>> 15000
>>>>> times
>>>>>
>>>>>
>>>>> Lance Java wrote:
>>>>>
>>>>>
>>>>>> I still think that the object you are returning contains a large data
>>>>>>
>>>>>>
>>>>> set.
>>>>>
>>>>>
>>>>>> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside
>>>>>> your
>>>>>> callback function
>>>>>> You will need to include /dwr/util.js
>>>>>>
>>>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I changed my application to use dwr 2.0.5. But still the same issue.
>>>>>>> I think I dont have any delay in client side rendering (by the way
>>>>>>> am
>>>>>>> using
>>>>>>> Firefox).
>>>>>>> I have kept a timer before the function
>>>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>      function(objSummary){
>>>>>>>           objObjectiveSummary = objSummary;
>>>>>>>           displayStrandSummary();
>>>>>>> });
>>>>>>>
>>>>>>> and after "function(objSummary)". My problem is it is taking some
>>>>>>>
>>>>>>>
>>>>>> 20sec
>>>>>
>>>>>
>>>>>> of
>>>>>>> time to return me the callback function. Is that having more java
>>>>>>>
>>>>>>>
>>>>>> beans
>>>>>
>>>>>
>>>>>> is
>>>>>>> creating problem. (I feel this should not be)
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Rizwan
>>>>>>>
>>>>>>>
>>>>>>> David Marginian-3 wrote:
>>>>>>>
>>>>>>>
>>>>>>>> This is not normal so my guess is you are trying to return way too
>>>>>>>>
>>>>>>>>
>>>>>>> much
>>>>>
>>>>>
>>>>>> data or have recursive data.  Are you really using version of 2.0,
>>>>>>>>
>>>>>>>>
>>>>>>> not
>>>>>
>>>>>
>>>>>> 2.05?  I mention this because we used to have some performance
>>>>>>>>
>>>>>>>>
>>>>>>> issues
>>>>>
>>>>>
>>>>>> in
>>>>>>>
>>>>>>>
>>>>>>>> building JS objects on the client.  We were using string
>>>>>>>>
>>>>>>>>
>>>>>>> concatenation
>>>>>
>>>>>
>>>>>> instead of adding to and joining an array.  This can cause older IE
>>>>>>>> versions to bog down.  This is fixed in 2.05, but may exist in
>>>>>>>> older
>>>>>>>>
>>>>>>>>
>>>>>>> 2.x
>>>>>>>
>>>>>>>
>>>>>>>> versions.
>>>>>>>>
>>>>>>>> Have you tried calling your method from the DWR test page as Lance
>>>>>>>> initially recommended?  Does this happen in all browsers (try using
>>>>>>>> Firefox)?  You need to determine if the slow up on the server (DWR
>>>>>>>> serializing) or on the client.  In addition to Lance's
>>>>>>>>
>>>>>>>>
>>>>>>> recommendation
>>>>> I
>>>>>
>>>>>
>>>>>> would recommend placing some breakpoints in your script with Firebug
>>>>>>>> (you can even place some in engine.js before and after the call
>>>>>>>> returns).  To weed out DWR's serialization on the server you can
>>>>>>>>
>>>>>>>>
>>>>>>> grab
>>>>>
>>>>>
>>>>>> the source code and place a breakpoint in the marshallOutbound
>>>>>>>>
>>>>>>>>
>>>>>>> method
>>>>>
>>>>>
>>>>>> on
>>>>>>>
>>>>>>>
>>>>>>>> BaseCallMarshaller.
>>>>>>>>
>>>>>>>>
>>>>>>>> Rizwan Ahmed wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> ExtraLatencyAjaxFilter didnot solved my problem.
>>>>>>>>> Its not a simple bean converter. The return type is bean itself.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> That
>>>>>
>>>>>
>>>>>> inturn
>>>>>>>>> sets 6-8 beans in that.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Lance Java wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Can you give a bit more info on the return type of the method and
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> the
>>>>>
>>>>>
>>>>>> converter you are using?Is it a simple bean converter or is it
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> some
>>>>>
>>>>>
>>>>>> form
>>>>>>>
>>>>>>>
>>>>>>>> of
>>>>>>>>>> hibernate converter fetching unwanted rows from your DB?
>>>>>>>>>>
>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi Lance,
>>>>>>>>>>>
>>>>>>>>>>>    I will configure this and check it.
>>>>>>>>>>> I feel its not exactly clientside problem, but it is taking time
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> to
>>>>>
>>>>>
>>>>>> get
>>>>>>>
>>>>>>>
>>>>>>>> the
>>>>>>>>>>> callback.
>>>>>>>>>>>
>>>>>>>>>>> Rizwan
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Lance Java wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> configured?
>>>>>
>>>>>
>>>>>>    <filter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>    </filter>
>>>>>>>>>>>>
>>>>>>>>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>>>>>>>>> clientside
>>>>>>>>>>>> rendering taking the time?
>>>>>>>>>>>>
>>>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>  Am using DWR 2.0.
>>>>>>>>>>>>>  I have written a piece of code in javascript as:
>>>>>>>>>>>>>
>>>>>>>>>>>>>  StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> function(objSummary){
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>       objObjectiveSummary = objSummary;
>>>>>>>>>>>>>       displayStrandSummary();
>>>>>>>>>>>>>  });
>>>>>>>>>>>>>
>>>>>>>>>>>>>  Where StrandSummary is my java class converted to dwr.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> objParametersBD
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>>>>>>>>
>>>>>>>>>>>>>  The problem is when I call "buildStrandSummary" it is taking
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> around
>>>>>>>
>>>>>>>
>>>>>>>> 20sec
>>>>>>>>>>>>> to return me the callback.
>>>>>>>>>>>>> When I checked the java classes, the entire logic and query
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> building
>>>>>>>
>>>>>>>
>>>>>>>> is
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> beging done in around 2 sec.
>>>>>>>>>>>>> In these classes there are around 8 getters and setters
>>>>>>>>>>>>> classes
>>>>>>>>>>>>> invlolved.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I just want to know the reason why this is taking time to
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> return
>>>>> a
>>>>>
>>>>>
>>>>>> callback.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks in Advance,
>>>>>>>>>>>>> Rizwan
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> View this message in context:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>

>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24185324.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



RE: funtion taking time to return Callback

by RJones1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Google Chrome has a little better “net” tab than firebug as far as making it clear what is wait time and what is download time. Using Chrome wouldn’t help you determine if the problem is in the serialization time but might help with just looking at the sheer size of the data.

 

Randy

 

From: dmarginian@... [mailto:dmarginian@...] On Behalf Of David Marginian
Sent: Wednesday, June 24, 2009 10:07 AM
To: users@...
Subject: Re: [dwr-user] funtion taking time to return Callback

 

That is part of what I told you to do, the other part is downloading the dwr source and placing breakpoints.  The bottom-line is that you are either returning too much data or attempting to serialize to many fields.  Why don't you send the relevant Java code (beans), the remote method you are calling, and your dwr.xml configuration?

On Wed, Jun 24, 2009 at 7:59 AM, Rizwan Ahmed <rizwan.amd@...> wrote:


I am running only 2 quries and my quries and business logic takes lessthan 2
seconds to process.
Am not very sure how to do the changes in engine.js


Lance Java wrote:
>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
> like a pretty poor design to meMe too... I hope you are only running 6-8
> database queries (1 for each bean type). If you are anywhere near 50
> queries
> or more you need to re-think.
>
> 2009/6/24 David Marginian <david@...>
>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
>> like a pretty poor design to me.  If you want to know for sure where the
>> problem is I suggest following my previous advice:
>>
>> "You need to determine if the slow up on the server (DWR serializing) or
>> on
>> the client.  In addition to Lance's recommendation I would recommend
>> placing
>> some breakpoints in your script with Firebug (you can even place some in
>> engine.js before and after the call returns).  To weed out DWR's
>> serialization on the server you can grab the source code and place a
>> breakpoint in the marshallOutbound method on BaseCallMarshaller."
>>
>> By placing a breakpoint at the start and end of marshallOutbound you will
>> be able to see how long it takes DWR to convert your data.
>> Rizwan Ahmed wrote:
>>
>>> Its not 2500 * 15000, but total times the loop runs is 15000 times and
>>> in
>>> that it will put the all the 2500 records in to 6-8 bean classes.
>>>
>>>
>>> Lance Java wrote:
>>>
>>>
>>>> Strange you didn't tell us this before since we asked this multiple
>>>> times.You
>>>> haven't provided any code... are you returning 2500 x 15000 records?
>>>> That
>>>> sounds like a lot.
>>>>
>>>> A couple of suggestions:
>>>>
>>>> 1. Use bean converters "include" or "exclude" to restrict only the
>>>> properties you need
>>>> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>>>>
>>>> 2. Return a page of data at a time and only refresh a new page when the
>>>> user
>>>> clicks on a next page link.
>>>>
>>>>
>>>>
>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>
>>>>
>>>>
>>>>> I have around 2500 records from the database and my loop may run
>>>>> around
>>>>> 15000
>>>>> times
>>>>>
>>>>>
>>>>> Lance Java wrote:
>>>>>
>>>>>
>>>>>> I still think that the object you are returning contains a large data
>>>>>>
>>>>>>
>>>>> set.
>>>>>
>>>>>
>>>>>> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside
>>>>>> your
>>>>>> callback function
>>>>>> You will need to include /dwr/util.js
>>>>>>
>>>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I changed my application to use dwr 2.0.5. But still the same issue.
>>>>>>> I think I dont have any delay in client side rendering (by the way
>>>>>>> am
>>>>>>> using
>>>>>>> Firefox).
>>>>>>> I have kept a timer before the function
>>>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>      function(objSummary){
>>>>>>>           objObjectiveSummary = objSummary;
>>>>>>>           displayStrandSummary();
>>>>>>> });
>>>>>>>
>>>>>>> and after "function(objSummary)". My problem is it is taking some
>>>>>>>
>>>>>>>
>>>>>> 20sec
>>>>>
>>>>>
>>>>>> of
>>>>>>> time to return me the callback function. Is that having more java
>>>>>>>
>>>>>>>
>>>>>> beans
>>>>>
>>>>>
>>>>>> is
>>>>>>> creating problem. (I feel this should not be)
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Rizwan
>>>>>>>
>>>>>>>
>>>>>>> David Marginian-3 wrote:
>>>>>>>
>>>>>>>
>>>>>>>> This is not normal so my guess is you are trying to return way too
>>>>>>>>
>>>>>>>>
>>>>>>> much
>>>>>
>>>>>
>>>>>> data or have recursive data.  Are you really using version of 2.0,
>>>>>>>>
>>>>>>>>
>>>>>>> not
>>>>>
>>>>>
>>>>>> 2.05?  I mention this because we used to have some performance
>>>>>>>>
>>>>>>>>
>>>>>>> issues
>>>>>
>>>>>
>>>>>> in
>>>>>>>
>>>>>>>
>>>>>>>> building JS objects on the client.  We were using string
>>>>>>>>
>>>>>>>>
>>>>>>> concatenation
>>>>>
>>>>>
>>>>>> instead of adding to and joining an array.  This can cause older IE
>>>>>>>> versions to bog down.  This is fixed in 2.05, but may exist in
>>>>>>>> older
>>>>>>>>
>>>>>>>>
>>>>>>> 2.x
>>>>>>>
>>>>>>>
>>>>>>>> versions.
>>>>>>>>
>>>>>>>> Have you tried calling your method from the DWR test page as Lance
>>>>>>>> initially recommended?  Does this happen in all browsers (try using
>>>>>>>> Firefox)?  You need to determine if the slow up on the server (DWR
>>>>>>>> serializing) or on the client.  In addition to Lance's
>>>>>>>>
>>>>>>>>
>>>>>>> recommendation
>>>>> I
>>>>>
>>>>>
>>>>>> would recommend placing some breakpoints in your script with Firebug
>>>>>>>> (you can even place some in engine.js before and after the call
>>>>>>>> returns).  To weed out DWR's serialization on the server you can
>>>>>>>>
>>>>>>>>
>>>>>>> grab
>>>>>
>>>>>
>>>>>> the source code and place a breakpoint in the marshallOutbound
>>>>>>>>
>>>>>>>>
>>>>>>> method
>>>>>
>>>>>
>>>>>> on
>>>>>>>
>>>>>>>
>>>>>>>> BaseCallMarshaller.
>>>>>>>>
>>>>>>>>
>>>>>>>> Rizwan Ahmed wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> ExtraLatencyAjaxFilter didnot solved my problem.
>>>>>>>>> Its not a simple bean converter. The return type is bean itself.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> That
>>>>>
>>>>>
>>>>>> inturn
>>>>>>>>> sets 6-8 beans in that.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Lance Java wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Can you give a bit more info on the return type of the method and
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> the
>>>>>
>>>>>
>>>>>> converter you are using?Is it a simple bean converter or is it
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> some
>>>>>
>>>>>
>>>>>> form
>>>>>>>
>>>>>>>
>>>>>>>> of
>>>>>>>>>> hibernate converter fetching unwanted rows from your DB?
>>>>>>>>>>
>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi Lance,
>>>>>>>>>>>
>>>>>>>>>>>    I will configure this and check it.
>>>>>>>>>>> I feel its not exactly clientside problem, but it is taking time
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> to
>>>>>
>>>>>
>>>>>> get
>>>>>>>
>>>>>>>
>>>>>>>> the
>>>>>>>>>>> callback.
>>>>>>>>>>>
>>>>>>>>>>> Rizwan
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Lance Java wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> configured?
>>>>>
>>>>>
>>>>>>    <filter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>    </filter>
>>>>>>>>>>>>
>>>>>>>>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>>>>>>>>> clientside
>>>>>>>>>>>> rendering taking the time?
>>>>>>>>>>>>
>>>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>  Am using DWR 2.0.
>>>>>>>>>>>>>  I have written a piece of code in javascript as:
>>>>>>>>>>>>>
>>>>>>>>>>>>>  StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> function(objSummary){
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>       objObjectiveSummary = objSummary;
>>>>>>>>>>>>>       displayStrandSummary();
>>>>>>>>>>>>>  });
>>>>>>>>>>>>>
>>>>>>>>>>>>>  Where StrandSummary is my java class converted to dwr.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> objParametersBD
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>>>>>>>>
>>>>>>>>>>>>>  The problem is when I call "buildStrandSummary" it is taking
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> around
>>>>>>>
>>>>>>>
>>>>>>>> 20sec
>>>>>>>>>>>>> to return me the callback.
>>>>>>>>>>>>> When I checked the java classes, the entire logic and query
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> building
>>>>>>>
>>>>>>>
>>>>>>>> is
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> beging done in around 2 sec.
>>>>>>>>>>>>> In these classes there are around 8 getters and setters
>>>>>>>>>>>>> classes
>>>>>>>>>>>>> invlolved.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I just want to know the reason why this is taking time to
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> return
>>>>> a
>>>>>
>>>>>
>>>>>> callback.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks in Advance,
>>>>>>>>>>>>> Rizwan
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> View this message in context:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24185324.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 


RE: funtion taking time to return Callback

by mikewse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
FWIW, if you could just tell us how many KB the "slow" DWR call returns to the browser, then that would be really interesting to know. Firebug shows this on the Net tab.
 
Best regards
Mike Wilson


From: Randy Jones [mailto:randy_jones@...]
Sent: den 24 juni 2009 19:09
To: users@...
Subject: RE: [dwr-user] funtion taking time to return Callback

Google Chrome has a little better “net” tab than firebug as far as making it clear what is wait time and what is download time. Using Chrome wouldn’t help you determine if the problem is in the serialization time but might help with just looking at the sheer size of the data.

 

Randy

 

From: dmarginian@... [mailto:dmarginian@...] On Behalf Of David Marginian
Sent: Wednesday, June 24, 2009 10:07 AM
To: users@...
Subject: Re: [dwr-user] funtion taking time to return Callback

 

That is part of what I told you to do, the other part is downloading the dwr source and placing breakpoints.  The bottom-line is that you are either returning too much data or attempting to serialize to many fields.  Why don't you send the relevant Java code (beans), the remote method you are calling, and your dwr.xml configuration?

On Wed, Jun 24, 2009 at 7:59 AM, Rizwan Ahmed <rizwan.amd@...> wrote:


I am running only 2 quries and my quries and business logic takes lessthan 2
seconds to process.
Am not very sure how to do the changes in engine.js


Lance Java wrote:


>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
> like a pretty poor design to meMe too... I hope you are only running 6-8
> database queries (1 for each bean type). If you are anywhere near 50
> queries
> or more you need to re-think.
>
> 2009/6/24 David Marginian <david@...>
>
>> You have a loop running 15000 times to populate 2500 records?  That
>> sounds
>> like a pretty poor design to me.  If you want to know for sure where the
>> problem is I suggest following my previous advice:
>>
>> "You need to determine if the slow up on the server (DWR serializing) or
>> on
>> the client.  In addition to Lance's recommendation I would recommend
>> placing
>> some breakpoints in your script with Firebug (you can even place some in
>> engine.js before and after the call returns).  To weed out DWR's
>> serialization on the server you can grab the source code and place a
>> breakpoint in the marshallOutbound method on BaseCallMarshaller."
>>
>> By placing a breakpoint at the start and end of marshallOutbound you will
>> be able to see how long it takes DWR to convert your data.
>> Rizwan Ahmed wrote:
>>
>>> Its not 2500 * 15000, but total times the loop runs is 15000 times and
>>> in
>>> that it will put the all the 2500 records in to 6-8 bean classes.
>>>
>>>
>>> Lance Java wrote:
>>>
>>>
>>>> Strange you didn't tell us this before since we asked this multiple
>>>> times.You
>>>> haven't provided any code... are you returning 2500 x 15000 records?
>>>> That
>>>> sounds like a lot.
>>>>
>>>> A couple of suggestions:
>>>>
>>>> 1. Use bean converters "include" or "exclude" to restrict only the
>>>> properties you need
>>>> http://directwebremoting.org/dwr/server/dwrxml/converters/bean.html
>>>>
>>>> 2. Return a page of data at a time and only refresh a new page when the
>>>> user
>>>> clicks on a next page link.
>>>>
>>>>
>>>>
>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>
>>>>
>>>>
>>>>> I have around 2500 records from the database and my loop may run
>>>>> around
>>>>> 15000
>>>>> times
>>>>>
>>>>>
>>>>> Lance Java wrote:
>>>>>
>>>>>
>>>>>> I still think that the object you are returning contains a large data
>>>>>>
>>>>>>
>>>>> set.
>>>>>
>>>>>
>>>>>> Try debugging dwr.util.toDescriptiveString(objSummary, 20)) inside
>>>>>> your
>>>>>> callback function
>>>>>> You will need to include /dwr/util.js
>>>>>>
>>>>>> 2009/6/24 Rizwan Ahmed <rizwan.amd@...>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I changed my application to use dwr 2.0.5. But still the same issue.
>>>>>>> I think I dont have any delay in client side rendering (by the way
>>>>>>> am
>>>>>>> using
>>>>>>> Firefox).
>>>>>>> I have kept a timer before the function
>>>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>      function(objSummary){
>>>>>>>           objObjectiveSummary = objSummary;
>>>>>>>           displayStrandSummary();
>>>>>>> });
>>>>>>>
>>>>>>> and after "function(objSummary)". My problem is it is taking some
>>>>>>>
>>>>>>>
>>>>>> 20sec
>>>>>
>>>>>
>>>>>> of
>>>>>>> time to return me the callback function. Is that having more java
>>>>>>>
>>>>>>>
>>>>>> beans
>>>>>
>>>>>
>>>>>> is
>>>>>>> creating problem. (I feel this should not be)
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Rizwan
>>>>>>>
>>>>>>>
>>>>>>> David Marginian-3 wrote:
>>>>>>>
>>>>>>>
>>>>>>>> This is not normal so my guess is you are trying to return way too
>>>>>>>>
>>>>>>>>
>>>>>>> much
>>>>>
>>>>>
>>>>>> data or have recursive data.  Are you really using version of 2.0,
>>>>>>>>
>>>>>>>>
>>>>>>> not
>>>>>
>>>>>
>>>>>> 2.05?  I mention this because we used to have some performance
>>>>>>>>
>>>>>>>>
>>>>>>> issues
>>>>>
>>>>>
>>>>>> in
>>>>>>>
>>>>>>>
>>>>>>>> building JS objects on the client.  We were using string
>>>>>>>>
>>>>>>>>
>>>>>>> concatenation
>>>>>
>>>>>
>>>>>> instead of adding to and joining an array.  This can cause older IE
>>>>>>>> versions to bog down.  This is fixed in 2.05, but may exist in
>>>>>>>> older
>>>>>>>>
>>>>>>>>
>>>>>>> 2.x
>>>>>>>
>>>>>>>
>>>>>>>> versions.
>>>>>>>>
>>>>>>>> Have you tried calling your method from the DWR test page as Lance
>>>>>>>> initially recommended?  Does this happen in all browsers (try using
>>>>>>>> Firefox)?  You need to determine if the slow up on the server (DWR
>>>>>>>> serializing) or on the client.  In addition to Lance's
>>>>>>>>
>>>>>>>>
>>>>>>> recommendation
>>>>> I
>>>>>
>>>>>
>>>>>> would recommend placing some breakpoints in your script with Firebug
>>>>>>>> (you can even place some in engine.js before and after the call
>>>>>>>> returns).  To weed out DWR's serialization on the server you can
>>>>>>>>
>>>>>>>>
>>>>>>> grab
>>>>>
>>>>>
>>>>>> the source code and place a breakpoint in the marshallOutbound
>>>>>>>>
>>>>>>>>
>>>>>>> method
>>>>>
>>>>>
>>>>>> on
>>>>>>>
>>>>>>>
>>>>>>>> BaseCallMarshaller.
>>>>>>>>
>>>>>>>>
>>>>>>>> Rizwan Ahmed wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> ExtraLatencyAjaxFilter didnot solved my problem.
>>>>>>>>> Its not a simple bean converter. The return type is bean itself.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> That
>>>>>
>>>>>
>>>>>> inturn
>>>>>>>>> sets 6-8 beans in that.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Lance Java wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Can you give a bit more info on the return type of the method and
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> the
>>>>>
>>>>>
>>>>>> converter you are using?Is it a simple bean converter or is it
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> some
>>>>>
>>>>>
>>>>>> form
>>>>>>>
>>>>>>>
>>>>>>>> of
>>>>>>>>>> hibernate converter fetching unwanted rows from your DB?
>>>>>>>>>>
>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi Lance,
>>>>>>>>>>>
>>>>>>>>>>>    I will configure this and check it.
>>>>>>>>>>> I feel its not exactly clientside problem, but it is taking time
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> to
>>>>>
>>>>>
>>>>>> get
>>>>>>>
>>>>>>>
>>>>>>>> the
>>>>>>>>>>> callback.
>>>>>>>>>>>
>>>>>>>>>>> Rizwan
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Lance Java wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> configured?
>>>>>
>>>>>
>>>>>>    <filter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>    </filter>
>>>>>>>>>>>>
>>>>>>>>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>>>>>>>>> clientside
>>>>>>>>>>>> rendering taking the time?
>>>>>>>>>>>>
>>>>>>>>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>  Am using DWR 2.0.
>>>>>>>>>>>>>  I have written a piece of code in javascript as:
>>>>>>>>>>>>>
>>>>>>>>>>>>>  StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> function(objSummary){
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>       objObjectiveSummary = objSummary;
>>>>>>>>>>>>>       displayStrandSummary();
>>>>>>>>>>>>>  });
>>>>>>>>>>>>>
>>>>>>>>>>>>>  Where StrandSummary is my java class converted to dwr.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> objParametersBD
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> and objObjectiveSummary  are global javascript objects.
>>>>>>>>>>>>>
>>>>>>>>>>>>>  The problem is when I call "buildStrandSummary" it is taking
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> around
>>>>>>>
>>>>>>>
>>>>>>>> 20sec
>>>>>>>>>>>>> to return me the callback.
>>>>>>>>>>>>> When I checked the java classes, the entire logic and query
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> building
>>>>>>>
>>>>>>>
>>>>>>>> is
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> beging done in around 2 sec.
>>>>>>>>>>>>> In these classes there are around 8 getters and setters
>>>>>>>>>>>>> classes
>>>>>>>>>>>>> invlolved.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I just want to know the reason why this is taking time to
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> return
>>>>> a
>>>>>
>>>>>
>>>>>> callback.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks in Advance,
>>>>>>>>>>>>> Rizwan
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> View this message in context:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
>>>>>
>>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24181474.html
>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24185324.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...