互联网服务

db快照如下,大侠看看有哪些问题,如何调优

High water mark for connections            = 391
Application connects                       = 7102426
Secondary connects total                   = 3
Applications connected currently           = 143
Appls. executing in db manager currently   = 0
Agents associated with applications        = 146
Maximum agents associated with applications= 391
Maximum coordinating agents                = 391

Locks held currently                       = 0
Lock waits                                 = 50521
Time database waited on locks (ms)         = Not Collected
Lock list memory in use (Bytes)            = 74208
Deadlocks detected                         = 0
Lock escalations                           = 5
Exclusive lock escalations                 = 5
Agents currently waiting on locks          = 0
Lock Timeouts                              = 519
Number of indoubt transactions             = 0

Total Private Sort heap allocated          = 0
Total Shared Sort heap allocated           = 4
Shared Sort heap high water mark           = 12571
Post threshold sorts (shared memory)       = Not Collected
Total sorts                                = 105448014
Total sort time (ms)                       = Not Collected
Sort overflows                             = 95095
Active sorts                               = 0

Buffer pool data logical reads             = Not Collected
Buffer pool data physical reads            = Not Collected
Buffer pool temporary data logical reads   = Not Collected
Buffer pool temporary data physical reads  = Not Collected
Asynchronous pool data page reads          = Not Collected
Buffer pool data writes                    = Not Collected
Asynchronous pool data page writes         = Not Collected
Buffer pool index logical reads            = Not Collected
Buffer pool index physical reads           = Not Collected
Buffer pool temporary index logical reads  = Not Collected
Buffer pool temporary index physical reads = Not Collected
Asynchronous pool index page reads         = Not Collected
Buffer pool index writes                   = Not Collected
Asynchronous pool index page writes        = Not Collected
Buffer pool xda logical reads              = Not Collected
Buffer pool xda physical reads             = Not Collected
Buffer pool temporary xda logical reads    = Not Collected
Buffer pool temporary xda physical reads   = Not Collected
Buffer pool xda writes                     = Not Collected
Asynchronous pool xda page reads           = Not Collected
Asynchronous pool xda page writes          = Not Collected
Total buffer pool read time (milliseconds) = Not Collected
Total buffer pool write time (milliseconds)= Not Collected
Total elapsed asynchronous read time       = Not Collected
Total elapsed asynchronous write time      = Not Collected
Asynchronous data read requests            = Not Collected
Asynchronous index read requests           = Not Collected
Asynchronous xda read requests             = Not Collected
No victim buffers available                = Not Collected
LSN Gap cleaner triggers                   = Not Collected
Dirty page steal cleaner triggers          = Not Collected
Dirty page threshold cleaner triggers      = Not Collected
Time waited for prefetch (ms)              = Not Collected
Unread prefetch pages                      = Not Collected
Direct reads                               = Not Collected
Direct writes                              = Not Collected
Direct read requests                       = Not Collected
Direct write requests                      = Not Collected
Direct reads elapsed time (ms)             = Not Collected
Direct write elapsed time (ms)             = Not Collected
Database files closed                      = Not Collected
Vectored IOs                               = Not Collected
Pages from vectored IOs                    = Not Collected
Block IOs                                  = Not Collected
Pages from block IOs                       = Not Collected
Physical page maps                         = Not Collected

Host execution elapsed time                = Not Collected

Commit statements attempted                = 181341653
Rollback statements attempted              = 4663
Dynamic statements attempted               = 526777526
Static statements attempted                = 181882812
Failed statement operations                = 557237
Select SQL statements executed             = 177525458
Xquery statements executed                 = 0
Update/Insert/Delete statements executed   = 114369123
DDL statements executed                    = 39876
Inactive stmt history memory usage (bytes) = 0

Internal automatic rebinds                 = 1
Internal rows deleted                      = 0
Internal rows inserted                     = 0
Internal rows updated                      = 0
Internal commits                           = 8105609
Internal rollbacks                         = 519
Internal rollbacks due to deadlock         = 0

Rows deleted                               = 3126705
Rows inserted                              = 109955147
Rows updated                               = 8802170
Rows selected                              = 2473664174
Rows read                                  = 168281829937
Binds/precompiles attempted                = 14

Log space available to the database (Bytes)= 3272481633
Log space used by the database (Bytes)     = 69854367
Maximum secondary log space used (Bytes)   = 0
Maximum total log space used (Bytes)       = 1464092681
Secondary logs allocated currently         = 0
Log pages read                             = 208
Log read time (sec.ns)                     = 0.000000004
Log pages written                          = 15454766
Log write time (sec.ns)                    = 18205.000000004
Number write log IOs                       = 11330001
Number read log IOs                        = 26
Number partial page log IOs                = 9538525
Number log buffer full                     = 5
Log data found in buffer                   = 4210
Log to be redone for recovery (Bytes)      = 907463012
Log accounted for by dirty pages (Bytes)   = 873912697

File number of first active log            = 7
File number of last active log             = 6
File number of current active log          = 2
File number of log being archived          = Not applicable

Package cache lookups                      = 187997102
Package cache inserts                      = 6657938
Package cache overflows                    = 0
Package cache high water mark (Bytes)      = 95420108
Application section lookups                = 526805927
Application section inserts                = 21211652

Catalog cache lookups                      = 75597025
Catalog cache inserts                      = 259
Catalog cache overflows                    = 0
Catalog cache high water mark              = 1063088

Workspace Information

Shared high water mark                    = 0
Corresponding shared overflows            = 0
Total shared section inserts              = 0
Total shared section lookups              = 0
Private high water mark                   = 5923388
Corresponding private overflows           = 0
Total private section inserts             = 21211652
Total private section lookups             = 186514008

Number of hash joins                       = 63007329
Number of hash loops                       = 0
Number of hash join overflows              = 3
Number of small hash join overflows        = 0
Post threshold hash joins (shared memory)  = 3
Active hash joins                          = 0


Memory usage for database:

    Memory Pool Type                           = Backup/Restore/Util Heap
       Current size (bytes)                    = 131072
       High water mark (bytes)                 = 22740992
       Configured size (bytes)                 = 40960000

    Memory Pool Type                           = Package Cache Heap
       Current size (bytes)                    = 90308608
       High water mark (bytes)                 = 110755840
       Configured size (bytes)                 = 98304000

    Memory Pool Type                           = Catalog Cache Heap
       Current size (bytes)                    = 1179648
       High water mark (bytes)                 = 1179648
       Configured size (bytes)                 = 1114112

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = 5
       Current size (bytes)                    = 337444864
       High water mark (bytes)                 = 337444864
       Configured size (bytes)                 = 337444864

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = 4
       Current size (bytes)                    = 169607168
       High water mark (bytes)                 = 169607168
       Configured size (bytes)                 = 169607168

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = 3
       Current size (bytes)                    = 85721088
       High water mark (bytes)                 = 85721088
       Configured size (bytes)                 = 85721088

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = 2
       Current size (bytes)                    = 43778048
       High water mark (bytes)                 = 43778048
       Configured size (bytes)                 = 43778048

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = 1
       Current size (bytes)                    = 270204928
       High water mark (bytes)                 = 270204928
       Configured size (bytes)                 = 270204928

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = System 32k buffer pool
       Current size (bytes)                    = 1114112
       High water mark (bytes)                 = 1114112
       Configured size (bytes)                 = 1114112

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = System 16k buffer pool
       Current size (bytes)                    = 851968
       High water mark (bytes)                 = 851968
       Configured size (bytes)                 = 851968

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = System 8k buffer pool
       Current size (bytes)                    = 720896
       High water mark (bytes)                 = 720896
       Configured size (bytes)                 = 720896

    Memory Pool Type                           = Buffer Pool Heap
       Secondary ID                            = System 4k buffer pool
       Current size (bytes)                    = 655360
       High water mark (bytes)                 = 655360
       Configured size (bytes)                 = 655360

    Memory Pool Type                           = Shared Sort Heap
       Current size (bytes)                    = 2359296
       High water mark (bytes)                 = 23199744
       Configured size (bytes)                 = 57802752

    Memory Pool Type                           = Lock Manager Heap
       Current size (bytes)                    = 22216704
       High water mark (bytes)                 = 22216704
       Configured size (bytes)                 = 22282240

    Memory Pool Type                           = Database Heap
       Current size (bytes)                    = 8257536
       High water mark (bytes)                 = 8257536
       Configured size (bytes)                 = 24772608

    Memory Pool Type                           = Other Memory
       Current size (bytes)                    = 131072
       High water mark (bytes)                 = 131072
       Configured size (bytes)                 = 20971520


我发现疑点如下:

疑点一:
Sort overflows                             = 95095
疑点二:

Rows selected                              = 2473664174
Rows read                                  = 168281829937
rows  read /rows selected=68
说明表扫描较多,没有效的利用索引吗??
疑点三:

Lock Timeouts                              = 519
这个锁超时如何调整?
欢迎大家看看还有没有其他的问题,方便一并给调整了,谢谢~~
参与13

