To clean or not to clean $JBOSS_HOME/server/web/tmp directory?

老子叫甜甜 提交于 2019-12-10 14:17:34

问题


We have script that restarts JBoss.
Should we clean following directories in this script:

$JBOSS_HOME/server/web/tmp
$JBOSS_HOME/server/web/work
$JBOSS_HOME/server/web/data

Or JBoss should clean all old files in these directories automatically?

Our clients complains that there are very old files in these directories.


回答1:


Don't have experience with jboss 5, but in prior versions the contents of those directories sometimes got corrupted and had to be manually cleared. So we added it to our restart script. Haven't noticed any ill effects.




回答2:


JBoss 5 dies not automatically clean these folders. Whenever I see issues with error deploying the ear file, I first clean up the rver/all/tmp folder. I am not sure under what circumstances it really helps, but I have not seen any ill effects of deleting the files there. Just make sure that jboss server is shutdown before you delete the contents.



来源:https://stackoverflow.com/questions/3015177/to-clean-or-not-to-clean-jboss-home-server-web-tmp-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!