473,405 Members | 2,185 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,405 software developers and data experts.

db2 udb on windows - db2mtrk

I have a db2 9 FP3a installation with one instance and one database
installed.
I have 4G of physical RAM and I have enabled the /3G switch in
boot.ini.
I am using STTM.
If I run db2mtrk the database never consumes more than 1.2G - why?

Here's the db2mtrk output:
Tracking Memory on: 2007/11/19 at 15:13:43

Memory for instance

Database Monitor Heap is of size 1245184 bytes
Other Memory is of size 10223616 bytes
Total: 11468800 bytes

Memory for database: B001

Backup/Restore/Util Heap is of size 65536 bytes
Package Cache is of size 15794176 bytes
Catalog Cache Heap is of size 1114112 bytes
Buffer Pool Heap (1) is of size 826081280 bytes
Buffer Pool Heap (System 32k buffer pool) is of size 720896 bytes
Buffer Pool Heap (System 16k buffer pool) is of size 458752 bytes
Buffer Pool Heap (System 8k buffer pool) is of size 327680 bytes
Buffer Pool Heap (System 4k buffer pool) is of size 262144 bytes
Shared Sort Heap is of size 589824 bytes
Lock Manager Heap is of size 407371776 bytes
Database Heap is of size 5636096 bytes
Other Memory is of size 131072 bytes
Total: 1258553344 bytes

Nov 19 '07 #1
6 2108
Do you mean that you are running STMM? (you wrote STTM below)

If in fact you are running STMM, there could be several reasons why
your database is not consuming more memory:

1) You may have set SELF_TUNING_MEM to ON but might not have set
DATABASE_MEMORY to AUTOMATIC. Without having DATABASE_MEMORY set to
AUTOMATIC, the total memory used by the database will not grow.

2) The workload that you're running might not require any more
memory. This can happen in cases where the workload isn't driving the
database hard enough or if the database is small.

3) You may have started running STMM a short time ago and its memory
tuning has not yet completed.

4) You may have other applications running on the machine (not to
mention the OS) which are consuming memory that is therefore
unavailable for the database. Before the database is able to increase
its memory usage it must first ensure that there is free memory
available on the box. If there is no free memory available, the
database will not grow its memory consumption.

Do any of these situations seem likely?

Thanks,
Adam

On Nov 19, 3:15 pm, dunleav1 <jmdunle...@comcast.netwrote:
I have a db2 9 FP3a installation with one instance and one database
installed.
I have 4G of physical RAM and I have enabled the /3G switch in
boot.ini.
I am using STTM.
If I run db2mtrk the database never consumes more than 1.2G - why?

Here's the db2mtrk output:
Tracking Memory on: 2007/11/19 at 15:13:43

Memory for instance

Database Monitor Heap is of size 1245184 bytes
Other Memory is of size 10223616 bytes
Total: 11468800 bytes

Memory for database: B001

Backup/Restore/Util Heap is of size 65536 bytes
Package Cache is of size 15794176 bytes
Catalog Cache Heap is of size 1114112 bytes
Buffer Pool Heap (1) is of size 826081280 bytes
Buffer Pool Heap (System 32k buffer pool) is of size 720896 bytes
Buffer Pool Heap (System 16k buffer pool) is of size 458752 bytes
Buffer Pool Heap (System 8k buffer pool) is of size 327680 bytes
Buffer Pool Heap (System 4k buffer pool) is of size 262144 bytes
Shared Sort Heap is of size 589824 bytes
Lock Manager Heap is of size 407371776 bytes
Database Heap is of size 5636096 bytes
Other Memory is of size 131072 bytes
Total: 1258553344 bytes
Nov 20 '07 #2
On Nov 19, 3:15 pm, dunleav1 <jmdunle...@comcast.netwrote:
I have a db2 9 FP3a installation with one instance and one database
installed.
I have 4G of physical RAM and I have enabled the /3G switch in
boot.ini.
I am using STTM.
If I run db2mtrk the database never consumes more than 1.2G - why?

