0

ZKComet Exceutions.schedule too many ajax calls ?

asked 2012-12-21 02:18:25 +0800

TheAce gravatar image TheAce
69

updated 2012-12-21 02:18:52 +0800

Many zkcomet ajax queries... sometimes too much makes Chrome page to freeze...
.
Any clue why that ? See the number of queries based on the Network tool of the browser... each of them same size and also under 100ms each requests....

img

In my application I do use some Executions.schedule, but I believe that if multiple of these occurs.... they should sends only if first there are really UI changes otherwise should make sure not to send the data... And also if there are multiple schedule (due to servlet 3) it should be able to gather the multiple requests and respond only in 1 ajax request....

Not sure what to think... anyone have any insights ?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-12-21 03:28:35 +0800

TheAce gravatar image TheAce
69

Hello,

Here is what I have found so far ...

Everytime I am calling the following (part of my creation of objects ...

EventQueue qe = EventQueues.lookup(queueName, type, create);
qe.subscribe(myEventListener);


It create a zkcomet query to happend (not su sure why it does create 18 of them if i do 18 times the qe.subscribe)....

Anyone have any idea why EventQueue subscribe cause a zkcomet query ?

If i leave it like this and i have 100 users connection, that would create 100 * 18 queries to happen on the server... pretty heavy.... Also in the post of the zkcomet function there is actually nothing, its blank so I am not sure why that call is required or maybe i have a configuraiton file somewhere that is missing something ?

link publish delete flag offensive edit

answered 2012-12-26 01:59:06 +0800

TheAce gravatar image TheAce
69

Anyone have any idea ?

Thanks, happy holiday everyone

link publish delete flag offensive edit

answered 2013-11-18 02:09:45 +0800

paowang gravatar image paowang
140 6

Can you provide some code for reproducing?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-12-21 02:18:25 +0800

Seen: 67 times

Last updated: Nov 18 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More