logo       

Re: [ Peter Jones - JavaSoft East ] [ Joseph Shraibman ] how do I debug dgc: msg#00023

java.sun.rmi

Subject: Re: [ Peter Jones - JavaSoft East ] [ Joseph Shraibman ] how do I debug dgc?

> >if force=false, the
> >unexport only occurs if there are currently no incoming remote calls
> >in progress to the remote object; if force=true, the unexport occurs
> >regardless of whether or not there are remote calls in progress.

> I guess that the server socket is shutdown and the active threads for calls
> comming into the VM are dealt with in some reasonable way. Since the
> activities of that part of the system are hidden away in sun.rmi... code, it's
> not clear what the specifics for threads are.

In Sun's current J2SE RMI (JRMP) implementations, the server socket is
not closed as one might expect:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0311&L=rmi-users&P=731

but regardless of that, the implementation is careful to maintain a
non-daemon thread (which is named "RMI Reaper") to keep the VM alive
if and only if there are exported remote objects or incoming remote
calls still in progress (such as to objects that had been exported,
but were unexported with force=true).

-- Peter

===========================================================================
To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body
of the message "signoff RMI-USERS". For general help, send email to
listserv@xxxxxxxxxxxx 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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise