查看: 3099|回复: 6

[参数设置] [求助]关于10.2.0.1的Library Cache Object loaded into SGA警告

[复制链接]
论坛徽章:
10
2010年世界杯参赛球队:塞尔维亚
日期:2010-01-10 17:45:14ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22茶鸡蛋
日期:2011-06-22 10:08:332010广州亚运会纪念徽章:高尔夫球
日期:2011-04-12 19:40:522010广州亚运会纪念徽章:足球
日期:2011-04-12 15:45:382010广州亚运会纪念徽章:拳击
日期:2011-04-03 22:07:352011新春纪念徽章
日期:2011-02-18 11:43:35ITPUB9周年纪念徽章
日期:2010-10-08 09:32:262010新春纪念徽章
日期:2010-03-01 11:08:35蛋疼蛋
日期:2012-01-08 04:00:42
跳转到指定楼层
1#
发表于 2010-1-19 17:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
10.2.0.1的库,_kgl_large_heap_warning_threshold已经开到了100m
可是今天开始还是一直出现以下警告
Tue Jan 19 16:51:17 2010
Memory Notification: Library Cache Object loaded into SGA
Heap size 111824K exceeds notification threshold (102400K)

是否和sga的大小设置有关?
Total System Global Area 1.3640E+10 bytes
Fixed Size                  2017120 bytes
Variable Size            1895827616 bytes
Database Buffers         1.1727E+10 bytes
Redo Buffers               14757888 bytes
论坛徽章:
10
2010年世界杯参赛球队:塞尔维亚
日期:2010-01-10 17:45:14ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22茶鸡蛋
日期:2011-06-22 10:08:332010广州亚运会纪念徽章:高尔夫球
日期:2011-04-12 19:40:522010广州亚运会纪念徽章:足球
日期:2011-04-12 15:45:382010广州亚运会纪念徽章:拳击
日期:2011-04-03 22:07:352011新春纪念徽章
日期:2011-02-18 11:43:35ITPUB9周年纪念徽章
日期:2010-10-08 09:32:262010新春纪念徽章
日期:2010-03-01 11:08:35蛋疼蛋
日期:2012-01-08 04:00:42
2#
 楼主| 发表于 2010-1-20 10:37 | 只看该作者
自己顶一下

使用道具 举报

回复
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
3#
发表于 2010-1-20 10:42 | 只看该作者
感觉是有问题,load 一个object 100多w,是有点恐怖了,可以看看v$db_object_cache是什么对象占用这么大内存

设置那个参数只是增加了warning的阀值,并不是解决了问题

[ 本帖最后由 棉花糖ONE 于 2010-1-20 10:44 编辑 ]

使用道具 举报

回复
论坛徽章:
10
2010年世界杯参赛球队:塞尔维亚
日期:2010-01-10 17:45:14ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22茶鸡蛋
日期:2011-06-22 10:08:332010广州亚运会纪念徽章:高尔夫球
日期:2011-04-12 19:40:522010广州亚运会纪念徽章:足球
日期:2011-04-12 15:45:382010广州亚运会纪念徽章:拳击
日期:2011-04-03 22:07:352011新春纪念徽章
日期:2011-02-18 11:43:35ITPUB9周年纪念徽章
日期:2010-10-08 09:32:262010新春纪念徽章
日期:2010-03-01 11:08:35蛋疼蛋
日期:2012-01-08 04:00:42
4#
 楼主| 发表于 2010-1-20 15:25 | 只看该作者
告警中的提示完整的是这样的:


Tue Jan 19 16:51:17 2010
Memory Notification: Library Cache Object loaded into SGA
Heap size 111824K exceeds notification threshold (102400K)
KGL object name  :SYS.ALERT_QUE

但是v$db_object_cache里除了大量的游标外没有单个SHARABLE_MEM占用特别大的,还有就是游标内容有大量重复的,这个是游标共享上的问题吗?

[ 本帖最后由 bewdx3 于 2010-1-20 16:07 编辑 ]

