logo       

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

java.sun.rmi

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

>> >That doesn't help me. I have no threads of my own running, so only rmi
>> >is keeping the jvm alive.
>>
>> The thread dump will show you which threads are running. That is my point.
>> If you've already done this, and know that it is only the RMI thread, then,
>> you need to also check that you have unexported the object.
>
>Well, explicit unexporting is an alternative to letting a remote
>object be unexported by (D)GC, not a prerequisite for it.

Yes, but that also is wrapped up in whether you have a local reference to the
exported object as well, which is another can of worms to dig through.

>> If you unexport
>> with false, then all remote references must also be dropped. If you
unexport
>> with true, then all remote references will be dropped automatically.
>
>That description of the "force" boolean parameter to the unexport
>operation isn't right: the distinction is that 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 used the wrong words. Thanks for the explicitness of your correction Peter.
This is mostly what the javadocs for UnicastRemoteObject.unexport says. I
chose 'dropped' as a simplification, but, reading my words again, I can see
that one might suppose that the exported objects endpoint and the remote
reference might somehow have a discussion that would cause the reference to be
'dropped'.

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.

-----
gregg@xxxxxxxxxxxx (Cyte Technologies Inc)

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