Continuous requests for Zkau

asked 2017-09-26 17:13:14 +0800

SoumiaOulkasse gravatar image SoumiaOulkasse
3 1

Hello, In a web application based on ZK, we have a continuous requests for zk loader (Zkau).

It seems that zk continuoues calling zk loader every second even if the user interface is loaded. And that could impact the performance of the application.

Any ideas what could we do to stop that call after page loading?


delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2017-09-27 11:07:36 +0800

hawk gravatar image hawk
1988 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2017-09-28 09:34:08 +0800

if the request URL looks like http://localhost:8080/[APP_CONTEXT]/zkau/, it's very likely your page contains a <timer> or you have enabled server push with "polling" implementation. Usually, you enable this because you need a constant, active update from the server.

You can differentiate these 2 by request data:

  • timer event name is onTimer: image description

  • server push request is dummy image description

You can switch to another implementation to avoid such continuous request, please refer to https://www.zkoss.org/wiki/ZKDeveloper%27sReference/Server_Push/Configuration

link publish delete flag offensive edit

answered 2017-09-29 18:34:13 +0800

SoumiaOulkasse gravatar image SoumiaOulkasse
3 1

Effectively @hwak It's due to onTimer event, thunk you for the explanation, it's very useful, it's all about the configuration used.

thunk's a lot :)

link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2017-09-26 17:13:14 +0800

Seen: 17 times

Last updated: Sep 29