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


9 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.

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

9.1 Monitor Network Traffic

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

  1. Select Run > Profile As... > Network Monitor or right click a 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.

9.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 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.

9.3 Save and Load Network Monitor Information

Click the File menu and select 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.

Follow these steps to load a network monitor session:

  1. Select Open File... from the File menu.

  2. Browse to the .nmd file you saved.


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