You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "chris lintz (JIRA)" <ji...@apache.org> on 2007/11/13 22:38:43 UTC

[jira] Created: (WICKET-1158) DiskPageStore does not cleanup cache files after Web container restarts

DiskPageStore does not cleanup cache files after Web container restarts
-----------------------------------------------------------------------

                 Key: WICKET-1158
                 URL: https://issues.apache.org/jira/browse/WICKET-1158
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-rc1, 1.3.0-beta4, 1.3.0-beta3
            Reporter: chris lintz


DiskPageStore does not cleanup cache files after Web container restarts.  We have leaked cache files on disk which is a bad thing from the perspective of a high traffic site.  This occurs when Tomcat (or I am sure other Web container) is restarted.  My theory is the HttpSessionListener bound to the page store file cannot be called because the session reference is lost.  It can be argued that a framework generating resources on disk is responsible for the cleanup - with the exception of logs :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1158) DiskPageStore does not cleanup cache files after Web container restarts

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542257 ] 

Johan Compagner commented on WICKET-1158:
-----------------------------------------

as i said on the mailing list wicket can't really do something about it. 
If you stop the container gracefully then you don't have leaks.
Only if the container crashes or you do a kill -9 then yes there are left over files.

So if you dont want that, just have a script that is called by the script that starts your container and that just cleans up the whole work dir.

> DiskPageStore does not cleanup cache files after Web container restarts
> -----------------------------------------------------------------------
>
>                 Key: WICKET-1158
>                 URL: https://issues.apache.org/jira/browse/WICKET-1158
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3, 1.3.0-beta4, 1.3.0-rc1
>            Reporter: chris lintz
>
> DiskPageStore does not cleanup cache files after Web container restarts.  We have leaked cache files on disk which is a bad thing from the perspective of a high traffic site.  This occurs when Tomcat (or I am sure other Web container) is restarted.  My theory is the HttpSessionListener bound to the page store file cannot be called because the session reference is lost.  It can be argued that a framework generating resources on disk is responsible for the cleanup - with the exception of logs :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1158) DiskPageStore does not cleanup cache files after Web container restarts

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542252 ] 

Martijn Dashorst commented on WICKET-1158:
------------------------------------------

How do you stop the container?

> DiskPageStore does not cleanup cache files after Web container restarts
> -----------------------------------------------------------------------
>
>                 Key: WICKET-1158
>                 URL: https://issues.apache.org/jira/browse/WICKET-1158
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3, 1.3.0-beta4, 1.3.0-rc1
>            Reporter: chris lintz
>
> DiskPageStore does not cleanup cache files after Web container restarts.  We have leaked cache files on disk which is a bad thing from the perspective of a high traffic site.  This occurs when Tomcat (or I am sure other Web container) is restarted.  My theory is the HttpSessionListener bound to the page store file cannot be called because the session reference is lost.  It can be argued that a framework generating resources on disk is responsible for the cleanup - with the exception of logs :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-1158) DiskPageStore does not cleanup cache files after Web container restarts

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner closed WICKET-1158.
-----------------------------------

    Resolution: Duplicate

this one will be fixed when WICKET-1161 is fixed.

> DiskPageStore does not cleanup cache files after Web container restarts
> -----------------------------------------------------------------------
>
>                 Key: WICKET-1158
>                 URL: https://issues.apache.org/jira/browse/WICKET-1158
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3, 1.3.0-beta4, 1.3.0-rc1
>            Reporter: chris lintz
>             Fix For: 1.3.0-rc2
>
>
> DiskPageStore does not cleanup cache files after Web container restarts.  We have leaked cache files on disk which is a bad thing from the perspective of a high traffic site.  This occurs when Tomcat (or I am sure other Web container) is restarted.  My theory is the HttpSessionListener bound to the page store file cannot be called because the session reference is lost.  It can be argued that a framework generating resources on disk is responsible for the cleanup - with the exception of logs :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1158) DiskPageStore does not cleanup cache files after Web container restarts

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner updated WICKET-1158:
------------------------------------

    Fix Version/s: 1.3.0-rc2

we could introduce a special property that the developer has to configure with a specific time in minutes or hours and when files are older then that time they are removed.

By default this value is 0 or -1 so nothing happens. So you have to configure it before it works.

> DiskPageStore does not cleanup cache files after Web container restarts
> -----------------------------------------------------------------------
>
>                 Key: WICKET-1158
>                 URL: https://issues.apache.org/jira/browse/WICKET-1158
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3, 1.3.0-beta4, 1.3.0-rc1
>            Reporter: chris lintz
>             Fix For: 1.3.0-rc2
>
>
> DiskPageStore does not cleanup cache files after Web container restarts.  We have leaked cache files on disk which is a bad thing from the perspective of a high traffic site.  This occurs when Tomcat (or I am sure other Web container) is restarted.  My theory is the HttpSessionListener bound to the page store file cannot be called because the session reference is lost.  It can be argued that a framework generating resources on disk is responsible for the cleanup - with the exception of logs :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.