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

 

  • 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.