Re: ServerRef with persistent ObjID

Peter Jones - JavaSoft East <[email protected]> Tue, 28 Feb 2006 20:44:24 -0500
Newsgroups gmane.comp.java.sun.rmi
Message-ID <20060301014423.GG4796@east>
> On the JERI front, we did perform a test replacing JRMP with JERI and
> one problem we came across is that JERI seemed to use twice as many
> threads for RMI calls. While we hoped that the dedicated in/out threads
> would be mitigated by fewer DGC threads, we still saw our application
> create many more threads with JERI than with JRMP. There is probably
> some JERI tuning we are not aware of that would have helped this but
> threads are pretty precious to our application as we connect to many
> agents. This doesn't mean that we wont switch to JERI but rather that we
> need to wait until we can give it more of the attention it deserves.

There is some discussion of the thread usage of JERI with the starter
kit's implementation of the standard connection-based transport
providers here, including the difference when using NIO-based sockets
or enabling the (non-default) NIO implemention mode:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0504&L=jini-users&P=33490

Also, there are the following two RFEs related to reducing thread
counts with the JERI/connection-based implementation:

        http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6313649
        http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6291824

which are under consideration for the next starter kit release--
especially the second one, which is the analogue of the most
significent component of this JRMP RFE:

        http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5059346

which is fixed in the recent JDK 6 beta release.

-- Peter


> -----Original Message-----
> From: Bob Scheifler [mailto:[email protected]]
> Sent: Wednesday, February 15, 2006 12:00 PM
> To: Robert DiFalco
> Cc: [email protected]
> Subject: Re: ServerRef with persistent ObjID
>
> > I need to figure out how
> > to create one of my services (essentially my server-service) with an
> > ObjID that is consistent over restarts of the JVM.
>
> There is no standard way to do this for JRMP.  (It can easily be done
> with JERI.)  For a non-standard JRMP way, you can look at the
> com.sun.jini.phoenix.SunJrmpExporter class in the latest Jini Technology
> Starter Kit (http://starterkit.jini.org).
>
> - Bob
>

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