So why there is a difference in the latency when invoking the method from Junit and from the servlet?
-----Original Message----- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 06, 2008 9:08 PM To: Tomcat Users List Subject: Re: Performace problem when invoking RMI call from Tomcat Servlet could be either a DNS lookup timeout, or some other network latency. Filip Barak Yaish wrote: > Hello all, > > > > I'm running a Servlet under Tomcat 5.5.23 (CentOS 5), reside on host H1. > This servlet invokes a RMI method ( f() ) on an object found on remote host > (H2). The duration of f() when running on H1 is about 5 ms. > > Somehow, the duration of the invocation in the servlet is about 30ms. > Invoking the remote method by Junit from the same machine the servlet > resides on (H1), gave result of about 10ms, which I guess include the > latency of the network itself. > > Can someone help me please with any direction how can I track down the > problem? Any configuration issue I missed? > > > > Thanks, > > > > Barak. > > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.20/1262 - Release Date: 2/6/2008 9:13 AM > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]