Monitoring memory usage for each session
You can use several onstat -g command options to obtain memory information for each session.
About this task
You obtain memory information by identifying the SQL statements that use a large amount of memory.
Procedure
To identify SQL statements using large amount of memory:
- Run the onstat -g ses command to display memory of all sessions and see which session has the highest memory usage.
- Run the onstat -g ses session-id command to display more details on the session with the highest memory usage.
- Run the onstat -g stm session-id command to display the memory used by the SQL statements.