Skip Headers
Oracle® Java Micro Edition Software Development Kit Developer's Guide
Release 3.2 for Eclipse on Windows
  Go To Table Of Contents
Go To Index


8 Network Monitoring

MIDP applications, at a minimum, are capable of HTTP network connections, but many other types of network connections are also possible. The network monitor provides a convenient way to see the information your application is sending and receiving on the network. This is helpful if you are debugging network interactions or looking for ways to optimize network traffic.


Network monitoring supports only the HTTP and HTTPS protocols.

Networking monitoring works for emulators only (it is not supported for real devices).

8.1 Monitor Network Traffic

Follow these steps to activate the network activity for an application.

  1. Run > Network Monitor or right click Project, select Profile As > Network Monitor

  2. Start your application.

    When the application makes any type of network connection, information about the connection is captured and displayed in the Network Monitor tab.

    The top frame displays a list of messages. Click a message to display its details in the bottom frame.

    In the Hex View, message bodies are shown as raw hexadecimal values with the equivalent text. To avoid memory issues, the Hex view is currently limited to 16kB of data.


    You can examine messages that are still in the process of being sent. Incomplete messages are indicated by bold highlighting in the message tree.

8.2 Filter or Sort Messages

Filters are useful for examining some subset of the total network traffic.

URL. Messages are sorted by URL address. Multiple messages with the same address are sorted by time.

To arrange the message tree in a particular order, click on the Sort By combo box and choose a criteria.


Sorting parameters are dependent on the message protocol you choose. For example, sorting by time is not relevant for socket messages.

8.3 Save and Load Network Monitor Information

Use File > Save As to save your network monitor session. The session is saved as a Network Monitor Snapshot file and is added to the project tree, just like the profiling information.

To load a network monitor session, choose File > Open File... and browse to the .nmd file you saved.


To avoid memory issues, the Hex view display is currently limited to 16kB of data.