Reputation: 16825
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.
Upvotes: 5
Views: 9597
Reputation: 981
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.
Upvotes: 2
Reputation: 8629
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.
Upvotes: 8