You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nicolas Dordet <do...@gmail.com> on 2011/10/23 10:56:07 UTC

Re: .nfsxxx file created when undeploying applications

Hi,

I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS
partition. When doing undeploy of an application, some .nfsxx files are
created et dot no allow suppression of repertories.

A similar bug for JARs has been opened but not fixed (
https://issues.apache.org/bugzilla/show_bug.cgi?id=39616) and It said that
is not a tomcat bug.
The workaround (antiResourceLocking set at true) is not acceptable since
there are obvious side effects (significantly impact startup time of
applications, the disabling of JSP reloading in a running server,
applications that are outside the appBase for the Host will cause the
application to be *deleted* on Tomcat shutdown).

It seems that one process of tomcat still have files opened when trying to
remove files and that's why .nfsxxx files are created. So in my point of
view it is a Tomcat bug, all processes should close files before removing it
on NFS.

Have you got any idea of what can I do to fix this problem? Did I open a new
bug?

Regards,
Nico

Re: .nfsxxx file created when undeploying applications

Posted by Nicolas Dordet <do...@gmail.com>.
It's for a client too and I don't have acces to the server or applications
so I first think it comes from Tomcat and now I'm trying to understand
what's happening and what is possible to do.

Thanks

2011/10/23 Hassan Schroeder <ha...@gmail.com>

> On Sun, Oct 23, 2011 at 1:56 AM, Nicolas Dordet <do...@gmail.com>
> wrote:
>
> > I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS
> > partition. When doing undeploy of an application, some .nfsxx files are
> > created et dot no allow suppression of repertories.
>
> > It seems that one process of tomcat still have files opened when trying
> to
> > remove files and that's why .nfsxxx files are created. So in my point of
> > view it is a Tomcat bug, all processes should close files before removing
> it
> > on NFS.
>
> Wow, I had a client with the exact same problem and -- oh, wait, it
> wasn't Tomcat, it was OC4J  :-)
>
> And IIRC those files are artifacts that appear for reasons having
> nothing to do with undeployment; it's only that undeployment fails
> and makes those artifacts' presence obvious.
>
> The fix is *not running an app server off an NFS partition*.  Really.
>
> "Doctor, it hurts when I hit myself in the head."
>
> "Don't do that."
>
> YMMV,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: .nfsxxx file created when undeploying applications

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sun, Oct 23, 2011 at 1:56 AM, Nicolas Dordet <do...@gmail.com> wrote:

> I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS
> partition. When doing undeploy of an application, some .nfsxx files are
> created et dot no allow suppression of repertories.

> It seems that one process of tomcat still have files opened when trying to
> remove files and that's why .nfsxxx files are created. So in my point of
> view it is a Tomcat bug, all processes should close files before removing it
> on NFS.

Wow, I had a client with the exact same problem and -- oh, wait, it
wasn't Tomcat, it was OC4J  :-)

And IIRC those files are artifacts that appear for reasons having
nothing to do with undeployment; it's only that undeployment fails
and makes those artifacts' presence obvious.

The fix is *not running an app server off an NFS partition*.  Really.

"Doctor, it hurts when I hit myself in the head."

"Don't do that."

YMMV,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: .nfsxxx file created when undeploying applications

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/10/23 Nicolas Dordet <do...@gmail.com>:
> Hi,
>
> I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS
> partition. When doing undeploy of an application, some .nfsxx files are
> created et dot no allow suppression of repertories.
>
> A similar bug for JARs has been opened but not fixed (
> https://issues.apache.org/bugzilla/show_bug.cgi?id=39616) and It said that
> is not a tomcat bug.
> The workaround (antiResourceLocking set at true) is not acceptable since
> there are obvious side effects (significantly impact startup time of
> applications, the disabling of JSP reloading in a running server,
> applications that are outside the appBase for the Host will cause the
> application to be *deleted* on Tomcat shutdown).
>
> It seems that one process of tomcat still have files opened when trying to
> remove files and that's why .nfsxxx files are created. So in my point of
> view it is a Tomcat bug, all processes should close files before removing it
> on NFS.
>
> Have you got any idea of what can I do to fix this problem? Did I open a new
> bug?

There are a lot of known issues in 5.5.x that will never be fixed. It
is near its end of life.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org