Collection Contents Index Using computed columns with Java classes CHAPTER 18.  Data Access Using JDBC pdf/chap17.pdf

User's Guide
   PART 3. Java in the Database
     CHAPTER 17. Using Java in the Database       

Configuring memory for Java


This section describes the memory requirements for running Java in the database and how to set up your server to meet those requirements.

Ensure that you allow extra cache for the Java VM    
The Java VM requires a significant amount of cache. By default, a database server takes 2 Mb of cache when it is started. You should specify extra cache using the -c command-line option when you wish to use Java in the database.

In many cases, a cache size of 8 Mb is sufficient.

Database and connection-level requirements 

The Java VM uses memory on both a per-database and on a per-connection basis.

Top of page  How memory is used

Java in the database requires memory for several purposes:

Managing memory 

You can control memory use in the following ways:

Starting and stopping the VM 

In addition to setting memory parameters for Java, you can unload the VM when Java is not in use using the STOP JAVA statement. This statement can be executed only by a user with DBA authority. The syntax is simply

STOP JAVA

The VM is loaded whenever a Java operation is carried out. If you wish to explicitly load it in readiness for carrying out Java operations, you can do so by executing the following statement:

START JAVA
Top of page  

Collection Contents Index Using computed columns with Java classes CHAPTER 18.  Data Access Using JDBC pdf/chap17.pdf