473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

db2 V9.5 SQL1084C


A while back I raised a discussion ( http://tinyurl.com/4h3qg7 )
regarding SQL1084C Shared memory segments cannot be allocated. We
still have this problem, so I thought I should bump the thread.

Current status:
[db2inst1@wbv7 ~/lelle/scripts]$ uname -a
Linux wbv7 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686
i386 GNU/Linux

[db2inst1@wbv7 ~/lelle/scripts]$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL09050"
with level identifier "03010107".
Informational tokens are "DB2 v9.5.0.0", "s071001", "LINUXIA3295", and
Fix Pack
"0".
Product is installed at "/opt/IBM/db2/V9.5".

[db2inst1@wbv7 ~/lelle/scripts]$ cat /proc/meminfo
MemTotal: 3895372 kB

[db2inst1@wbv7 ~/lelle/scripts]$ cat /proc/sys/kernel/shmmax
3221225472

Thus, we have 4Gb physical memory, and are allowed to use 3Gb shared
memory.

Last time I ran into this problem I did some monitoring:

[db2inst1@wbv7 ~/lelle/scripts]$ cat determine_db2_memory.sh
#!/bin/sh

echo "Instance memory"
db2mtrk -i -v | grep "Total:"

echo "Database memory"
db2mtrk -d -v | grep "Total:" | awk '{ sum += $2 } END { print "
Total: " sum }'

echo "Agent private memory"
db2mtrk -p -v | grep "Total:" | awk '{ sum += $2 } END { print "
Total: " sum }'
[db2inst1@wbv7 ~/lelle/scripts]$ ./determine_db2_memory.sh
Instance memory
Total: 21364736 bytes
Database memory
Total: 413859840
Agent private memory
Total: 16187392

This sums up to well under 500Mb of memory, which would leave us with
2.5Gb free shared mem. Now this leaves me with a number of questions:

1. Is db2 using shared memory other than that shown by db2mtrk? If so,
how can I determine how much memory it is using?

2. Is db2 unable to use the additional 2.5Gb shared memory?

Any thoughts anyone?
Sep 29 '08 #1
3 6423
On Sep 29, 4:06*pm, Lennart <Erik.Lennart.Jons...@gmail.comwrote:
[...]
2. Is db2 unable to use the additional 2.5Gb shared memory?
Judging from dbm cfg it looks as if it is willing to use it:

[db2inst1@wbv7 ~]$ db2 get dbm cfg show detail | grep INSTANCE
Size of instance shared memory (4KB) (INSTANCE_MEMORY) =
AUTOMATIC(775441) AUTOMATIC(775441)
/Lennart

Sep 29 '08 #2
On Sep 29, 12:18 pm, Lennart <Erik.Lennart.Jons...@gmail.comwrote:
On Sep 29, 4:06 pm, Lennart <Erik.Lennart.Jons...@gmail.comwrote:
[...]
2. Is db2 unable to use the additional 2.5Gb shared memory?

Judging from dbm cfg it looks as if it is willing to use it:

[db2inst1@wbv7 ~]$ db2 get dbm cfg show detail | grep INSTANCE
Size of instance shared memory (4KB) (INSTANCE_MEMORY) =
AUTOMATIC(775441) AUTOMATIC(775441)

/Lennart
Hi Lennart,

I notice now that you're using 32-bit Linux - didn't realize that in
your previous posts. That's likely the reason why you could activate
more databases in previous releases - before 9.5, each database had
it's own address space, and agents working for a particular database
only map in the address space for the database they are working on.
With the threaded engine in 9.5, all database address spaces are
contained in a single process address space, which limits how many
databases you can activate. See the following link for more details:
http://publib.boulder.ibm.com/infoce.../c0007192.html

db2mtrk won't show all memory allocated by the server. For more
accurate counters, you should use either the admin_get_dbp_mem_usage()
table function, or use 'db2pd -dbptnmem'.

Cheers,
Liam.
Sep 29 '08 #3
On 29 Sep, 22:20, Liam Finnie <lfin...@ca.ibm.comwrote:
On Sep 29, 12:18 pm, Lennart <Erik.Lennart.Jons...@gmail.comwrote:
On Sep 29, 4:06 pm, Lennart <Erik.Lennart.Jons...@gmail.comwrote:
[...]
2. Is db2 unable to use the additional 2.5Gb shared memory?
Judging from dbm cfg it looks as if it is willing to use it:
[db2inst1@wbv7 ~]$ db2 get dbm cfg show detail | grep INSTANCE
*Size of instance shared memory (4KB) *(INSTANCE_MEMORY) =
AUTOMATIC(775441) * * * * *AUTOMATIC(775441)
/Lennart

Hi Lennart,

I notice now that you're using 32-bit Linux - didn't realize that in
your previous posts. *That's likely the reason why you could activate
more databases in previous releases - before 9.5, each database had
it's own address space, and agents working for a particular database
only map in the address space for the database they are working on.
With the threaded engine in 9.5, all database address spaces are
contained in a single process address space, which limits how many
databases you can activate. *See the following link for more details:http://publib.boulder.ibm.com/infoce...dex.jsp?topic=...

db2mtrk won't show all memory allocated by the server. *For more
accurate counters, you should use either the admin_get_dbp_mem_usage()
table function, or use 'db2pd -dbptnmem'.

Cheers,
Liam.
Thanx a lot Liam, this explain the problems I'm facing.
/Lennart
Sep 30 '08 #4

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

Similar topics

5
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am...
3
by: Jurgen Haan | last post by:
Hiya everyone. I'm toying with a little db server. It's an AMD64 X2, so dual cpu 64 bit. It's a box with a total of 2GB of memory. We have a database server with comparable specs. an AMD64...
4
by: Roger Eriksson | last post by:
I did set up this thing and it worked well during my test so I invited the users to test it before it would be put into production. I got no complaits and thought it all was working. So I...
0
by: Phil Sherman | last post by:
This occurred in a non-supported UDB environment. I am providing it as "gotcha" information. SQL1084C error was received when attempting the first connect to the (formerly working) SAMPLE...
2
by: richard.crosh | last post by:
Hello, Using DB2 8.2 FP 9 - 32bit on Solaris 5.8 and a tape management tool of Veritas, the archive hangs on occassion. The error is "shmat failed" in the db2diag.log. Then DB2 hangs and self...
6
by: Lennart | last post by:
First some background, we are currently using V8.2 but is planning to move to 9.5 for the next next release of our application (within a year or so). In our development environment we have a lot of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.