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

2

5

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.

Klimesh answered 10/6, 2010 at 14:11 Comment(1)
see #9852152Ignorant
W
8

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.

Warrenne answered 10/6, 2010 at 19:3 Comment(2)
Do you clean all of these directories?Klimesh
Can you show me part of the "restart script" where you clean the directories?Chili
I
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.

Ia answered 14/5, 2012 at 16:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.