Search code examples
javaweb-servicesapache-axis

How to delete apache axis tmp files without restarting


We're using apache axis to talk to a web service. It works fine, but over the course of a day we're generating 1GB of temp files. These files are deleted if we restart the service, but needing to restart the service every day so we don't run out of disk space seems a bit silly.

Is there an easy fix for this?


Solution

  • If you know the temp directory path, You may run rm -rf /path/to/temp/* every 6 , 12 ..etc through cron.

    Or you may write bashscript of you are running on linux system to empty this directory if it reaches a specific size. And put it also in crontab.