Note
This variable is available starting with V1.4.
Description
ob_plan_cache_evict_high_percentage specifies the percentage of the absolute value of the plan cache memory upper limit that triggers plan cache eviction.
Privilege requirements
Query variables
sysand all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) view to view the value of a global system variable.Modify variables
systenants can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 90 |
| Value range | [0, 100] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify this variable. |
Usage notes
The memory size (high water mark) that triggers plan cache eviction = absolute value of the plan cache memory upper limit * ob_plan_cache_evict_high_percentage/100. For more information about the absolute value of the plan cache memory upper limit, see ob_plan_cache_percentage.
Examples
Set the percentage of the absolute value of the plan cache memory upper limit that triggers plan cache eviction to 90.
obclient> SET GLOBAL ob_plan_cache_evict_high_percentage =90;