Bad RMI Performance

T

Tokka

Hi!

I just built a RMI Server and Client. It works very good on a single
machine.

Now i would like to run the server and 2 clients on differet machines.
This works too.
But after Client 1 has calld a remote Method, it seems that client2
need to reconnect to the server. The result is a bad perfomance. For me
it is not ok, to wait 5 to 8 seconds before i get a return from the
remote method.

The remote method returns me only an ID not more or less.


Do you have any hints for me??

Thanks
Tokka aka Claus-Martin


Excuse me for my bad english ;(
 
R

Roedy Green

But after Client 1 has calld a remote Method, it seems that client2
need to reconnect to the server. The result is a bad perfomance. For me
it is not ok, to wait 5 to 8 seconds before i get a return from the
remote method.

get a packet sniffer and have a look what is happening. Are machines
just waiting or transmitting great hunks of data?

http://mindprod.com/jgloss/sniffer.html

Also try putting all three machines on the same LAN to rule out router
problems and slow Internet connections.
 
E

E.J. Pitt

Do you have any hints for me??

This is almost certainly a slow/misconfigured DNS issue rather than RMI.
Try pinging the server host from the client host and see how long that
takes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Java RMI questions and MyEclipse 8
RMI & connection refused 10
RMI in java 15
How to remotely construct a remote object with RMI 14
RMI: how to get client info? 4
RMI questions 1
Simple RMI 0
RMI, Sockets and Cleanup 1

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top