Oracle® Java Micro Edition Software Development Kit Developer's Guide Release 8 for Windows E50624-01 |
|
Previous |
Next |
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.
MEEP applications can connect through HTTP and other protocols.
To activate network activity monitoring for an application:
In the Projects window, right-click a project and select Profile.
If this is the first time profiling this application, you are prompted to integrate the profile with the project. Click Yes to perform the integration.
In the Profile window, select Network Monitor, and click Run.
Start your application.
When the application makes a network connection, information about the connection is captured and displayed in the Network Monitor tab.
The top frame displays a list of connections. Click a connection to display its details in the bottom frame.
Under Hex View, raw connection data is shown as raw hexadecimal values with the equivalent text.
Filters are used to examine a subset of the total network traffic.
In the Select Devices list, select only the devices you want to view.
In the Select Protocols list, select only the protocols you want to view. The protocols listed reflect what is installed on the device.
In the URL Filter field, you can specify the URL for which you want to view connection data.
Click on a table header to sort the message data:
No.: Connections are sorted by phone number.
Protocol: Connections are sorted by protocol name.
Device: Connections are sorted by device name.
URL: Connections are sorted by URL.
Time: Connections are sorted in chronological order.
Size: Connections are sorted by the size of data.
Active: Connections are sorted based on whether it is currently active.
To save your network monitor session, click the Save Snapshot button in the Network Monitor toolbar. Select a file name. The default file extension is NMD (network monitor data).
To load a network monitor session:
Open the File menu and select Open File.
Browse to find the necessary NMD file.
Note: To avoid memory issues, the Hex view display is currently limited to 16 kilobytes of data. |
To specify a string that you want to find in the available connection data, click the button with the magnifying glass labeled Find in results (Ctrl + F) above the table in the Network Monitor toolbar.
You can search the records up to the specified string or back to a previous string occurrence by clicking the Find Next Occurrence (F3) or Find Previous Occurrence (Shift+F3) buttons in the toolbar.
To remove all inactive protocol records from the network monitor, click the Clear button (the broom icon in the right part of the Network Monitor toolbar).