I want to make the question clear. I want to know how to cleanup tmp folder on a hot deploy ( of war file). I cannot afford a huge RAM but I have too many apps on my jboss.
I don't want to manually go and delete all the files in the tmp directory (that would be a bad idea). I want to cleanup tmp folder wheneven I hot deploy my application.(It should cleanup only unncessessary files of tmp (and if possible wrk too))
Please let me know if anyone wants to solve the same problem. I have some ideas of scheduling a quartz job to cleanup tmp periodically.
But this will affect my other applications as I am dealing with "TMP" here!
Is there anyway to cleanup unnecessary files in tmp?