免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5595 | 回复: 3
打印 上一主题 下一主题

数据库怎么调整SHEAPTHRES大小 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-04 10:31 |只看该作者 |倒序浏览
ADM10500E  Health indicator "ercentage of Sorts That Overflowed"
("db.spilled_sorts" breached the "upper" alarm threshold of "50 %" with value
"51 %" on "database" "tpuser1.TPUSER  ".  Calculation:
"((delta(db.sort_overflows,10))/(delta(db.total_sorts,10)+1)*100);" = "(((11922
- 11820) / ((90675 - 90476) + 1)) * 100)" = "51 %".  History (Timestamp, Value,
Formula): " (2007-12-04 01:26:15.207831, 39, (((11922 - 11819) / ((90675 -
90409) + 1)) * 100)), (2007-12-04 01:20:15.989947, 38, (((11922 - 11819) /
((90675 - 90404) + 1)) * 100)), (2007-12-04 01:14:15.905483, 40, (((11918 -
11819) / ((90651 - 90404) + 1)) * 100)), (2007-12-04 01:08:15.727863, 39,
(((11914 - 11813) / ((90627 - 90366) + 1)) * 100)), (2007-12-04 01:02:15.553533,
39, (((11914 - 11813) / ((90627 - 90366) + 1)) * 100)), (2007-12-04
00:56:15.362354, 39, (((11914 - 11813) / ((90627 - 90366) + 1)) * 100)),
(2007-12-04 00:50:15.176794, 36, (((11914 - 11807) / ((90627 - 90330) + 1)) *
100)), (2007-12-04 00:44:16.025351, 36, (((11914 - 11807) / ((90627 - 90330) +
1)) * 100)), (2007-12-04 00:38:15.842139, 11, (((11824 - 11805) / ((90485 -
9031 + 1)) * 100))"

数据库报上面的ALERT,查了一下需要调整SHEAPTHRES,但是不知道调到多少合适,请指点一下

论坛徽章:
0
2 [报告]
发表于 2007-12-04 11:01 |只看该作者
Configuring SHEAPTHRES:

    * In general SHEAPTHRES should be set to a multiple of SORTHEAP
    * A general rule of thumb is to set SHEAPTHRES to at least 10 * SORTHEAP.
    * For index creation with INTRA_PARALLEL ON, make sure SHEAPTHRES >= d * SORTHEAP, where d is the SMP degree.
    * For LOAD, all index key sorting takes place simultaneously in the private memory space of one process: db2lrid in SMP, db2lfrm0 in serial. Make sure SHEAPTHRES >= n * SORTHEAP, where n is the number of indexes on the table being loaded. Also keep in mind that on AIX, there is approximately a max of 250MB of private virtual memory for index key sorting in LOAD (this is a memory bottleneck).

论坛徽章:
0
3 [报告]
发表于 2007-12-04 11:38 |只看该作者
非常感谢!

论坛徽章:
0
4 [报告]
发表于 2007-12-07 14:23 |只看该作者
db2 update db cfg using SHEAPTHRES <size>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP