Oracle® Java Micro Edition Embedded Client Customization Guide Release 1.1 E23815-01 |
|
Previous |
Next |
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:
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.
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 When you install or uninstall a component, be sure to move all the corresponding files to or from |
Table 1-1 Optional Components and Files
Component | Default | Size (KB) | Files |
---|---|---|---|
Java Database Connectivity (JDBC) |
Installed |
20 |
|
Remote Method Invocation (RMI) |
Installed |
111 |
|
XML API (JSR 280) |
Installed |
179 |
|
Security Optional Package |
Installed |
977 |
|
Web Services (JSR 172) |
Not installed |
83 |
|
Additional character sets |
Not installed |
2,413 |
|
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 |
|
Java Cryptography Extension (JCE) |
109 |
|
Java Secure Socket Extensions (JSSE) |
489 |
|
RSA-signed Jar files |
88 |
|