harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FaeLLe <mrbillcollec...@gmail.com>
Subject Fwd: Java Distributed Garbage Collection in RMI
Date Wed, 23 Aug 2006 01:47:56 GMT
Forwarding message to Harmony list as it was rejected previously as spam
probably due to ZIP attachement and links in body.

Removing zip attachement and links.

---------- Forwarded message ----------
From: FaeLLe <mrbillcollector@gmail.com>
Date: Aug 23, 2006 2:34 AM
Subject: Java Distributed Garbage Collection in RMI
To: "Morozova, Nadezhda" <nadezhda.morozova@intel.com>
Cc: harmony-dev@incubator.apache.org

Hello Nadezha,

Been experimenting with the DGC interface of Java RMI and as far as I have
understood there is no way to make a remote object be garbage collected
other than invoke System.gc() and let it be collected over time.

I however notice that the internal calls can be tracked by setting the
following system properties,

        System.setProperty("java.rmi.server.logCalls", "true");
        System.setProperty ("sun.rmi.dgc.logLevel", "VERBOSE");
        System.setProperty("sun.rmi.dgc.logCalls", "true");

What I was wondering is if you had any suggestions on how to actually ensure
that the remote object has been collected. I tried placing
System.out.println() statements in the finalize() and unreferenced() methods
(the client also implements the Unreferenced interface) however it seems to
generate no such output.

Neither do the internal rmi logs that should be displayed in output in
verbose mode show any indication of this happening.

I have attached the code if you would be willing to examine it and let me
know what I am not doing correctly. Ps. I have included them in zip format
and as Java sources whichever is convinient for you.

TestDistributedGarbageCollection.java is the RMI server and the
EchoClient.java is the RMI client.


- Vikram Mohan

On 7/25/06, Morozova, Nadezhda < nadezhda.morozova@intel.com> wrote:
>  Dear Virkam,
> Thanks for your interest. I'd be happy to answer your questions, but I was
> wondering whether we can discuss things on the mailing list? Private
> discussion seems to be against the community spirit, and then, the questions
> you ask might be relevant to other community members J
> *Best regards, *
> *Nadya Morozova,*
>   ------------------------------
> *From:* FaeLLe [mailto:mrbillcollector@gmail.com]
> *Sent:* Tuesday, July 25, 2006 2:27 PM
> *To:* Morozova, Nadezhda
> *Subject:* Java Garbage Collection
> Hello Mr. Morozova,
> First of all let me apologise for writing to you without knowning you or
> having talked to you before.
> I obtained your email address from the Harmony mailing lists and noticed
> the document you released on the Harmony mailing list about plugging in a
> custom GC implementation.
> The reason I am writing to you is that at the moment I am undergoing my
> Msc project at the University of Kent with my supervisor being Dr. Richard
> Jones and am working on an implementation of Birrell's distributed reference
> listing algorithm.
> We have worked on a formalization of the algorithm (TOPLAS paper<http://www.cs.kent.ac.uk/pubs/2005/1993/><http://www.cs.kent.ac.uk/pubs/2005/1993/>)
> and my task is the implementation of it.
> But I am confused as to what approach I would undertake towards the
> implementation as to what part of the current Java code holds the current
> algorithm etc. Is there any paper or resource you could point me to for
> garbage collector implementation.
> Your document talks about implementing a GC written in C but I was
> wondering would it not be possible for me to merely edit the JDK source code
> under the JRL license for academic purposes and rewrite my own code merely
> editing the method content.
> Your cooperation in this matter would be most appreciated.
> Yours Sincierly,
> - Vikram Mohan
>   Msc. Distributed Systems and Networks
>   University of Kent
>   Canterbury, Kent
>   UK
>   +44-(0)77-37592552

View raw message