4

I've noticed since moving to jboss 5, tmp files for each instance are handled differently. In jboss 4, the entire directory was purged at each jboss restart. In 5, the applications are exploded to uuid-named folders, and are never cleaned up.

This is obviously an architectural change, but I can't seem to find any documentation on this. Is there a mechanism to automate the cleanup within jboss, or do I write a script to purge everything since the last jboss restart? What's the value in the new way of handling tmp files?

Thanks.

-Dom

2

The cleanup method in use seems to be to edit the bin/run.bat script so that the tmp folder is deleted before JBoss starts. I've got this at the top of run.bat:

rem ******** CLEAR TMP, WORK, LOG ***************
rmdir /s /q c:\apps\jboss-5.1.0.ga\server\default\tmp
rmdir /s /q c:\apps\jboss-5.1.0.ga\server\default\work
rmdir /s /q c:\apps\jboss-5.1.0.ga\server\default\log
mkdir       c:\apps\jboss-5.1.0.ga\server\default\tmp
mkdir       c:\apps\jboss-5.1.0.ga\server\default\work
mkdir       c:\apps\jboss-5.1.0.ga\server\default\log
echo --- Cleared temp folders ---

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy