Monitoring memory and resource consumption

The QNX System Information perspective displays realtime data about the processes running on a target machine, including memory and resource usage statistics.

This perspective is a good starting point for learning about application memory usage because its views let you see data about each application's memory layout and usage. Furthermore, the data values come in real time from the target (through qconn), without you having to recompile or relaunch an application.

Note: To see data from a particular target in the QNX System Information perspective, you must select that target in the Target Navigator. In this perspective, the data values in the views are refreshed every five seconds, allowing you to closely monitor the system's or a process' memory or resource consumption.

First, you can use the System Summary view to see the target's memory consumption data, which include how much memory the processes are using relative to each other. Then, you can access the Memory Information and Malloc Information views to monitor process memory consumption.

Finally, the Connection Information view lets you monitor the resources used in a process' connections.

QNX Neutrino utilities for monitoring memory consumption

The QNX Neutrino RTOS includes some useful memory-monitoring utilities. One of them is pidin, which shows process memory details, such as the current and maximum stack memory per thread.