Note
This variable is available starting with V1.4.
Description
ob_plan_cache_evict_low_percentage specifies the percentage of the memory size at which plan cache eviction stops, relative to the maximum memory size.
Privilege requirements
Query variables
sysand 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 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 | 50 |
| Value range | [0, 100] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage notes
The memory size at which plan cache eviction stops (the low watermark of plan cache eviction) is calculated as follows: memory size at which plan cache eviction stops = maximum memory size × ob_plan_cache_evict_low_percentage / 100. For more information about the maximum memory size, see ob_plan_cache_percentage.
Examples
Set the percentage of the memory size at which plan cache eviction stops, relative to the maximum memory size, to 50.
obclient> SET GLOBAL ob_plan_cache_evict_low_percentage =50;
