473,804 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ 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 2754
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.c om 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
2996
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 process, that keeps going on, until your disk is full. I'm on W2K, DB2 UDB 8.1 FP4. Test case: db2start
13
3577
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%) the on-call DBA will be paged. First some system information: get db cfg for ip0 First active log file = S0055850.LOG
3
1709
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. However, for getting only some paramters, I get a huge response, with many parameters that I do not need (mostly many are performance parameters). How long can the snapshot response be, and can it considerably affect performance?
7
14382
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 display the graph but it is not possible to send query parameters to an OLE graph on a report (or programatically change any properties of an OLE Graph). However with a Form you do have the ability to change the RowSource of
9
2812
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 remains. Last year, all of the tables and reports were stored in Access. The database was put online so that end users could access the reports online using Snapshot Viewer. The reports were aggregated on the fly, and the selection criteria...
3
2054
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. If I cut and paste the path into the browser it opens snapshot viewer. Exactly what I want. However, if I response.redirect to the path, I get a error that the file can not be found. If I response.redirect to "file:"+path It opens the snapshot...
4
1368
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 to the snapshot viewer the last shows only properties of Exceptions, the new properties are not shown. Question: How to show new properties of Exception-descendants in the snapshot viewer (such as, for example, SqlException shows Procedure, Line...
8
5489
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 external image file using on_open code I've searched through this group and there are a few comments about snapshots not working with embedded images, and my testing seems to
2
2112
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 inefficient : each snapshot takes a few dozens of milliseconds and overall it consumes a lot of CPU. Is there a way to configure and optimize the snapshot utility ? Is there an alternative to the snapshot monitor API ? When working with Oracle, I'm...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10599
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10347
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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 we have to send another system
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.