Note
This variable is available starting with V1.4.
Description
The ob_plan_cache_evict_low_percentage variable specifies the percentage of the memory size at which plan cache eviction stops, relative to the absolute value of the memory upper limit.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to view the value of a global system variable.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 | 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 for plan cache 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 plan cache eviction stops, relative to the absolute value of the memory upper limit, to 50.
obclient> SET GLOBAL ob_plan_cache_evict_low_percentage =50;