tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Daly (kedaly)" <ked...@cisco.com>
Subject Tomcat Writing to NFS
Date Wed, 23 Jul 2008 14:31:15 GMT
Hi,
 
I have a Web Application running on Tomcat that writes to NFS. the code
doing the write is:
String transcriptPath  = .......

StringBuffer buffer = ............

BufferedWriter buffWriter = new BufferedWriter(new
FileWriter(transcriptPath));

buffWriter.write(buffer.toString());

buffWriter.close(); 

I am noticing that the longer the transcriptPath, the longer the file
write takes.

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

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. 

- Kevin.

 

 

 

 

 

 

 

 

 
 	
Kevin Daly
Software Engineer
IP Communications Business Unit

kedaly@cisco.com
Phone :+35391384651



Block 10
Parkmore
Galway
Ireland
Ireland
www.cisco.com/

 	
 	
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.	
 


 

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message