Skip to Content
0
Former Member
Feb 05, 2019 at 12:06 PM

ZK framework frequent calls server side push/zkau

624 Views

Hi,

During business day we have requests from /BACKOFFICE storefront which leads to extra (not critical) load on admin application/servers. (every 10s)

We found the similar problem in other questions: forum.zkoss.org stackoverflow.com forum.zkoss.org 2

But after changing we have the same frequency of zkau requests - 10s.

In the browser, we can see the Java script that initiated the request: "Y.send(W.content)".

We use hybris v6.6

For example: POST https://localhost:4433/backoffice/zkau

our configuration which was added to hybris/bin/ext-backoffice/backoffice/web/webroot/WEB-INF/zk.xml:

 <?xml version="1.0" encoding="UTF-8"?>
 <zk>
     <device-config>
         <device-type>ajax</device-type>
         <server-push-class>org.zkoss.zk.ui.impl.PollingServerPush</server-push-class>
     </device-config>
 
     <preference>
         <name>PollingServerPush.delay.min</name>
         <value>70000</value>
     </preference>
     <preference>
         <name>PollingServerPush.delay.max</name>
         <value>80000</value>
     </preference>
     <preference>
         <name>PollingServerPush.delay.factor</name>
         <value>5</value>
     </preference>
 
     <preference>
         <name>CometServerPush.retry.delay</name>
         <value>3000</value><!-- 3 seconds delay between each retry-->
     </preference>
     <preference>
         <name>CometServerPush.retry.count</name>
         <value>3</value><!-- 3 tries for each request -->
     </preference>
     <preference>
         <name>CometServerPush.ajax.timeout</name>
         <value>180000</value><!-- 3 minutes -->
     </preference>
 </zk>
 

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

Thunk's