B.20 tfactl setresourcelimit

Use the tfactl setresourcelimit command to restrict the CPU usage of Oracle Trace File Analyzer.

Syntax

tfactl setresourcelimit 
[-tool tool_name] 
[-resource resource_type] 
[-value value]

Parameters

Table B-16 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: tfactl setresourcelimit -value 0.5

tool

Currently, you can only specify tfa.

Default: tfa

resource

Currently, you can only specify cpu.

Default: cpu

Example B-22 setresourcelimit Examples

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