0

Release memory of ZK server after closing browser

asked 2015-03-26 09:40:44 +0800

gds1987 gravatar image gds1987
18

Hi,all

I have used ZK framework for several weeks, and it is amazing solution to achieve my web application. All things go well, but after monitor the memory of ZK server, I find the memory of ZK server would be larger when new session is created. And even closing browser, the memory never decrease. So, may I implement DesktopClean or SessionClean to decrease memory ? Or other solution ?

Thank you very much !

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-27 04:07:10 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

books.zkoss.org/wiki/ZKDeveloper'sReference/Customization/InitandCleanup

refer to this link it will give you proper insights to your questions

link publish delete flag offensive edit

Comments

Thank you for this answer. I have read this post and try to implement into my application.

gds1987 ( 2015-03-30 08:03:37 +0800 )edit
0

answered 2015-03-30 05:55:55 +0800

Darksu gravatar image Darksu
1991 1 4

Hello gds1987,

A very good example on how to handle the session can be found at the following url:

http://ben-bai.blogspot.com/2012/12/initcleanup-sessiondesktop-in-zk.html

You could also use JRockit in order to further optimize your application.

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

Thank you very much. I have read this post very carefully. I found the post is describing: prepare one big data for one session during its init, and destroy the big data during session destroy. I got it, but my question is how to release the memory which session creates during using the web service

gds1987 ( 2015-03-30 08:05:18 +0800 )edit

Or, I can implement the thinking of that good post, for example: can we put the relation between one target session/desktop and some class-object into MapOfVeryBigDataPerDesktop ?

gds1987 ( 2015-03-30 08:10:13 +0800 )edit
0

answered 2015-04-06 14:33:02 +0800

Darksu gravatar image Darksu
1991 1 4

Hello gds 1987,

In addition please refer to the following url in order to get some tips on Java Memory Management:

http://www.deepakgaikwad.net/index.php/2009/06/14/10-best-tips-to-conserve-memory-in-java-programs.html

Best Regards,

Daksu

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

Follow
1 follower

RSS

Stats

Asked: 2015-03-26 09:40:44 +0800

Seen: 42 times

Last updated: Apr 06 '15

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