Chapter 18. Selected further topics

  • Distributed garbage collection—Logging—Debugging—Testing RMI in a single machine—Performance—RMI and JDK versions—Exercises

In this chapter

In this chapter we discuss some selected further topics in RMI: DGC, logging, debugging, performance, efficiency, and the usability and interoperability of RMI under different versions of Java and JDK.

Distributed garbage collection

You really don't need to know much about distributed garbage collection (DGC) in RMI, except that it exists. The interfaces and classes defined in the package java.rmi.dgc are used by the DGC subsystem, not by developers.


Consider a client which acquires a remote reference to an RMI server. As we saw in §1.5, a remote reference is initially ...

Get java.rmi: The Remote Method Invocation Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.