You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/03/20 20:47:00 UTC

[Bug 60892] New: Ability to remove Tomcat cache (work dir)

https://bz.apache.org/bugzilla/show_bug.cgi?id=60892

            Bug ID: 60892
           Summary: Ability to remove Tomcat cache (work dir)
           Product: Tomcat 8
           Version: 8.0.42
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: czacharym@gmail.com
  Target Milestone: ----

I would like to make a feature request that will allow Tomcat to clear the
"work" directory in context destroy (shutdown/undeploy).  This feature exists
in JBoss.  Would be great to have this in Tomcat so manual cleanup is not
needed.

This can be done is JBoss this way:

-Dorg.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY=true

Would be a good feature to have something similar in Tomcat.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60892] Ability to remove Tomcat cache (work dir)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60892

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
It has been a couple of weeks with no further comment. Closing this as WONTFIX.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60892] Ability to remove Tomcat cache (work dir)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60892

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
The work directory contains:
- class files (and possible java files) for JSP pages
- serialized sessions that were active on shutdown

The work directory is removed automatically when a web application is
undeployed.

The work directory is not removed when Tomcat is shutdown.

If the work directory were removed on shutdown it would:
- break the default session persistence across restarts
- slow first access to JSPs as each would need to be re-compiled

Given that the work directory is removed on undeployment (if you have an issue
with locked files that is a different problem) and that removing the work
directory on shutdown breaks stuff, I'm leaning towards resolving this as
WONTFIX. However, I'll leave it open for now in case there are points I have
missed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org