1 2 Previous Next 28 Replies Latest reply on Jul 30, 2009 2:35 AM by mariuszs

    VFS caching still not working in AS 5.0.1.GA

      Hello. I recently migrated a webapp of ours to a new server. In the process, I decided to install JBoss5. I made the appropriate changes to the jboss-specific conf files versus the 4.x ones.

      We deploy our system by simply copying the ear to the deploy/ directory. The system works, the tmp/vfs-nested.tmp directory increases in size. Sometimes the size remains fairly constant, other times it will quickly increase tenfold.

      Within a few hours there are 731 redundant copies of jars. Multiply this by the number of jars/wars in our project and it doesn't take long to fill up the 8GB partition.

      The JIRA link is https://jira.jboss.org/jira/browse/JBAS-6673 I was told to post some log info, but I'm not sure what to look for. Are there any key phrases I should grep for?

      Thanks everyone.

        • 1. Re: VFS caching still not working in AS 5.0.1.GA

          by the way, I'm having to manually delete everything from the tmp/vfs-nested.tmp directory every 15 minutes or so now. Any sort of work-around at least would be great!

          • 2. Re: VFS caching still not working in AS 5.0.1.GA
            alesj

            I guess you're not using VFS directly in your code?

            • 3. Re: VFS caching still not working in AS 5.0.1.GA
              alesj

               

              "pgib1" wrote:
              by the way, I'm having to manually delete everything from the tmp/vfs-nested.tmp directory every 15 minutes or so now. Any sort of work-around at least would be great!

              We should find the problem that causes this multiple copies creation.
              If all things go OK, we do proper cleanup after the app was undeployed.
              Hence no need for any hack work-around.


              • 4. Re: VFS caching still not working in AS 5.0.1.GA

                 

                "alesj" wrote:
                "pgib1" wrote:
                by the way, I'm having to manually delete everything from the tmp/vfs-nested.tmp directory every 15 minutes or so now. Any sort of work-around at least would be great!

                We should find the problem that causes this multiple copies creation.
                If all things go OK, we do proper cleanup after the app was undeployed.
                Hence no need for any hack work-around.


                The problem is: I start JBoss and perform no deployments (other than JBoss auto-deploying deploy/ when it starts up) after about an hour my 8GB partition for JBoss is full with 700+ redundant copies and then things start crashing

                The solution of undeploying and redeploying my webapp every hour is not a good solution.

                • 5. Re: VFS caching still not working in AS 5.0.1.GA

                   

                  "alesj" wrote:
                  I guess you're not using VFS directly in your code?


                  Ales- Correct. I am not using VFS directly, only the container (JBoss) is using it directly.

                  • 6. Re: VFS caching still not working in AS 5.0.1.GA

                     

                    "pgib1" wrote:
                    "alesj" wrote:

                    If all things go OK, we do proper cleanup after the app was undeployed.
                    Hence no need for any hack work-around.


                    The solution of undeploying and redeploying my webapp every hour is not a good solution.


                    I reread your post. I misunderstood you the first time. I guess I need hints on providing proper information on debugging this issue. VFS is new to me, and our Logs are pretty verbose. Any ideas on what to grep for?

                    Thanks again!

                    • 7. Re: VFS caching still not working in AS 5.0.1.GA

                      I just realized that JBOSS_HOME is missing in the environment of the Jboss user. I added JBOSS_HOME, now it seems that the directory is stable.

                      My guess is that the job which marks files as invalid is not considering a missing JBOSS_HOME envvar. It must be failing and then then assuming it failed due to expired files.

                      Even though it was a configuration issue, it seems the AS could be more fault-tolerant by attempting to resolve the vfs-nested.tmp relatively if the JBOSS_HOME-rooted search fails.

                      • 8. Re: VFS caching still not working in AS 5.0.1.GA
                        jaikiran

                         

                        "pgib1" wrote:
                        I just realized that JBOSS_HOME is missing in the environment of the Jboss user. I added JBOSS_HOME, now it seems that the directory is stable.
                        ...
                        Even though it was a configuration issue, it seems the AS could be more fault-tolerant by attempting to resolve the vfs-nested.tmp relatively if the JBOSS_HOME-rooted search fails.


                        JBOSS_HOME is not mandatory. Even without setting that property, the system should work fine.

                        • 9. Re: VFS caching still not working in AS 5.0.1.GA
                          dimitris

                          Isn't JBOSS_HOME set by the scripts, if not set already?

                          run.bat
                          ...
                          if "x%JBOSS_HOME%" == "x" (
                           set "JBOSS_HOME=%CD%"
                          )
                          ...
                          run.sh
                          ...
                          # For Cygwin, ensure paths are in UNIX format before anything is touched
                          if $cygwin ; then
                           [ -n "$JBOSS_HOME" ] &&
                           JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"`
                           [ -n "$JAVA_HOME" ] &&
                           JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
                           [ -n "$JAVAC_JAR" ] &&
                           JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"`
                          fi
                          
                          # Setup JBOSS_HOME
                          if [ "x$JBOSS_HOME" = "x" ]; then
                           # get the full path (without any relative bits)
                           JBOSS_HOME=`cd $DIRNAME/..; pwd`
                          fi
                          export JBOSS_HOME
                          ...
                          


                          • 10. Re: VFS caching still not working in AS 5.0.1.GA

                            I added a debug echo after the 'export JBOSS_HOME'. The resolved JBOSS_HOME is correct. I wonder why setting it explicitly makes any difference.

                            • 11. Re: VFS caching still not working in AS 5.0.1.GA
                              jaikiran

                               

                              "pgib1" wrote:
                              I added a debug echo after the 'export JBOSS_HOME'. The resolved JBOSS_HOME is correct. I wonder why setting it explicitly makes any difference.


                              How did you verify that by setting this, the issue was gone? Just curious :)


                              • 12. Re: VFS caching still not working in AS 5.0.1.GA
                                dimitris

                                 

                                "pgib1" wrote:
                                I added a debug echo after the 'export JBOSS_HOME'. The resolved JBOSS_HOME is correct. I wonder why setting it explicitly makes any difference.

                                Because, if you set it explicitly, it won't get redefined in the script.

                                Setting a wrong JBOSS_HOME is ... wrong!

                                It's better to not set anything, and let the script do it.

                                • 13. Re: VFS caching still not working in AS 5.0.1.GA

                                   

                                  "dimitris@jboss.org" wrote:
                                  "pgib1" wrote:
                                  I added a debug echo after the 'export JBOSS_HOME'. The resolved JBOSS_HOME is correct. I wonder why setting it explicitly makes any difference.

                                  Because, if you set it explicitly, it won't get redefined in the script.

                                  Setting a wrong JBOSS_HOME is ... wrong!

                                  It's better to not set anything, and let the script do it.


                                  I'm afraid you misunderstood me.
                                  The VFS-tmp error occurs when I omit JBOSS_HOME.
                                  The error does not occur when I include JBOSS_HOME as an environment variable.

                                  However, when I look at the JBOSS_HOME value generated by run.sh, this value is the exact same as the value I manually specified in order to get AS to work properly.

                                  • 14. Re: VFS caching still not working in AS 5.0.1.GA

                                     

                                    "jaikiran" wrote:

                                    How did you verify that by setting this, the issue was gone? Just curious :)


                                    Yes, the problem would occur within a minute or so after hitting webpages hosted by JBoss-web. Finally, I decided to set JBOSS_HOME. Now the server has been running for almost 20 hours without any duplicates. I may try restarting the server later without JBOSS_HOME and see if the problem reoccurs (I expect it to).



                                    1 2 Previous Next