使用道具 举报

回复
论坛徽章:
10
2010年世界杯参赛球队:塞尔维亚
日期:2010-01-10 17:45:14ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22茶鸡蛋
日期:2011-06-22 10:08:332010广州亚运会纪念徽章:高尔夫球
日期:2011-04-12 19:40:522010广州亚运会纪念徽章:足球
日期:2011-04-12 15:45:382010广州亚运会纪念徽章:拳击
日期:2011-04-03 22:07:352011新春纪念徽章
日期:2011-02-18 11:43:35ITPUB9周年纪念徽章
日期:2010-10-08 09:32:262010新春纪念徽章
日期:2010-03-01 11:08:35蛋疼蛋
日期:2012-01-08 04:00:42
5#
 楼主| 发表于 2010-1-20 22:20 | 只看该作者
再顶一下

使用道具 举报

回复
论坛徽章:
9
2009新春纪念徽章
日期:2009-01-04 14:52:28祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51蛋疼蛋
日期:2011-08-09 14:26:55ITPUB十周年纪念徽章
日期:2011-11-01 16:24:51ITPUB 11周年纪念徽章
日期:2012-10-09 18:09:19奥迪
日期:2013-09-12 15:57:042014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
6#
发表于 2010-1-20 22:43 | 只看该作者
超过了就超过了,这只是一个警告而已,当你载入的对象超过了多少,ORACLE给你一个提示而已。

使用道具 举报

回复
论坛徽章:
63
生肖徽章:虎
日期:2007-09-26 17:02:11一汽
日期:2014-02-01 11:37:24大众
日期:2014-02-10 09:49:072014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-05-15 08:12:54马上有对象
日期:2014-10-13 10:15:43沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31狮子座
日期:2015-09-15 11:14:46
7#
发表于 2010-4-2 11:18 | 只看该作者

打补丁吧

Subject:  Memory Notification: Library Cache Object Loaded Into Sga
  Doc ID:  Note:330239.1 Type:  PROBLEM
  Last Revision Date:  18-JUL-2006 Status:  PUBLISHED

In this Document
  Symptoms
  Changes
  Cause
  Solution
  References

--------------------------------------------------------------------------------



Applies to: Oracle Server - Enterprise Edition - Version:
This problem can occur on any platform.
. SymptomsThe following messages are reported in alert.log after 10g Release 2 is installed.

        Memory Notification: Library Cache Object loaded into SGA
        Heap size 2294K exceeds notification threshold (2048K)

ChangesInstalled / Upgraded to 10g Release 2

CauseThese are warning messages that should not cause the program responsible for these errors to fail.  They appear as a result of new event messaging mechanism and memory manager in 10g Release 2. The meaning is that the process is just spending a lot of time in finding free memory extents during an allocate as the memory may be heavily fragmented.  Fragmentation in memory is impossible to eliminate completely, however, continued messages of large allocations in memory indicate there are tuning opportunities on the application.   The messages do not imply that an ORA-403X is about to happen.  



SolutionIn 10g we have a new undocumented parameter that sets the KGL heap size warning threshold.   This parameter was not present in 10gR1.  Warnings are written if heap size exceeds this threshold.
   
Set  _kgl_large_heap_warning_threshold  to a reasonable high value or zero to prevent these warning messages. Value needs to be set in bytes.

If you want to set this to 8192 (8192 * 1024) and are using an spfile:

(logged in as "/ as sysdba"

SQL> alter system set "_kgl_large_heap_warning_threshold"=8388608 scope=spfile ;

SQL> shutdown immediate SQL> startup

SQL> show parameter _kgl_large_heap_warning_threshold
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_kgl_large_heap_warning_threshold integer 8388608

If using an "old-style" init parameter,

Edit the init parameter file and add

_kgl_large_heap_warning_threshold=8388608



In 10.2.0.2,  the threshold is increased to 50MB after regression tests, so this should be a reasonable and recommended value.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表