Re: RMI a load

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Organization Private
Message-ID <[email protected]>
On Wednesday 29 December 2004 23:33, Robert Walker wrote:

> Is there some reading/experiences someone can point me to regarding the
> load a RMI (sun's implementation specifically) server can handle.

RMI per se is fairly light-weight. Your main concerns are;
  *  Serialization size.
  *  Calls per second.
  *  Actual application work load.

Assuming that you are using fairly small argument and return type objects, and
that your application can serve the requests faster than they arrive, you
will probably find your main bottle neck in "calls per second".

This is network related, and I haven't tested this recently, but it used to be
a maximum throughput of 800 calls per seond, no matter how small method
invocations one made (with larger payloads, the max calls dropped a bit).

So, it is important to reduce the number of calls from the client to the
server. For instance, don't get a reference to a server object and then call
all the get methods on that object. Instead, obtain a value object of the
server object's content and pass that to the client, which then iterate the
get methods.
Or, introduce smart proxies, which allows the client to treat the server
object as a local 'bean' which can be called any number of times at any
speed, and the Proxy handles the transfer of the data back and forth to the
server object, for instance in larger 'chunks'.


Cheers
Niclas
--
   +------//-------------------+
  / http://www.dpml.net       /
 / http://niclas.hedhman.org /
+------//-------------------+

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.