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:[EMAIL PROTECTED] 
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 <[EMAIL PROTECTED]> 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: [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]

Reply via email to