Monitoring resources allocated for a session running a DSS query
You can monitor the resources allocated for, and used by, a session that is running a decision-support (DSS) query by running the onstat -g ses command.
The onstat -g ses option displays the following information:
- The shared memory allocated for a session that is running a decision-support query
- The shared memory used by a session that is running a decision-support query
- The number of threads that the database server started for a session
For example, in Figure 1, session number 49 is running five threads for a decision-support query.
Figure 1. onstat
-g ses output
session #RSAM total used
id user tty pid hostname threads memory memory
57 informix - 0 - 0 8192 5908
56 user_3 ttyp3 2318 host_10 1 65536 62404
55 user_3 ttyp3 2316 host_10 1 65536 62416
54 user_3 ttyp3 2320 host_10 1 65536 62416
53 user_3 ttyp3 2317 host_10 1 65536 62416
52 user_3 ttyp3 2319 host_10 1 65536 62416
51 user_3 ttyp3 2321 host_10 1 65536 62416
49 user_1 ttyp2 2308 host_10 5 188416 178936
2 informix - 0 - 0 8192 6780
1 informix - 0 - 0 8192 4796