Here's the db2mtrk output:
Tracking Memory on: 2007/11/19 at 15:13:43

Memory for instance

Database Monitor Heap is of size 1245184 bytes
Other Memory is of size 10223616 bytes
Total: 11468800 bytes

Memory for database: B001

Backup/Restore/Util Heap is of size 65536 bytes
Package Cache is of size 15794176 bytes
Catalog Cache Heap is of size 1114112 bytes
Buffer Pool Heap (1) is of size 826081280 bytes
Buffer Pool Heap (System 32k buffer pool) is of size 720896 bytes
Buffer Pool Heap (System 16k buffer pool) is of size 458752 bytes
Buffer Pool Heap (System 8k buffer pool) is of size 327680 bytes
Buffer Pool Heap (System 4k buffer pool) is of size 262144 bytes
Shared Sort Heap is of size 589824 bytes
Lock Manager Heap is of size 407371776 bytes
Database Heap is of size 5636096 bytes
Other Memory is of size 131072 bytes
Total: 1258553344 bytes
Hello,

You are likely configured to use more than 1.2GB of memory - db2mtrk
only shows how much memory has been currently allocated. Under
database memory, the used utility heap is only about 64K, and the used
shared sort heap is only about 590K. If you look at the in-memory
settings for the two associated db config parms ('db2 get db cfg show
detail', look for util_heap_sz and sheapthres_shr), you should see how
large they are allowed to grow. If, for instance, your utility heap
is much larger than you think you will need, then you can decrease the
UTIL_HEAP_SZ configuration parameter (that one isn't tuned by STMM).
STMM will tune sort heap memory (as long as sheapthres_shr is set to
AUTOMATIC) according to the sort workload on your instance - if you
were to take a db2mtrk snapshot while there were many active sorts,
you would see a much larger sort heap usage (and correspondingly, see
that DB2 is using more memory).

Another thing to check is that database_memory is set to AUTOMATIC
(the default on Windows) - if not, then set it to AUTOMATIC so that
STMM can tune that.

Finally, there are other address space consumers that db2mtrk can't
report on - for instance, loaded DLLs, global variables, etc. You're
also missing private memory - 'db2mtrk -p' - that can contribute
significantly to DB2's overall memory usage if you have a large number
of agents.

Cheers,
Liam.
Nov 20 '07 #3
Thanks for the input.
Yes, it's STMM.
DATABASE_MEMORY AUTOMATIC
SELF_TUNING_MEM ON

There is a 4G of RAM on the windows bow and I have the /3G switch set
in the boot.ini.
If I look at the task manager there is 1.7G of free memory.
There are no other programs running on the box consuming memory.
Here is the output of db2mtrk -i -d -v -p:
Tracking Memory on: 2007/11/28 at 09:39:36
Memory for instance
Database Monitor Heap is of size 327680 bytes
Other Memory is of size 9961472 bytes
Total: 10289152 bytes
Memory for database: B001
Backup/Restore/Util Heap is of size 65536 bytes
Package Cache is of size 1572864 bytes
Catalog Cache Heap is of size 983040 bytes
Buffer Pool Heap (1) is of size 1082327040 bytes
Buffer Pool Heap (System 32k buffer pool) is of size 720896 bytes
Buffer Pool Heap (System 16k buffer pool) is of size 458752 bytes
Buffer Pool Heap (System 8k buffer pool) is of size 327680 bytes
Buffer Pool Heap (System 4k buffer pool) is of size 262144 bytes
Shared Sort Heap is of size 262144 bytes
Lock Manager Heap is of size 194445312 bytes
Database Heap is of size 5439488 bytes
Other Memory is of size 131072 bytes
Total: 1286995968 bytes
Memory for agent 5876
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Application Heap is of size 196608 bytes
Total: 327680 bytes
Memory for agent 4844
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Application Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 1604
Other Memory is of size 196608 bytes
Application Heap is of size 655360 bytes
Application Control Heap is of size 65536 bytes
Total: 917504 bytes
Memory for agent 4972
Application Heap is of size 65536 bytes
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 2788
Other Memory is of size 65536 bytes
Application Heap is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 664
Other Memory is of size 458752 bytes
Application Heap is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 589824 bytes
Memory for agent 2248
Other Memory is of size 589824 bytes
Application Heap is of size 917504 bytes
Application Control Heap is of size 65536 bytes
Total: 1572864 bytes
Nov 28 '07 #4
It's looking like this is going to require some more detailed
analysis. Can you please send me your db2diag.log file and your
stmmlogs (located in an stmmlog directory in the same place you'd find
the db2diag.log file)?

Thanks,
Adam

On Nov 28, 9:44 am, dunleav1 <jmdunle...@comcast.netwrote:
Thanks for the input.
Yes, it's STMM.
DATABASE_MEMORY AUTOMATIC
SELF_TUNING_MEM ON

There is a 4G of RAM on the windows bow and I have the /3G switch set
in the boot.ini.
If I look at the task manager there is 1.7G of free memory.
There are no other programs running on the box consuming memory.

Here is the output of db2mtrk -i -d -v -p:
Tracking Memory on: 2007/11/28 at 09:39:36
Memory for instance
Database Monitor Heap is of size 327680 bytes
Other Memory is of size 9961472 bytes
Total: 10289152 bytes
Memory for database: B001
Backup/Restore/Util Heap is of size 65536 bytes
Package Cache is of size 1572864 bytes
Catalog Cache Heap is of size 983040 bytes
Buffer Pool Heap (1) is of size 1082327040 bytes
Buffer Pool Heap (System 32k buffer pool) is of size 720896 bytes
Buffer Pool Heap (System 16k buffer pool) is of size 458752 bytes
Buffer Pool Heap (System 8k buffer pool) is of size 327680 bytes
Buffer Pool Heap (System 4k buffer pool) is of size 262144 bytes
Shared Sort Heap is of size 262144 bytes
Lock Manager Heap is of size 194445312 bytes
Database Heap is of size 5439488 bytes
Other Memory is of size 131072 bytes
Total: 1286995968 bytes
Memory for agent 5876
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Application Heap is of size 196608 bytes
Total: 327680 bytes
Memory for agent 4844
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Application Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 1604
Other Memory is of size 196608 bytes
Application Heap is of size 655360 bytes
Application Control Heap is of size 65536 bytes
Total: 917504 bytes
Memory for agent 4972
Application Heap is of size 65536 bytes
Other Memory is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 2788
Other Memory is of size 65536 bytes
Application Heap is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 196608 bytes
Memory for agent 664
Other Memory is of size 458752 bytes
Application Heap is of size 65536 bytes
Application Control Heap is of size 65536 bytes
Total: 589824 bytes
Memory for agent 2248
Other Memory is of size 589824 bytes
Application Heap is of size 917504 bytes
Application Control Heap is of size 65536 bytes
Total: 1572864 bytes
Nov 30 '07 #5
I'll send an email with the requested files.
Dec 6 '07 #6
On Dec 6, 2:14 pm, dunleav1 <jmdunle...@comcast.netwrote:
I'll send an email with the requested files.
Weird, it looks like db2 is consuming more than 1.2G now. I'll keep an
eye on this and post an update if it happens again.
Dec 10 '07 #7

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

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
2
by: nek | last post by:
Would someone care to comment the following results of DB2MTRK execution, thanks. The platform is W2K SP with DB2 V8.1, SP2. We have this result when running db2mtrk -i Appctlh ...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
0
by: cbielins | last post by:
We are about to 'stress test' our DB2 environment. I've played with db2mtrk off and on, trying to figure out how it's mapping the memory to its components. If I have the following output: ...
2
by: truthinlife | last post by:
I am running the following commands on an AIX 5.2 server, using db2 udb v8.2.2. my ipcs -mb command gives me the following: IPC status from /dev/mem as of Mon Nov 20 12:47:25 EST 2006 T ID...
2
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.