<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    VFS3 and symlinks
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/SkyBeam">Rainer Meier</a> in <i>JBoss Microcontainer Development</i> - <a href="http://community.jboss.org/message/549424#549424">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I am facing the same problem here and this thread seems to describe the source of my problems but it also seems that people lost interest in the discussion. Does anybody know the status of these VFS3 issues? Any fix available?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Currently I am running a stand-alone JBoss instance installed at /opt/jboss/5.1.0/. We run an application which installs itself to /opt/app/4.0/server/app (the complete JBoss configuration is deployed there). So the instlalation package creates a symlink:</p><p>/opt/jboss/5.1.0/server/app -&gt; /opt/app/current/server/app</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Note: That /opt/app/current is a symlink on its own pointing to the current app version, currently current points to the 4.0 folder at the same level:</p><p>/opt/app/current -&gt; 4.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then JBoss is launched with the "-c app" parameter.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After about 1 hour the tmp/vfs-nested.tmp/ folder is starting to grow until it fills up the whole disk (&gt;100GB).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've tried a couple of settings. For example I've tried to extend vfs.xml to include the canonical URLs as well:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>{code:xml}</p><p>&lt;entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;key&gt;file:/opt/app/4.0/server/app/deploy&lt;/key&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;&lt;inject bean="VfsNamesExceptionHandler"/&gt;&lt;/value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;key&gt;file:/opt/app/4.0/server/app/farm&lt;/key&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;&lt;inject bean="VfsNamesExceptionHandler"/&gt;&lt;/value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;key&gt;file:/opt/app/current/server/app/deploy&lt;/key&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;&lt;inject bean="VfsNamesExceptionHandler"/&gt;&lt;/value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;key&gt;file:/opt/app/current/server/app/farm&lt;/key&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;&lt;inject bean="VfsNamesExceptionHandler"/&gt;&lt;/value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/entry&gt;</p><p>{code}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But it did not help at all.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I also tried to play with JBoss properties to have it pointing directly to the physical server configuration directory by appending</p><p>"-Djboss.server.base.dir='/opt/app/current/server/' -Djboss.server.base.url='file:/opt/app/current/server/'</p><p>to the sartup options. This makes JBoss read the configuration directly from /opt/app/current/server but still no go, tmp/vfs-nested.tmp/ is still growing after a while.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Does anybody have any hints what I have to configure to make VFS work as expected in this situation?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Copying the whole /opt/app/current/server/app folder to /opt/jboss/5.1.0/server/ works as expected, so it's not an application issue. However the package of this application will maintain the files at /opt/app and therefore a simple symlink would be much easier from maintenance point of view. If the whole application needs to be copied it will have to be duplicated after each package/patch installation.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/549424#549424">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Microcontainer Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>