Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference

Launching the SDK

Running the Device Manager

Managing Device Addresses (device-address)

Running the Emulator From the Command Line

MIDlet Options

CDC Options

Debugging and Tracing Options

Building a Project from the Command Line

Checking Prerequisites

Compiling Class Files

Preverifying Class Files

Packaging a MIDLet Suite (JAR and JAD)

Command Line Security Features

Changing the Emulator's Default Protection Domain

Signing MIDlet Suites (jadtool.exe)

Managing Certificates (MEKeyTool)

Generating Stubs (wscompile)

Running the Payment Console From the Command Line

Virtual Machine Memory Profiler (Java Heap Memory Observe Tool)

Running the Java Heap Memory Observe Tool

Viewing the Heap Snapshot

Running WMA Tool

smsreceive

cbsreceive

mmsreceive

smssend

cbssend

mmssend

Logs

JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support

Index

Viewing the Heap Snapshot

The memory monitor elements are as follows:

memory panel - At the top of the window you see a grid of rectangles representing memory blocks. This is the memory panel. The key on the top right indicates the meaning of each graphical image. For example, blocks that are completely black are at 100% utilization. Clicking a single block opens a dialog showing all the objects in that block.

loaded classes - A list of loaded classes is displayed in the lower-left corner. Choosing a class from the list causes the location of all objects in the class to be displayed in class objects list immediately to the right.

class objects - The class objects list is populated when you select a class from the list of loaded classes. Select an object to see the class details. These include the address of the object, its type, and all references to and from the object. If the object is live, the “Show path from the root” button is enabled. Clicking this button opens the Path from the Root window, which displays dependencies that prevent this object from being garbage collected.

statistics - At the bottom right of the Memory Observer window, click the Statistics button to see a table showing the information for each class. Some objects are internal to the virtual machine. For each class, you see the Object number, size of all objects in the heap, the average size of the object, the percentage of the heap used by the selected class, the percentage of objects live in the selected class, and the percentage of objects that are in the old generation.

See Virtual Machine Memory Profiler (Java Heap Memory Observe Tool) and Running the Java Heap Memory Observe Tool