More aggresive discarding of sessions and desktops

This helps to free memory faster. If a page is kept open the timer in
the template avoids the session and the desktop to be discarded.

FEA: ItEr74S08DeployFramework
This commit is contained in:
Óscar González Fernández 2011-05-26 18:51:14 +02:00
parent 939aa1f14a
commit 1ec711ce4c
3 changed files with 4 additions and 4 deletions

View file

@ -134,8 +134,8 @@
</servlet-mapping>
<session-config>
<!-- The session timeout is an hour -->
<session-timeout>60</session-timeout>
<!-- The session timeout is ten minutes. A timer is used to keep the session alive if there is some open page -->
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>

View file

@ -6,7 +6,7 @@
<desktop-config>
<!-- seconds it takes between requests for a desktop to be invalidated -->
<!-- a timer is introduced to avoid invalidation of pages still open -->
<desktop-timeout>60</desktop-timeout>
<desktop-timeout>30</desktop-timeout>
</desktop-config>
<session-config>

View file

@ -45,7 +45,7 @@ signature="java.lang.Boolean isDefaultPasswordsControl()"?>
<div xmlns:n="http://www.zkoss.org/2005/zk/native" apply="${templateCtrl}" height="100%">
<timer repeats="true" running="true" delay="30000" onTimer=""/>
<timer repeats="true" running="true" delay="20000" onTimer=""/>
<borderlayout height="100%" width="100%" >
<north border="none">
<n:div>