A method, system, and program for facilitating non-contiguous allocation
of a chunked object within a Java heap without changing the manner in
which a Java Virtual Manager allocates objects within the heap are
provided. According to one embodiment, a chunking controller within a
broker layer detects a large object, where a large object is one that the
size of the allocation of the large object within a memory heap exceeds a
maximum contiguous free space within the Java heap. The broker layer
operates atop the Java Virtual Manager to facilitate communication and
business processes between heterogeneous systems. The chunking controller
describes the large object by an underlying array of the large object
divided into multiple pieces of a size not exceeding the maximum
contiguous free space. Then, the chunking controller enables requests
through the broker layer for allocation by the Java Virtual Manager of
each of the pieces of the large object within the Java heap, such that
the broker layer facilitates efficient allocation of large objects in the
Java heap managed by the Java Virtual Manager.