onstat -g afr command: Print allocated memory fragments
Use the onstat -g afr command to display information about the allocated memory fragments for a specified session or shared-memory pool. Each session is allocated a pool of shared memory.
This command requires an additional argument to specify either a pool name, a session ID, or a pool address. Each session is allocated a memory pool with the same name as the session ID.
The pool_name is the name of the shared-memory pool. Run the onstat -g mem command to identify the pool name.
The sessionid is the session ID. Run the onstat -g ses command to identify the session ID.
The pool_address is the address of the shared-memory pool. Run the onstat -g mem command or the onstat -g ses command to identify the pool address.
Example output
Output description
- addr (hexadecimal)
- Memory address of the pool fragment.
- size (decimal)
- Size, in bytes, of the pool fragment.
- memid (string)
- Memory ID of the pool fragment.
- fileid (decimal)
- Internal use only. Code file identifier for the allocation.
- location (string)
- Internal use only. Line number in the code for the allocation.