tfactl setresourcelimit
Use the tfactl setresourcelimit command to restrict the CPU and memory usage of Oracle Trace File Analyzer.
Note:
The tfactl setresourcelimit command has been deprecated in 21.1. Oracle recommends using ahfctl setresourcelimit instead.
Syntax
tfactl setresourcelimit
[-tool tool_name]
[-resource resource_type]
[-value value]
Parameters
tfactl setresourcelimit Command Parameters
| Parameter | Description |
|---|---|
value | Set the limit to a minimum of 50% of a single CPU, and a maximum of 4 or 75% of the available CPUs, whichever is lower. By default, the CPU limit is set to the maximum. To limit TFA to a maximum of 50% of a single CPU: You can limit memory usage either at the system level using |
tool | Currently, you can only specify Default: |
resource | You can specify either CPU or memory. |
Examples setresourcelimit
On a server with 10 CPUs, the default limit will be 4 CPUs:
# tfactl setresourcelimit
Tool TFA: Resource CPU: Limit value: 4
On a server with 4 CPUs, the default limit will be 3 CPUs (75% of available CPUs):
tfactl setresourcelimit
Tool TFA: Resource CPU: Limit value: 3
# tfactl setresourcelimit -value 2
Tool TFA: Resource CPU: Limit value: 2
To limit the memory usage to only 1 GB of system memory run:
tfactl setresourcelimit -resource kmem -value 1024
To limit the combined total of system memory and the swap memory to 2 GB run:
tfactl setresourcelimit -resource swmem -value 2048