You can analyze the MIDLET memory consumption in the MIDP view. The MIDP view provides information about the MIDP Java KVM (kilobyte virtual machine). The size of the KVM memory heap (heapsize) controls how much memory a MIDlet can take to run on the SDK. The KVM status is updated as a MIDlet runs.
To use the MIDP view:
Select Tools > Diagnostics. The Diagnostics window appears.
Open the MIDP view by clicking the plus sign next to it.
The current status of the KVM (RAM) storage is displayed:
Close the MIDP view by clicking the negative sign next to it.
When the MIDP view closes, the Diagnostics window displays the KVM (RAM) status summary:
For the MIDlet that is currently active on the SDK, the KVM memory status shows in bytes:
Used: Bytes of the KVM heap that are in current use.
Free: Bytes in the KVM heap that are available for use.
Total: The total size of the KVM heapsize. (To modify the heapsize, see Setting MIDlet execution options.)