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

Home Posts Topics Members FAQ

DB2 Memory Allocation Error

Greetings,

I have moved a database from the DB2 Windows Platform (Dev) to our
production AIX Server and am experiencing an issue:

The AIX platform is 5.3 and DB2 version 8.1 pixpack 9a (8.1.1.89)
There hardware is Power5 8 procs, 4 online and 8 GB of memory.

When I create the the database with the 8 bufferpools that existed in
DB2 Windows, then try to connect to the database, I receive an error
stating that an unexpected system error occurred.

In the db2diag.log file is this...
2005-10-10-12.11.15.144638-300 I3323813C393 LEVEL: Info
PID : 1020108 TID : 1 PROC : db2agent
(CNTNTVRT) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, data protection, sqlpinit, probe:2160
MESSAGE : Database started with next LSN of 0000000000FA000C.

2005-10-10-12.11.15.145138-300 I3324207C430 LEVEL: Info
PID : 1020108 TID : 1 PROC : db2agent
(CNTNTVRT) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, buffer pool services, sqlbCheckRegistryAndBpvars,
probe:160
MESSAGE : DB2_MMAP_READ/DB2_MMAP_WRITE has resulted in internal flags
of 0xf

2005-10-10-12.11.16.604672-300 I3324638C953 LEVEL: Severe
PID : 1020108 TID : 1 PROC : db2agent
(CNTNTVRT) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, base sys utilities, sqleAllocateAppGroup, probe:21
MESSAGE : Failed to allocate App Ctl Shr Mem Set with follwing error.
Reduce
APPGROUP_MEM_SZ. On 32bit AIX, this problem may also happen
when the
DB memory set is too big that it spills over to the APPGROUP
memory
address. Try reducing the DB memory size by using smaller
bufferpool(s), or reducing the values for the database
configuration
parameters that affect the size of the DB memory such as
DBHEAP,
CATALOGCACHE_SZ, LOCKLIST, PCKCACHESZ, etc...
DATA #1 : Hexdump, 4 bytes
0x2FF143CC : 850F 0005 ....

2005-10-10-12.11.16.604910-300 I3325592C497 LEVEL: Severe
PID : 1020108 TID : 1 PROC : db2agent
(CNTNTVRT) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, base sys utilities, sqleAllocateAppGroup, probe:20
RETCODE : ZRC=0x850F0005=-2062614523=SQLO_NOSEG
"No Storage Available for allocation"
DIA8305C Memory allocation failure occurred.

2005-10-10-12.11.16.605262-300 I3326090C398 LEVEL: Info
PID : 1020108 TID : 1 PROC : db2agent
(idle) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, base sys utilities, sqleRemoveFromDbAppGrpList,
probe:10
MESSAGE : App Group not allocated or not in DB list

2005-10-10-12.11.16.608487-300 I3326489C390 LEVEL: Info
PID : 1020108 TID : 1 PROC : db2agent
(idle) 0
INSTANCE: wcmprdi1 NODE : 000 DB : WCMPRDD2
APPHDL : 0-76 APPID: *LOCAL.wcmprdi1.051010171115
FUNCTION: DB2 UDB, data protection, sqlpterm, probe:3200
MESSAGE : Database shutdown with next LSN of 0000000000FA000C.
There is plenty of available physical memory on the server and the DBM
and DB config is set for Automatic Memeory.

The size of the 8 bufferpools together are 1.02 GB. When I cut the
bufferpool sizes in half to about 550 MB, I can then connect to the
database successfully.

Does anyone have any idea why this might be occurring?

Thanks in advance!!

Nov 12 '05 #1
2 9650
Are you using 32-bit DB2 code?

read the article about differences in memory allocation for different
operating systems. On AIX max database shared memory is 1.25 - 2 GB,
and besides bufferpools there are other memory structures you should
check. Is can possible that your configuration is about the limit:

http://www-128.ibm.com/developerwork...cle/dm-0406qi/

Regards, Artur Wronski

Nov 12 '05 #2
Artur,

Thanks so much. That article was great! Definitely one to print out
and keep handy at all times. I found exactly the condition that was
affecting my situation and the article even specifies how to resolve
it.

Thanks so much! I search IBM's site a lot but sometimes without much
luck cause they have so much content sometimes it's hard to get at what
I'm needing.

Thanks for pointing this article out. I recommend this to anyone who
wants to know how DB2 memory allocation works down to the technical
nitty-gritty!

Thanks again!

Martin
Artur wrote:
Are you using 32-bit DB2 code?

read the article about differences in memory allocation for different
operating systems. On AIX max database shared memory is 1.25 - 2 GB,
and besides bufferpools there are other memory structures you should
check. Is can possible that your configuration is about the limit:

http://www-128.ibm.com/developerwork...cle/dm-0406qi/

Regards, Artur Wronski


Nov 12 '05 #3

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

Similar topics

6
13825
by: kwijibo28 | last post by:
Hi all, I've got a simple question regarding stl containers. Consider this code: std::vector<float> foo; foo.resize(100); How do I know if memory allocation was successful? The resize...
4
6746
by: PaulR | last post by:
Hi, We have a Server running SLES 8 and 3GB memory, with 1 DB2 instance and 2 active Databases. General info... DB2level = "DB2 v8.1.0.72", "s040914", "MI00086", and FixPak "7" uname -a =...
8
4733
by: clsmyth | last post by:
Folks, Hi, I have never posted to a language group before so please excuse me if this is inappropriate. I have posted this to comp.unix.solaris (well, I am one of the folks on the thread at...
30
4657
by: MAG1301 | last post by:
I've detected memory leaks in our huge .NET 1.1 C# application but couldn't localize them directly. So I've reduced the code to the following console application: using System; using System.IO;...
66
3545
by: Johan Tibell | last post by:
I've written a piece of code that uses sockets a lot (I know that sockets aren't portable C, this is not a question about sockets per se). Much of my code ended up looking like this: if...
1
7942
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
34
2535
by: jacob navia | last post by:
Suppose that you have a module that always allocates memory without ever releasing it because the guy that wrote it was lazy, as lazy as me. Now, you want to reuse it in a loop. What do you do?...
13
3000
by: eternalLearner | last post by:
i am writing an client application that connects to the server and then sends data to server. but, the problem is that i get a java.net.ConnectException: Connection refused error. The code i have...
2
3289
by: ravishi | last post by:
Well, this is my first topic at this forum and I'm a newbie on C programming too. I'm coding a little program and I've used some "dynamic arrays" on it. Compiling and running the program on Linux...
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
7060
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,...
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...
1
4799
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...
0
3013
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...
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 ...
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.