Hitachi

uCosminexus Application Server System Design Guide


B.3 Relation between the reference relationship and the life span of objects allocated to the Explicit heap

When GC occurs, objects referenced from the objects allocated to an Explicit heap are transferred from the Java heap to the Explicit memory block. This processing is Moving the objects from the Java heap to the Explicit memory block based on a reference relation. This processing is applied recursively, and the objects until the end of the reference relationship are transferred to the Explicit memory block. Therefore, from the objects in the Explicit memory block, the fewer the references to the objects with different life spans, the more similar are the life spans of the objects in the Explicit memory block. By making the life spans identical, the objects are automatically released concurrently, and the memory efficiency improves. In other words, you must implement the applications in such a way so that the reference relationship of the objects closes between the objects with as identical life spans as possible. For example, the efficiency improves if there is no reference relationship between a management table object with a long life span and a data object used for one business with a short life span. For details on transferring the objects based on a reference relationship from the Java heap to the Explicit memory block, see 7.6.5 Moving the objects from the Java heap to the Explicit memory block based on a reference relation in the uCosminexus Application Server Expansion Guide.