Veldema R, Philippsen M (2003)
Publication Language: English
Publication Type: Conference contribution, Original article
Publication year: 2003
Publisher: IEEE
Pages Range: 127-136
Conference Proceedings Title: Proc. 5th IEEE Conf. on Cluster Computing
ISBN: 0-7695-2066-9
URI: http://www2.informatik.uni-erlangen.de/publication/download/cc2003.pdf
DOI: 10.1109/CLUSTR.2003.1253308
We further increase the efficiency of Java RMI programs. Where other optimizing re-implementations of RMI use pre-processors to create stubs and skeletons and to create class specific serializers and deserializers, this paper demonstrates that with transformations based on compile time analysis, an additional 18% performance gain can be achieved over class specific serializers alone for a simple scientific application. A novel and RMI-specific version of static heap analysis is used to derive information about objects that are passed as arguments of remote method invocations. This knowledge of objects and their interrelations is used for three optimizations. First, dynamic introspection and/or (recursive) dynamic invocations of object specific serializers is slow. With knowledge from our heap analysis, the marshaling of graphs of argument objects can be inlined at the call site. Hence, many method table lookups and skeleton indirections of previous approaches can be avoided and less protocol information is sent over the network. Secondly, because object graphs may be passed as RMI arguments, cyclic references need to be detected. With our heap analysis, we can detect if there is no potential for cycles and hence, cycle detection code can be left out of the serialization and marshaling codes. Finally, object arguments to remote methods cause object creation and garbage collection. Heap analysis and an RMI-specific version of escape analysis allows the reuse of object graphs created in earlier remote invocations.
APA:
Veldema, R., & Philippsen, M. (2003). Compiler Optimized Remote Method Invocation. In Proc. 5th IEEE Conf. on Cluster Computing (pp. 127-136). Hong Kong, CN: IEEE.
MLA:
Veldema, Ronald, and Michael Philippsen. "Compiler Optimized Remote Method Invocation." Proceedings of the 5th IEEE Conf. on Cluster Computing (CC 2003), Hong Kong IEEE, 2003. 127-136.
BibTeX: Download