tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: Performace problem when invoking RMI call from Tomcat Servlet
Date Thu, 07 Feb 2008 03:31:32 GMT
cause you probably start the JVM running junit with different start up 
params than the one running the servlet container

filip

Barak Yaish wrote:
> 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:devlists@hanik.com] 
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
>   


---------------------------------------------------------------------
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


Mime
View raw message