如何删除Apache Axis的tmp文件,而不需要重新启动 [英] How to delete apache axis tmp files without restarting

查看:157
本文介绍了如何删除Apache Axis的tmp文件,而不需要重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Apache Axis的跟一个Web服务。它工作正常,但在一天的过程中,我们正在生成的临时文件1GB。如果我们重新启动该服务将删除这些文件,但需要每天重新启动该服务,所以我们不运行的磁盘空间似乎有点傻。

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.

有一个容易解决这个?

推荐答案

如果您知道临时目录路径,你可能会碰到的 RM -rf /路径/要/温度/ * 每6,12通过cron的..等。

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

或者你可以的,你是Linux系统上运行,如果达到特定大小到这个目录清空写bashscript。并把它也crontab中。

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.

这篇关于如何删除Apache Axis的tmp文件,而不需要重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