473,674 Members | 4,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2122
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...@com cast.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...@com cast.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...@com cast.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...@com cast.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
15219
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 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. In fact so many of you kind people confess to having succeeded in doing it. I have tried...
8
4609
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
4829
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 utilh pckcacheh catcacheh bph bph bph 96.0K 16.0K 3.4M 320.0K 1.0G 592.0K 336.0K bph bph lockh dbh appctlh appctlh appctlh
1
3448
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 going wrong. The program has been written to do the following tasks: - Select remote server - Select from two specific services
0
3932
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 - Select from two specific services - Check the status of the server
4
3149
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 further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
0
1285
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: Memory for instance fcmbp monh other 16.7M 176.0K 5.7M
2
3339
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 KEY MODE OWNER GROUP SEGSZ Shared Memory: m 0 0xffffffff --rw-rw---- root system 4096 m 1 0xffffffff D-rw-rw-rw- db2inst1 db2iadm1 140665792 m 70254596 0x0d00055c --rw-rw---- root system ...
2
11714
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 another CD, and gets caught in a loop when I try to delete it! It mentions MS.net frame error # 1706. The "details" code follows...hope someone can help me to either fix it or get out of the loop! I tried running "Windows Registry Repair Pro"...but no help...
0
8510
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8438
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
8964
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
8660
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
5739
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
4458
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2859
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
2110
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1856
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.