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 the eviction of plan cache entries relative to the absolute value of the maximum memory size for the plan cache.
Privilege requirements
Query variables
You can execute the
SHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) in thesystenant and all user tenants to view the values of global system variables.Modify variables
In the
systenant, you can directly modify the values of global system variables.In a MySQL user tenant, you must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.In an Oracle user tenant, you must 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 the eviction of plan cache entries (high watermark) = absolute value of the maximum memory size for the plan cache × ob_plan_cache_evict_high_percentage/100. For more information about the absolute value of the maximum memory size for the plan cache, see ob_plan_cache_percentage.
Examples
Set the percentage of the memory size that triggers the eviction of plan cache entries relative to the absolute value of the maximum memory size for the plan cache to 90.
obclient> SET GLOBAL ob_plan_cache_evict_high_percentage =90;
