-
FEATURED COMPONENTS
First time here? Check out the FAQ!
We are using hybris, an eCommerce/CMS product that uses the ZK Framework as it's base for developing UIs (cockpits is their term).
When we run performance tests, the site slows dramatically when we mix in cockpit traffic with general internet traffic.
Is there a way to monitor and/or inspect what is happening? ZK has long been blamed for being chatty and I am trying to determine how we can figure this out.
ZK is only as chatty as you implement it :D of course being an Ajax application every user interaction might result in a request to the server (if the server needs to implement logic for this interaction). This really depends on the way you implement your application.
The simplest way to check the traffic is to have a quick look into your browsers developer tools (F12) and enable the network traffic logging (e.g. in the chrome developer tools).
There you'll get a first impression about what is being sent (where/when/timing/data transferred ...). Depending on your requirements I'd check if the information sent is too much or if information is sent too frequently.
The ZK ajax requests usually go to [yourserver]:[port]/[yourapplication]/zkau the request form data contains the event name and parameters sent to the server Also the response body can be inspected using the "network panel" in the developer tools. (here a recording of what it will look like)
If you see some unusually large or frequent traffic then I am sure you can easily adjust it.
some examples:
a button click replaces a bigger UI component which results in resending many components. Sometimes it is possible to render less if required.
a timer could be configured with a high frequency, sending a request every second.
polling server push can be enabled in general (it can be activated/deactivated on demand to avoid unnecessary polling)
also check our document on tracing performance problems in general
Asked: 2015-05-26 14:54:04 +0800
Seen: 15 times
Last updated: May 27 '15