tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barak Yaish <ba...@peer39.com>
Subject RE: Performace problem when invoking RMI call from Tomcat Servlet
Date Wed, 06 Feb 2008 19:36:18 GMT
The first request takes much longer (~100 ms) the than the other requests
(~25-30 ms), but still, the duration of the method running on H2 is only 5
ms.

Again, invoking the method remotely by junit gives 10 ms. Is there something
I'm doing wrong?

In addition, when accessing the servlet more than one concurrent request,
the times of invocation getting worse, while the duration of the method its
keeps being ~5 ms...

-----Original Message-----
From: Leon Rosenberg [mailto:rosenberg.leon@googlemail.com] 
Sent: Wednesday, February 06, 2008 9:25 PM
To: Tomcat Users List
Subject: Re: Performace problem when invoking RMI call from Tomcat Servlet

is it only the first request that lasts longer, or each request?

regards
leon

On Feb 6, 2008 7:01 PM, Barak Yaish <barak@peer39.com> 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.
>
>

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