Garbage Collection Techniques

Garbage Collection designates a set of techniques used by Java VM for automatic memory reclamation those familiar with these techniques can skip this section. Garbage Collection generally consists of three steps 1 mark, 2 collect, and 3 clean-up. The mark step finds the objects that need to be retained. The collect step removes unused objects. The clean-up step returns the reclaimed memory to the pool of free memory i.e., return to a usable state . The OracleJVM memory manager uses a set of GC...

Java Memory Areas

In OracleJVM, the states of Java objects are preserved in special data structures called object memories. There are several object memory types, including Newspace, Oldspace, Runspace, Stackspace, and Unscanned Stackspace. Each object memory type is used for a specific need. Why would you care Well, although the default sizes of the various memory areas, described as follows, suffice for most applications, some Java applications or frameworks running in the database might have extreme memory...

Creating or Loading Java in the Database

There are several ways to create or upload Java into OracleJVM-managed structures. Java sources, classes, and resources can be created interactively during a SQL Plus session, uploaded from files residing on your development client machine, uploaded from files residing on the server machine same machine as the database instance , or created from database storage structures such as CLOB BLO BFILE. First of all, the session must have the following database privileges to load classes CREATE...