12同行回答

SaturnZoneSaturnZone数据库管理员苏宁
先不用调那个,那个调大了也不好,会掩盖问题的。。索引用好了 ,溢出自然就降低下来了。。你row read /  ...ljbupc 发表于 2012-4-21 10:56     学习之。显示全部
先不用调那个,那个调大了也不好,会掩盖问题的。。
索引用好了 ,溢出自然就降低下来了。。
你row read /  ...
ljbupc 发表于 2012-4-21 10:56



    学习之。收起
互联网服务 · 2012-04-23
浏览780
ljbupcljbupc软件开发工程师上海安硕科技
先不用调那个,那个调大了也不好,会掩盖问题的。。索引用好了 ,溢出自然就降低下来了。。你row read / row select 太大了。。读了太多的无用数据。一般5左右就差不多了。。显示全部
先不用调那个,那个调大了也不好,会掩盖问题的。。
索引用好了 ,溢出自然就降低下来了。。
你row read / row select 太大了。。读了太多的无用数据。
一般5左右就差不多了。。收起
互联网服务 · 2012-04-21
浏览756
nanjing_2013nanjing_2013系统架构师北京卓望
回复 8# weiruan85     一般溢出率大于多少?就需要调整呢?显示全部
回复 8# weiruan85

    一般溢出率大于多少?就需要调整呢?收起
互联网服务 · 2012-04-21
浏览823
ljbupcljbupc软件开发工程师上海安硕科技
额。。缓冲池监视也需要打开。。显示全部
额。。缓冲池监视也需要打开。。收起
互联网服务 · 2012-04-20
浏览807
ljbupcljbupc软件开发工程师上海安硕科技
看起来主要是基本没有用到索引。。。这个需要统计statement的快照。。。当把该建的索引建好了,重置然后再看。。显示全部
看起来主要是基本没有用到索引。。。
这个需要统计statement的快照。。。
当把该建的索引建好了,重置然后再看。。收起
互联网服务 · 2012-04-20
浏览826
weiruan85weiruan85数据库管理员ibm
Total sorts                                = 105448014Total sort time (ms)               &...显示全部
Total sorts                                = 105448014
Total sort time (ms)                       = Not Collected
Sort overflows                             = 95095

排序要看溢出率的,Sort overflows   /Total sorts收起
政府机关 · 2012-04-20
浏览824
tongjixianingtongjixianing软件开发工程师IBM
回复 6# nanjing_2013     过奖,np。显示全部
回复 6# nanjing_2013


    过奖,np。收起
互联网服务 · 2012-04-20
浏览814
nanjing_2013nanjing_2013系统架构师北京卓望
回复 5# tongjixianing     感谢夏宁大师的解答~~显示全部
回复 5# tongjixianing


   
感谢夏宁大师的解答~~收起
互联网服务 · 2012-04-20
浏览843
tongjixianingtongjixianing软件开发工程师IBM
1.你的bufferpool monitor switch没开。2.疑点一:Sort overflows                             = 95095疑点二:>锁的问题90%以上都是application的问题,你有一些lock...显示全部
1.你的bufferpool monitor switch没开。
2.
疑点一:
Sort overflows                             = 95095
疑点二:

<<<这个也算比较正常,你的total sort 很多。而且用了很多hashjoin。
Total sorts                                = 105448014
Number of hash joins                       = 63007329

Rows selected                              = 2473664174
Rows read                                  = 168281829937
rows  read /rows selected=68
说明表扫描较多,没有效的利用索引吗??

>>还算正常,可能有些SQL就是没办法很好的走index。

疑点三:

Lock Timeouts                              = 519
这个锁超时如何调整?

>>锁的问题90%以上都是application的问题,你有一些lock escalation,可以适当增大locklist和maxlock。

Lock waits                                 = 50521

Lock escalations                           = 5
Exclusive lock escalations                 = 5

3. Number log buffer full                     = 5
可以适当增大一些log buffer收起
互联网服务 · 2012-04-20
浏览864
nanjing_2013nanjing_2013系统架构师北京卓望
回复 3# binghua2012     能详细说一下,你们是如何捕获问题的??以及发现问题又是如何处理的???显示全部
回复 3# binghua2012


   
能详细说一下,你们是如何捕获问题的??以及发现问题又是如何处理的???收起
互联网服务 · 2012-04-20
浏览848

提问者

nanjing_2013
系统架构师北京卓望

问题状态

  • 发布时间:2012-04-20
  • 关注会员:1 人
  • 问题浏览:5559
  • 最近回答:2012-04-23
  • X社区推广