Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java app server intermittently throws FileNotFoundException on files found on NFS...

 
Teddy Wang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've got an application that runs on Weblogic 9.2 which intermittently throws FileNotFoundException's on files that definitely exist on an NFS mounted NAS filesystem.

Here's an example of a FileNotFoundException from the application logs:



Doing a simple dir on that server shows the file as being there and having a timestamp of Sep 16 15:33:



I�m also able to cat the file without issue.

No errors seen in /var/log/messages for the time that the error was thrown.

If anybody has any ideas as to how to fix this, it'd be greatly appreciated.
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever I have seen strange behaviour which only occurs on NFS it has been due to a bug on Linux in NFS.
I suggest you ensure you have the latest patches for NFS and check your NFS mount settings.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18164
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NFS does have its irritations. I believe there's some RPC stuff that you can start that helps. Also, I think NFS4 is supposed to make a lot of things faster and more reliable.
 
Teddy Wang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the /etc/mtab for the NFS mount:

nas111:/pfs_0111/mycompprdapps/ofc_sitecachea /apps/ofcsctp1/sitecacheA nfs rw,noatime,nodiratime,bg,hard,rsize=8192,wsize=8192,timeo=14,intr,addr=111.111.111.111 0 0
[ December 30, 2008: Message edited by: Teddy Wang ]
 
Teddy Wang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out. Freemarker is actually throwing the wrong exception due to non-thread-safe code. The issue was due to Freemarker's cache implementation. When we set the max-soft/hard size of their default cache from a value to 0, the issue went away.

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic