Note
This variable is available starting with V1.4.
Description
ob_plan_cache_evict_high_percentage specifies the percentage of the memory size that triggers plan cache eviction relative to the absolute value of the memory upper limit.
Privilege requirements
Query variables
systenants and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) and theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to view the values of global system variables.Modify variables
systenants can directly modify the values of global system variables.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 90 |
| Value range | [0, 100] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage notes
The memory size that triggers plan cache eviction (high watermark) is calculated as the absolute value of the plan cache memory upper limit multiplied by ob_plan_cache_evict_high_percentage divided by 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 memory size that triggers plan cache eviction relative to the absolute value of the memory upper limit to 90.
obclient> SET GLOBAL ob_plan_cache_evict_high_percentage =90;