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 maximum memory size.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of Global system variables.Modify variables
The
systenant can directly modify the value of a Global system variable.A MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a Global system variable.An Oracle user tenant 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 the value. |
Usage notes
The memory size that triggers plan cache eviction (high watermark) = absolute value of the maximum memory size of the plan cache × ob_plan_cache_evict_high_percentage / 100. For more information about the absolute value of the maximum memory size of the plan cache, 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 maximum memory size to 90.
obclient> SET GLOBAL ob_plan_cache_evict_high_percentage =90;