1 Reply Latest reply on Nov 7, 2011 11:56 AM by Venkat Sudheer Reddy Aedama

    How to clean up tmp folder of JBoss periodically without restarting the server?

    Venkat Sudheer Reddy Aedama Newbie

      I am using jboss-5.1.0.GA to schedule Quartz Jobs (I am not using the Quartz that is shipped with JBoss) using RESTful web-services. I deploy my application many times a day (nearly 50 times/day) to test the Quartz Jobs. (I am in development stage).

       

       

      The problem is my "tmp" folder (...\jboss-5.1.0.GA\server\default\tmp) becomes too huge. (Over 700 MB/day). I believe this is the reason which slows down my deployment of WAR. It takes more than 5 minutes to start the Quartz Initializer Servlet. I want to clean this tmp folder periodically. If possible I want to clean this tmp folder after alternate deployments so that my deployments will be faster. I restart the JBoss to clean the tmp folder whenever it becomes huge.

       

       

      Please throw some light.

       

       

      Thank you.

       

       

      -Sudheer Reddy

        • 1. Re: How to clean up tmp folder of JBoss periodically without restarting the server?
          Venkat Sudheer Reddy Aedama Newbie

          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?