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 the plan cache stops evicting plans relative to the absolute value of the memory upper limit.
Privilege requirements
Query variables
systenants 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 obtain the value of global system variables.Modify variables
systenants can directly modify the value of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of global system variables.
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 the plan cache stops evicting plans (the low watermark of plan eviction) is calculated as the absolute value of the memory upper limit multiplied by ob_plan_cache_evict_low_percentage divided by 100. For more information about the absolute value of the memory upper limit, see ob_plan_cache_percentage.
Examples
Set the percentage of the memory size at which the plan cache stops evicting plans relative to the absolute value of the memory upper limit to 50.
obclient> SET GLOBAL ob_plan_cache_evict_low_percentage =50;