0

How are the components cached?

asked 2006-03-20 17:18:39 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3640082

By: nobody

The components for each page are cached on the serverside per session, I wonder How are these components are cached? Are they cached directly in the httpsession?

My concern is that if they are in the httpsession, that will cause memory explosion .

It is better to put the components in the controllable and seperate cache .

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2006-03-21 01:31:48 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641346

By: tomyeh

Don't worry. ZK closes desktop once users leave for another page. The memory use is much lower than you expect. Our demo site serves more than 200 desktops (from 400 sessions) simutaneously and the memory use is hardly observable (up and down in a few megabytes).

link publish delete flag offensive edit

answered 2006-03-21 03:51:21 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641471

By: nobody

Thanks for your reply. Even the memory usage is pretty low, it is better configurable to cache the components in other caches other than httpsession.

link publish delete flag offensive edit

answered 2006-03-21 09:41:21 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641806

By: tomyeh

Could you give me some examples? I love to hear your suggestions.

link publish delete flag offensive edit

answered 2006-03-21 22:41:04 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643312

By: nobody

Do you know hibernate? Hibernate provides an interface org.hibernate.cache.CacheProvider, and also some build-in implementation are provided which give the user options to select different caches such as ehcache,oscache through the configure. oscache provides the clustering capability.

May you can define a simple interface to hook any implementation of it.

httpsession usually only holds the login info.

Your guys did a good job for ajax development. it has been one of my goal when doing the web developmetn with ajax.


My another suggestion to speed the app is to pre execute the request/response in the current desktop and cache the response in the browser for those readonly request on the background while user is operating.



link publish delete flag offensive edit

answered 2006-03-22 02:12:37 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643542

By: tomyeh

Good point.

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: 2006-03-20 17:18:39 +0800

Seen: 412 times

Last updated: Mar 22 '06

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