Skip Headers
Oracle® Java Micro Edition Embedded Client Customization Guide
Release 1.1
E23815-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

1 Footprints and Optional Components

This chapter describes static and dynamic footprints, and how the static footprint is affected by the presence of optional components.

This chapter includes these topics:

Static and Dynamic Memory Footprints

The static footprint is the amount of nonvolatile memory required to hold the Oracle Java Micro Edition Embedded Client code. The dynamic memory footprint is the maximum RAM consumed during execution, which is highly dependent on application and device user behavior. Profiling with real applications under real work loads is best way to estimate RAM requirements and observe the effects of memory/performance tradeoffs. The Oracle Java Micro Edition Embedded Client Developer's Guide describes profiling.

You can adjust the amount of dynamic memory used by the compiler, as described in Dynamic Compiler Policies. You can uninstall optional components to reduce static memory footprint, or add optional components, which has the side effect of increasing the static footprint as described in Installing and Removing Optional Components.

Installing and Removing Optional Components

The directory ojec1.1/lib contains optional components that are installed. The virtual machine loads components in this directory when it starts. The directory ojec1.1/extras/lib contains optional components that are not installed. If you move the files corresponding to a component from one directory to the other, you install or uninstall the component.

The cvm -version command lists the installed components.

Table 1-1 lists the optional components, if they are installed by default, their sizes, and the files that must be moved to install or uninstall them.


Note:

Do not delete or move any other file in ojec1.1/lib.

When you install or uninstall a component, be sure to move all the corresponding files to or from ojec1.1/lib.


Table 1-1 Optional Components and Files

Component Default Size (KB) Files

Java Database Connectivity (JDBC)

Installed

20

jdbc.jar

Remote Method Invocation (RMI)

Installed

111

rmi.jar

XML API (JSR 280)

Installed

179

jsr280.jar

jsr280_xmlparser.jar

abstractions.jar

abstractions_agent.jar

Security Optional Package

Installed

977

ext/sunjce_provider.jar

jaas.jar

jce.jar

jsse_unsigned.jar

jsse-cdc.jar

secop_cmn.jar

sunrsasign.jar

Web Services (JSR 172)

Not installed

83

jsr172.jar

jsr172_xmlparser.jar

Additional character sets

Not installed

2,413

converters.jar



Note:

XML API and Web Services are mutually exclusive. Install either or neither but not both.


Instead of installing or uninstalling the entire Security optional package, you can change subcomponents as shown in Table 1-2.

Table 1-2 Removable Security Optional Package Subcomponents

Subcomponent Size (KB) Remove from lib/

Java Authentication and Authorization Service (JAAS)

91

jaas.jar

Java Cryptography Extension (JCE)

109

ext/sunjce_provider.jar

Java Secure Socket Extensions (JSSE)

489

jsse_unsigned.jar

jsse-cdc.jar

RSA-signed Jar files

88

sunrsasign.jar