2 Replies Latest reply on Jun 12, 2015 4:19 PM by shwelzen

    JBoss 7.1.1 - Deleting temporary VFS files

    shwelzen

      Hi,

       

      Can someone please help with the complete steps to delete the temporary files in JBoss 7.1.1?

      Directory: <<JBoss_Home>>/standalone/tmp/vfs

       

      I tried using the following options in <<JBoss_Home>>/bin/standalone.conf. But, it does not seem to evict any files that are 24 minutes older.

      -Djboss.vfs.cache=org.jboss.virtual.plugins.cache.IterableTimedVFSCache -Djboss.vfs.cache.TimedPolicyCaching.lifetime=1440

       

      Thanks,
      Sheldon

        • 1. Re: JBoss 7.1.1 - Deleting temporary VFS files
          ctomc

          Properties and configuration options you are mentioning no longer apply to AS7.

          that was vfs 2.x thing, that was part of jboss 5&6

          • 2. Re: JBoss 7.1.1 - Deleting temporary VFS files
            shwelzen

            So, what are the workarounds available?

             

            Is scheduling a cron job that takes care of deleting the vfs files the only option?

            I also see that it affects the number of open files as it shows up in lsof -p <<JBoss Process ID>>

             

            Also, is there a JBoss setting for the regular log files (server.log, access logs)?

            By default, JBoss does not truncate the logs by either disk space / time. It creates a new file though every day.