Monitoring resource usage for a process

You can monitor the resource usage for a process through two QNX System Information views that list the file descriptors and other details about the process' active connections.

To see some of the resources used by each target process, you can access the System Resources view and select General Resources in the upper right dropdown. The view then lists the number of open file descriptors along with CPU usage and data segment size, for all processes:

Screenshot of System Resources view with General Resources selected in dropdown in upper right corner

You can examine the File Descriptors column (on the far right) to see if the number is steadily increasing for a particular process. If so, that process is opening file descriptors faster than closing them and might have a design or coding bug. Having too many open file descriptors can notably increase a process' memory footprint or cause it to run out of descriptors and stop working. You can click the column header to sort the process list by this metric, to find which processes are using the most descriptors.

To find out what they're used for, you must access the Connection Information view:

Screenshot of Connection Information view that lists the file descriptors, server names, and more for a process' connections

The connections are sorted by the File Descriptors field, in ascending order. For details about the file descriptor numbers (including the s next to some of them) and other fields, see the Connection Information reference. In summary, Server Name specifies the process at the other end of the connection, while Resource Name provides the device path (when applicable). These fields can give you a good idea of which program areas might be leaking descriptors.