11 Replies Latest reply on Jul 28, 2010 8:48 AM by luke_m

    jboss tmp folder max size

    luke_m

      Is it possibile to configure a max size for server\<mydomain>\tmp folder?

       

      in my jboss 5.1.0 installed on win, tmp directory increase at every deploy and it reach quickly a big size

       

      thanks in advance

      l

        • 1. Re: jboss tmp folder max size
          jaikiran

          Looks like you have created your own server configuration named "mydomain". How did you create it? Copied it from "all"? Where and how do you deploy your applications?

          • 2. Re: jboss tmp folder max size
            luke_m

            Hi,

             

            I've only copied and renamed jboss default domain.

             

            thanks in advance

            luke

            • 3. Re: jboss tmp folder max size
              jaikiran

              Have you changed any configuration files or JVM arguments? And also, I guess you missed some of the questions I asked in my previous reply.

              • 4. Re: jboss tmp folder max size
                luke_m

                No.

                I deploy my appl when Jboss is stopped in server\<mydomain>\deploy\<mydomain>\myAppl.ear, then I start Jboss...

                 

                nothing special, I'm a jboss newbie.

                 

                thanks

                l

                • 5. Re: jboss tmp folder max size
                  jaikiran

                  luke m wrote:

                   

                  No.

                  I deploy my appl when Jboss is stopped in server\<mydomain>\deploy\<mydomain>\myAppl.ear, then I start Jboss...

                   

                  So you have a mydomain folder within the deploy folder? Try removing that and instead move the myApp1.ear directly to the deploy folder.

                   

                  There's are some known VFS issues related to disk space usage when a different folder other than "deploy" is used for deployments. However, I would have expected that the issue wouldn't come into picture for sub-folders for deploy. Give it a try and let us know how it goes.

                  • 6. Re: jboss tmp folder max size
                    luke_m

                    I've followed your suggestion deploying myAppl.ear on

                     

                         server\<mydomain>\deploy\myAppl.ear

                     

                    but it seems nothing change. After jboss started some new folder has been created on server\<mydomain>\tmp\ for every jboss deployed war

                     

                    thanks

                    l

                    • 7. Re: jboss tmp folder max size
                      jaikiran

                      luke m wrote:

                      After jboss started some new folder has been created on server\<mydomain>\tmp\ for every jboss deployed war

                      That is OK. And that's how the deployment works. Each war is extracted to the tmp folder. However from what I saw in your first post, I thought you were worried about the large disk space usage of the tmp folder over a period of time (which actually was a bug in AS).

                      1 of 1 people found this helpful
                      • 8. Re: jboss tmp folder max size
                        luke_m

                        ok. As a workaroud I'm working on win/linux scripts that periodically clean tmp folder.

                         

                        have you some reference about jboss bug/item open on this problem?

                         

                        thank

                        luke

                        • 9. Re: jboss tmp folder max size
                          jaikiran

                          luke m wrote:

                           

                          ok. As a workaroud I'm working on win/linux scripts that periodically clean tmp folder.

                           


                          When the server is running?

                           

                          luke m wrote:

                           


                          have you some reference about jboss bug/item open on this problem?

                           

                          Again, as I mentioned earlier, I am not yet sure that you are hitting this bug, since it's already fixed by default in AS-5.1.0 (unless ofcourse you changed some config). But here's the thread where this issue has been discussed in detail http://community.jboss.org/thread/2148?start=0&tstart=0

                          • 10. Re: jboss tmp folder max size
                            luke_m

                            No, when server is stopped, but at the moment I haven't again worked on it.

                             

                            I'm working on jboss 5.1.0.GA, and I have configured only some jvm memory params (i.e. Xms, Xmx, XX:MaxPermSize), nothing else.

                             

                            I'll read thread you suggested me, maybe I'll find some hints

                             

                            thanks

                            luke

                            • 11. Re: jboss tmp folder max size
                              luke_m

                              Any news about this problem?

                               

                              thanks

                              luke