Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 53463 invoked from network); 23 Jul 2008 15:42:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 15:42:04 -0000 Received: (qmail 36126 invoked by uid 500); 23 Jul 2008 15:41:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36097 invoked by uid 500); 23 Jul 2008 15:41:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 36082 invoked by uid 99); 23 Jul 2008 15:41:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 08:41:51 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.30.80] (HELO QMTA08.emeryville.ca.mail.comcast.net) (76.96.30.80) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 15:31:17 +0000 Received: from OMTA11.emeryville.ca.mail.comcast.net ([76.96.30.36]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id tNCY1Z0010mlR8UA8TXhav; Wed, 23 Jul 2008 15:31:41 +0000 Received: from [192.168.1.121] ([68.55.225.178]) by OMTA11.emeryville.ca.mail.comcast.net with comcast id tTXg1Z0013ra03G8XTXgAL; Wed, 23 Jul 2008 15:31:41 +0000 X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=3FIe5R8PYLns60ZiE5gA:9 a=bhARIXoll-Bp1Kx74cMA:9 a=nZT5Avj72dW3ZGVi-CAG3iLdYBMA:4 a=rPt6xJ-oxjAA:10 Message-ID: <48874EDB.9000801@christopherschultz.net> Date: Wed, 23 Jul 2008 11:31:39 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat Writing to NFS References: <67B9209ADB926A4EB3BB7111DB09E98403BD3279@xmb-ams-334.emea.cisco.com> In-Reply-To: <67B9209ADB926A4EB3BB7111DB09E98403BD3279@xmb-ams-334.emea.cisco.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kevin, Kevin Daly (kedaly) wrote: | I have a Web Application running on Tomcat that writes to NFS. Since the same JVM and same standard classes are being used to write to the file, there should be no difference between your webapp and a standalone Java app. | So for example creating the same 1.5K file takes | | 14 msecs to /nfshome/transcripts/tmp.xml | | 19 msecs to /nfshome/transcripts/dialogid/tmp.xml | | 28 msecs to /nfshome/transcripts/sessionid/dialogid/tmp.xml | | 37 msecs to /nfshome/transcripts/sessionid/dialogid/day/tmp.xml 1.5k isn't very big. What if you try writing, say, 1MiB to the same file. Does the entire file write scale linearly with path length, or does this just look like noise in your timing data? | Reason I am posting to tomcat mailer is when I try the above from a | standalone Java App, I don't see this behaviour - all file writes take | about 14 msecs. I am running Tomcat Version 5.5.17 - Linux platform. | Any ideas why the above might be happening. Something else you might try is putting this code into a ServletContextListener's contextInitialized() method -- one that will run before any requests are handled. If the timing is similar to your standalone Java app, then the problem is likely to be simple thread scheduling and just a fluke that the timings appear to be related to the path length. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiHTtsACgkQ9CaO5/Lv0PC3agCgi5Ka1pZA8dtawz5y0tOGv8fE yNQAn0eOuFvlzLq6i7XATTeDh4SI0qlU =JBdv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org