5.10 Limit the Maximum Amount of Memory Used by Oracle Trace File Analyzer
You can now limit the amount of memory used by Oracle Trace File Analyzer.
Note:
This feature is available only on Linux and only when Autonomous Health Framework is
installed using a full installation by the root
user.
Memory can be limited between 150 MB and 2GB or 25% of system memory, whichever is lower. By default, memory limits are enabled and set to the maximum.
There are various use cases including the following when Oracle Trace File Analyzer
resource limits apply:
- When Oracle Trace File Analyzer is performing automatic diagnostic collections,
for example, when Oracle Trace File Analyzer detects an
ORA-600
error has occurred and collects diagnostics for it. - When running on-demand collections, for example, if you run an SRDC collection at the request of support.
- During any other Oracle Trace File Analyzer analysis such as using the
tfactl analyze
command to search logs for recent errors.
Memory can be limited at either the system level using ahfctl
setresourcelimit -resource kmem
or combined system and swap memory using
ahfctl setresourcelimit -resource swmem
For example:
To limit the memory usage to only 1 GB of system memory
run:
ahfctl setresourcelimit -resource kmem -value 1024
Alternatively, to limit the combined total of system memory and the swap
memory to 2 GB
run:
ahfctl setresourcelimit -resource swmem -value 2048
Parent topic: Using On-Demand Diagnostic Collections