Operating Systems: i5/OS
             Personalize the table of contents and search results

This topic applies only on the i5/OS operating system.

 

Running classes using JVM direct execution

 

You can configure an application server to run classes directly instead of using the just-in-time (JIT) mode.

 

Overview

A class loader loads WebSphere Application Server components such as servlets, JavaServer Pages, and enterprise beans. These components do not run classes directly. The direct execution (DE) capabilities of the i5/OS JVM can be used to run classes directly.

When WebSphere Application Server component code is running, Java program (JVAPGM) objects are not used. Classes that a JVM class loader or the WebSphere Application Server extensions class loader load use DE capabilities and JVAPGM objects. Java caching enables these components to use permanent JVAPGM objects and DE capabilities, even though most applications do not require this functionality.

By default, application servers run with the java.compiler Java system property set to jitc_de. This value indicates that JIT compilation is done for any Java object for which a JVAPGM object does not exist (or cannot be used, as is the case for WebSphere Application Server application class loaders). This setting provides the best overall performance.

You can configure application servers to use direct execution instead of JIT compilation. Doing so results in longer startup times, because creating a JVAPGM takes longer than creating JIT stubs. Because of performance improvements in the JIT run time, performance of direct execution even after JVAPGM creation is probably slower.

To configure an application server to use direct execution for all classes:

 

Procedure

  1. In the administrative console, click Servers > Application Servers > server_name.

  2. Under Server Infrastructure, click Java and Process Management > Process Definition > process_name > Java Virtual Machine.

  3. Under Additional Properties, click Custom Properties > New.

  4. Specify one of the following for the Name and Value of the new custom property:

  5. Click OK and then click Save to save the configuration changes.

  6. Restart the application server.

 

Results

You can now use JVM direct execution to run classes.


}

 

Related concepts


Class loaders

 

Related tasks


Caching classes previously loaded by a user class loader
Configuring the JVM