Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
152 views

webserver temp directory

We went live with version 9.40 in January.

Recently my linux team notified me and said that it appears the /tomcat/sm/temp directory isn't purged on a regular basis.

We are wondering is this something the application is supposed to be handling, or do we need to add a new process to purge these files?  If so, when is it safe to remove them?  After 1 hour?  24 hours? ...

The files in this directory look like this:

-rw------- 1 tomcat tomcat 3463424 Feb 12 08:27 +~JF2234992300699709052.tmp

-rw------- 1 tomcat tomcat 3369084 Feb 12 08:27 +~JF1450740230796936673.tmp

-rw------- 1 tomcat tomcat 3321716 Feb 12 08:27 +~JF7245197310086632717.tmp

-rw------- 1 tomcat tomcat 3352828 Feb 12 08:27 +~JF6710943433197043454.tmp

-rw------- 1 tomcat tomcat 3321716 Feb 12 08:27 +~JF5514687376332773810.tmp

-rw------- 1 tomcat tomcat 2412524 Feb 12 08:27 +~JF6564845817158403762.tmp

 

0 Likes
1 Reply
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: webserver temp directory

Those are temporary files which Tomcat uses to process things for webtier users - most notably for Service Manager, attachments. It is safe to clear out that directory when restarting Tomcat. If you use a startup script, you can just add a line to nuke the contents of the directory.

If it has simply become full over a long period of time, you should have no problems - that just happens when it's not cleared out. If it is filling up at an extreme rate, you might check your Tomcat logs and SM webapp logs to see if anything looks amiss.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.