473,480 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL 955 but snapshot shows memory still available

Hi,

We received an SQL 955 on a query. Since a snapshot showed that
database wide memory was still available (high water mark was below
max) I figured it was the SORTHEAP parm being too small. Yet the query
was rerun later when system was not as busy and it ran fine. I don't
get it. Can anyone shed light on this?

db2 8.1 fixpak 11
aix 5.3
DPF with 5 partitions

Sort heap threshold (4KB) (SHEAPTHRES) = 81920
Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = (SHEAPTHRES)
Sort list heap (4KB) (SORTHEAP) = 8192

Node number = 0
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 81920
High water mark (bytes) = 34144256
Configured size (bytes) = 335560704

Node number = 1
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 164773888
High water mark (bytes) = 265895936
Configured size (bytes) = 335560704

Node number = 2
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 141410304
High water mark (bytes) = 267698176
Configured size (bytes) = 335560704

Node number = 3
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 150683648
High water mark (bytes) = 278200320
Configured size (bytes) = 335560704

Node number = 4
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 149864448
High water mark (bytes) = 263651328
Configured size (bytes) = 335560704
Thanks.

Lew

Dec 14 '06 #1
1 2734
SHEAPTHRES is a "soft" limit for private sorts and a "hard" limit for
shared sorts. Your query runs with lighter workloads which indicates
that you've hit the "hard" limit for shared sorts.

You have three options available:
1. Decrease the size of SORTHEAP. This will allow more concurrent sorts
to run.

2. Increase the size os SHEAPTHRES. This needs to be in increments of
SORTHEAP and will allow additional sorts ro run concurrently.

3. Run the query only when workloads are lighter.

The statistics indicate that there should be enough storage available
for one more shared sort. It may be that the query needed to allocate
space for two concurrent shared sorts and didn't have enough space to do
that.

If you can't increase the SHEAPTHRES value, try decreasing SORTHEAP to
6144 and monitoring the number of sorts that overflow. If the increase
in overflows is acceptable, that may fix the problem.
Phil Sherman

se*****@yahoo.com wrote:
Hi,

We received an SQL 955 on a query. Since a snapshot showed that
database wide memory was still available (high water mark was below
max) I figured it was the SORTHEAP parm being too small. Yet the query
was rerun later when system was not as busy and it ran fine. I don't
get it. Can anyone shed light on this?

db2 8.1 fixpak 11
aix 5.3
DPF with 5 partitions

Sort heap threshold (4KB) (SHEAPTHRES) = 81920
Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = (SHEAPTHRES)
Sort list heap (4KB) (SORTHEAP) = 8192

Node number = 0
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 81920
High water mark (bytes) = 34144256
Configured size (bytes) = 335560704

Node number = 1
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 164773888
High water mark (bytes) = 265895936
Configured size (bytes) = 335560704

Node number = 2
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 141410304
High water mark (bytes) = 267698176
Configured size (bytes) = 335560704

Node number = 3
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 150683648
High water mark (bytes) = 278200320
Configured size (bytes) = 335560704

Node number = 4
Memory Pool Type = Shared Sort Heap
Current size (bytes) = 149864448
High water mark (bytes) = 263651328
Configured size (bytes) = 335560704
Thanks.

Lew
Dec 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2974
by: Jean-Marc Blaise | last post by:
Dear all, It seems there is a problem with some snapshot table functions, if you try to divide by some element that is unset or equal to 0. This generates a trap file with the db2fmp.exe...
13
3549
by: Lew | last post by:
Hi, I am a bit confused about what I'm seeing on my systems. I am trying to develop a script that will determine what percentage of the total log space is being used. If it is too high (80%)...
3
1682
by: Tejas | last post by:
Hi, I have gone through the snapshot API. I need to use it for finding location of database files, tablespace containers etc on a remote machine. These parameters are present in the response....
7
14336
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
9
2794
by: bluedolphin | last post by:
Hello All: I have been brought onboard to help on a project that had some performance problems last year. I have taken some steps to address the issues in question, but a huge question mark...
3
2037
by: Steven Thomas | last post by:
I am working on a ASP.NET application using VB.NET. I have a function that creates a snapshot file on a separate server and passes a path back to the webpage. Now I want to display the snapshot. ...
4
1353
by: Stanislaw Tristan | last post by:
Problem: I created a custom exception that inherits from Exception and added a some of new properties. All new properties filled in the constructors. When I throwing this custom exception and go...
8
5452
by: grant | last post by:
Hi I've copied Stephens code into my db, and can get it to work, but only on "plain Jane" reports with no images. Most of my reports has an unbound image obluect in them that I set to an...
2
2090
by: Yaron Goldstein | last post by:
Hi all. I'm writing a performance analysis utility that uses the snapshot monitor C API to get statistics in the connection level. It seems that the way I use the snapshot monitor is very...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.