title: Huge amount of JAR files in jboss/server/web/tmp/vfs-nested.tmp directory
body: <p>Sometimes we have huge amount of JAR files in  <strong>jboss/server/web/tmp/vfs-nested.tmp</strong>  directory.<br>
  For example today this directory contained over 350k jar files.<br>
  But on other hosts there are only 2 jar files in this directory.<br>
  What can be the root cause of this problem?</p>
  
  <p>We use JBoss 5.1</p>
  
  <p><strong>UPDATE:</strong><br>
  I found following information in release notes for JBoss 5.1.0.GA:</p>
  
  <blockquote>
    <p>JBoss VFS provides a set of different
    switches to control it's internal
    behavior. JBoss AS sets
    jboss.vfs.forceCopy=true by default.
    To see all the provided VFS flags
    check out the code of the
    VFSUtils.java class.</p>
  </blockquote>
  
  <p>So I do not understand what should I set?<br>
  Should I set <strong>-Djboss.vfs.forceNoCopy=true</strong> or <strong>-Djboss.vfs.forceCopy=false</strong>?<br>
  Or should I set both of them?</p>
  
  <p><strong>UPDATE 1:</strong><br>
  I have read entire thread <a href="http://community.jboss.org/thread/2148?start=0&amp;tstart=0" rel="noreferrer">http://community.jboss.org/thread/2148?start=0&amp;tstart=0</a>
  and now I am not shure that I should change either jboss.vfs.forceCopy or jboss.vfs.forceNoCopy.<br>
  According to this thread I will have OutOfMemory error instead of huge amount of files in tmp dir.  </p>