As a WebSphere Process Server administrator, do questions on wstemp ponder you? Well, read on...
- I see that the wstemp directory gets filled up with sub-directories as I work on application deployments and server administration tasks. What are these sub-directories?
The wstemp directory is used as a temporary directory for the server. The temporary files are mostly created during application installation and uninstallation tasks. They are also created while running wsadmin scripts and store current session data for logged in administrative console user. wstemp is created for the deployment manager and each custom profile in the cell configuration.
- Can I delete these sub-directories? Can I delete them when servers are running?
When the logged in user logs out of the administrative console, the user session details are no longer required. The sub-directory anonymous* holds this information and are is removed when you log out. When there are no installation tasks in progress, the temporary files that are created in these tasks are no longer needed. The sub-directory appdep* holds this information. When there is no script task in progress using wsadmin, the sub-directory, Script* contents are no longer required.
Most of the wstemp directories are deleted when the servers are shut down. While manually deleting the contents, the general rule is - it is safe to delete the contents when the servers are stopped. But on environments where downtime is kept minimal, the directories will keep piling up and consume valuable disk space. So can you delete directories without stopping the servers?Specifically, to be on the safe side, if the administrator is sure that there are no application deployment tasks in progress, appdep* directories can be removed. When there are no script actions in progress, Script* directories can be removed. The only caution is while dealing with anonymous* directories. It is not advisable to remove these directories when the servers are running.
- Are there any known defect fixes for wstemp not cleaned up?
Depending on the WebSphere Application Server version you are running, refer to the Fix List web site for more information.
- For V7.0.0, click here
- For V6.1.0, click here