Skip to Content Java Solaris Communities Partners My Sun Sun Store United States Worldwide

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs

OPJ Tutorial: Storage Management

One of the benefits of OPJ is that it extends the virtues of automatic storage management to the realm of stable, secondary storage, because OPJ provides a single-level store that encompasses secondary storage. However, a naive application of primary memory storage management algorithms in an OPJ system does not work because of the performance characteristics of secondary memory. Developing online, efficient and complete algorithms for an OPJ system remains a research activity.

In the current OPJ prototype, primary memory storage management is managed exactly as in the standard Java platform.  Secondary storage management, sometimes referred to as persistent store garbage collection, is not automatic and must take place offline.It is managed by a special tool, opjgc.

As modifications are made to objects in an OPJ system, garbage will eventually accrue in the persistent store. Eventually, the persistent store can run out of space, just as the primary memory manager can run out of primary memory,  requiring a garbage collection. In OPJ this would manifest itself as a checkpoint exception. At that point, it would be necessary to shut down the application, run opjgc and then resume the application.

Another reason for running opjgc periodically is to minimize fragmentation in the persistent store as this can affect application performance due to the increased data traffic.


PREV: EvolutionNEXT: Problems with the transient modifier, Tutorial Home Page
Last changed: Oct 15th 1999

Questions and comments to forest-info@sunlabs.com
Would you recommend this Sun site to a friend or colleague?
Contact About Sun News Employment Privacy Terms of Use Trademarks Copyright 1994-2008 Sun Microsystems, Inc.