_library_cache_advice和latch:shared pool、latch:shared pool simulator
来源:互联网 发布:java求二叉树的节点数 编辑:程序博客网 时间:2024/05/16 17:44
版本10.2.0.4和11.1.0.6中”_library_cache_advice”=TRUE的情况下可能出现高latch:shared pool、latch: shared pool simulator等latch争用等待事件,默认情况下_library_cache_advice受到参数”statistics_level”的影响为TRUE,当_library_cache_advice=TRUE时他启用library cache simulator特性。
该library cache simulator特性负责估算shared pool LRU的表现,simulator模拟器收集heap内存堆大小以及load载入、pin、unpin的次数信息;通过这些数据来估算出若我们有更大的shared pool,我们可以由更大的共享池来缓存更多的SQL、PLSQL在共享池中,以此来节约加载时间。若我们设置更小的shared pool size,则又会对加载时间有何等的影响?
题外话:另一个对ASMM 下shared pool有作用的参数:
- If 0, will not try to shrink shared pool or Java pool
- If greater than zero, will wait this many seconds after failed shrink request to ask again
禁用library cache simulator设置”_library_cache_advice”=false”可能”(具体仍需要诊断)解决高latch:shared pool、latch: shared pool simulator、Library Cache – Mutex X具体等的问题,禁用library cache simulator会导致AWR中”shared pool advisory”和 “java pool advisory”2个环节不可用,但是这些特性实际可有可无。
但是”_library_cache_advice”=false”时且启用了ASMM(sga_target>0)的情况,注意为shared_pool_size设置一个合理的最小值!
分别在10.2.0.4和11.1.0.6上进行了针对解析的压力测试:
针对高latch:shared pool、latch: shared pool simulator、Library Cache – Mutex X解析类等待事件,解决的思路包括:
- 升级到最新的Patch set + PSU
- 考虑cursor_sharing=FORCE
- 注意即使_optim_peek_user_binds=false,若你的SQL本身还是有硬绑定的自由变量,则dc_histogram仍可能是硬解析争用的焦点
- 设置较大的 session_cachced_cursor和instantiation
- 设置library_cache_advice=false
- 关闭11g中的ACS自适应游标特性
- 关闭11g中的cardinality feedback特性
- 使用MSSM,或者 ASMM下 _memory_broker_shrink_heaps=0 + _enable_shared_pool_durations=false
- _library_cache_advice和latch:shared pool、latch:shared pool simulator
- Library Cache Latch和Shared Pool Latch
- shared pool latch和library cache latch
- 模拟latch: shared pool
- 20151104 shared pool,latch
- shared pool latch相关描述
- oracle known issue about shared pool latch
- library cache —— latch: shared pool
- shared pool 相关latch出现异常等待,影响系统性能
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列1
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列2
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列3
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列4
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列5
- 【每日一摩斯】-Shared Pool优化和Library Cache Latch冲突优化 (1523934.1)-系列6
- 故障排除:Shared Pool优化和Library Cache Latch冲突优化 (文档 ID 1523934.1)
- 通过案例学调优之--和 SHARED POOL 相关的主要 Latch
- 通过案例学调优之--和 SHARED POOL 相关的主要 Latch
- 利用模板编译期计算阶乘
- android Spyware Nuhaz.A
- gc buffer busy/gcs log flush sync与log file sync
- 有关递归
- 有n个学生的信息(包括学号、姓名、成绩),要求按照成绩的高低顺序输出各学生的信息。
- _library_cache_advice和latch:shared pool、latch:shared pool simulator
- ELF文件解析和反汇编
- C++数学函数库
- 浅谈程序员的职业规划
- Android 设立全屏
- 3DES 的加密算法
- ELF文件和BIN文件
- 银行卡和手机号自动补空格
- Linux 16进制查看命令、工具 .