GWT RPC Problem

68 views
Skip to first unread message

permi

unread,
Jan 25, 2012, 1:54:40 PM1/25/12
to Google Web Toolkit
Hi,

I am able to call max 6 RPC calls at a time .how I can increase the
calls.

Ex: I have a 10 methods ,each method is take 5 min time to complete
the task.so when I start to call all methods at a time I can able to
call max 6 methods, reaming 4 calls in queue i think,after completion
of earlier call reaming 4 calls going to call.

help me ,how I can call 10 methods at a time and get the response.

Alfredo Quiroga-Villamil

unread,
Jan 26, 2012, 9:58:56 AM1/26/12
to google-we...@googlegroups.com
This is a limitation superimposed by browsers and it varies depending on which browser you are dealing with. My suggestion if you have a number of requests, each taking an X amount of time is to look into a Server Push approach.

Regards,

Alfredo


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton


paramesh reddy

unread,
Jan 28, 2012, 2:29:03 AM1/28/12
to google-we...@googlegroups.com
Hi,
  
  I tried in IE and Chrome Browser ,both have same.can you tell me how to avoid this problem?

paramesh reddy

unread,
Feb 6, 2012, 11:45:46 AM2/6/12
to google-we...@googlegroups.com
Hi,

  please can any one slove my problem.how I can make more than 6 RPC call at a time.some peoples told me it is depending on browser,but I tried in IE ,Chorme and firefox every where same result.

Alan Chaney

unread,
Feb 6, 2012, 12:36:21 PM2/6/12
to google-we...@googlegroups.com
On 2/6/2012 8:45 AM, paramesh reddy wrote:
Hi,

  please can any one slove my problem.how I can make more than 6 RPC call at a time.some peoples told me it is depending on browser,but I tried in IE ,Chorme and firefox every where same result.

Well, they were right - the browser controls the number of connections. In firefox, for example:

about:config
network.http.max-persistent-connections-per-server;6

The *user* can change this. You, the programmer, can't. Unless you are working on something used purely internally within an organization and your IT dept. has complete control
over the browser installations (very unlikely) then you must:

A. Change your app so it doesn't need to make so many requests

or

B. Ask your users to change their configuration.

The only sensible answer is A.

Regards

Alan

Jens

unread,
Feb 6, 2012, 12:40:53 PM2/6/12
to google-we...@googlegroups.com
Well I think Google search is your friend. A quick search gave me http://support.microsoft.com/kb/282402 which shows you how to increase the limit in IE. Don't know if its possible in other browsers.

In general I would say you should write your app in a way that it does not depend on a lot of parallel ajax connections. If you have a lot of very long running tasks on the server you should think about executing these tasks in threads and let the browser asks for their status periodically (maybe every 10 to 20 seconds). That way the RPC request will return immediately and the browser does not run out of parallel connections. 
You can also batch requests, which means instead of calling 10 methods directly just call one method which tells the server to do 10 things at once.

-- J.

JoseM

unread,
Feb 6, 2012, 1:26:21 PM2/6/12
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages