473,386 Members | 1,630 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,386 software developers and data experts.

Why is DB2 not releasing memory sooner?

Customer is running a load test against a websphere application that uses
DB2. While the load test is running the memory usage of DB2 climbs from x
up to y. When the load test ends, the memory usage of DB2 returns to x.

However, sometimes after running the load test the memory usage does not
drop down to x right away; sometimes it takes a few hours. This "problem"
exists with their current live version of the software, and the version we
want to install. Customer will not install update until this "problem" is
resolved.

Customer is a government organization, in which the DB2 admin, the DB2
server admin, the server memory usage admin have collectivly as much
knowledge as a sack of door knobs.

Besides, "Go f*ck yourself.", what can we tell the customer?
Jul 16 '08 #1
5 3121
On Jul 16, 10:13*pm, "Ian Boyd" <ian.msnews...@avatopia.comwrote:
Customer is running a load test against a websphere application that uses
DB2. *While the load test is running the memory usage of DB2 climbs from x
up to y. When the load test ends, the memory usage of DB2 returns to x.

However, sometimes after running the load test the memory usage does not
drop down to x right away; sometimes it takes a few hours. This "problem"
exists with their current live version of the software, and the version we
want to install. Customer will not install update until this "problem" is
resolved.

Customer is a government organization, in which the DB2 admin, the DB2
server admin, the server memory usage admin have collectivly as much
knowledge as a sack of door knobs.

Besides, "Go f*ck yourself.", what can we tell the customer?
I assume that the "load test" refers to an application load test
rather than a data load using the db2 load utility. Normally most DB2
memory usage is static i.e. the memory required by the database and
table space buffer pools is allocated at database startup and does not
change. However in versions 8 and 9 IBM introduced automatic memory
management which means that DB2 will dynamically expand and contract
it's memory pools depending on load. I always switch this off because
I like to have control over memory usage. It may be that in your case
DB2 gradually releases memory as the load drops off.

Check the database parameters.

db2 connect to "yourDatabase" user xxxxx

db2 get db config for "yourDatabase"

Look at:

Self tuning memory (SELF_TUNING_MEM) = OFF
Jul 17 '08 #2
(I hope for your sake your customer doesn't use google...)

Perhaps i was a bit critical. But this has been going on for nine months
(October), and i'm tired.

Thanks for the info.

The idea of software deciding to maybe release memory will not be comforting
to people who like to run their controlled tests and want to see consistent
behaviour. But at least it gives me something.
Jul 17 '08 #3
I always switch this off because
>I like to have control over memory usage.
Thanks for the info.

But in general i assume you wouldn't recommand anyone just turn it off
willy-nilly, especially if they won't, or won't know how, to adjust memory
usage of DB2?
Jul 17 '08 #4
Ian,

What version/release of DB2 are you using and at what fixpak level? Have
you tried installing the latest fixpak for that version (in case there
are any memory release or memory leak defects)?

Larry E

Ian Boyd wrote:
Customer is running a load test against a websphere application that uses
DB2. While the load test is running the memory usage of DB2 climbs from x
up to y. When the load test ends, the memory usage of DB2 returns to x.

However, sometimes after running the load test the memory usage does not
drop down to x right away; sometimes it takes a few hours. This "problem"
exists with their current live version of the software, and the version we
want to install. Customer will not install update until this "problem" is
resolved.

Customer is a government organization, in which the DB2 admin, the DB2
server admin, the server memory usage admin have collectivly as much
knowledge as a sack of door knobs.

Besides, "Go f*ck yourself.", what can we tell the customer?

Jul 18 '08 #5
Ian Boyd wrote:
>Customer is running a load test against a websphere application that uses
DB2. While the load test is running the memory usage of DB2 climbs from
x up to y. When the load test ends, the memory usage of DB2 returns to x.

However, sometimes after running the load test the memory usage does not
drop down to x right away; sometimes it takes a few hours. This "problem"
exists with their current live version of the software, and the version
we want to install. Customer will not install update until this "problem"
is resolved.

Customer is a government organization, in which the DB2 admin, the DB2
server admin, the server memory usage admin have collectivly as much
knowledge as a sack of door knobs.

Besides, "Go f*ck yourself.", what can we tell the customer?
Make sure that the application is closing the connection every so often, at
least every 100 transactions. Here is a quote from the 8.2 Programming
Client Applications manual.
<begin quote>
"Closing a connection to a JDBC data source

When you have finished with a connection to a data source, it is essential
that you close the connection to the data source. Doing this releases the
Connection object's DB2 and JDBC resources immediately. To close the
connection to the data source, use the close method.

For example:

Connection con;
...
con.close();

If autocommit mode is not on, the connection needs to be on a unit-of-work
boundary before you close the connection."
<end quote>
I had a programming using IBM Content Manager appliction that was running
out of memory on numerous calls to an API to load data. Once the programmer
starting closing the connection after 100 calls, everything worked fine.
Jul 18 '08 #6

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

Similar topics

4
by: lebo | last post by:
Hi I'm trying to understand how Python handles memory usage and dynamic object loading and unloading. Problem to solve? Build a very low memory footprint (non-GUI) Python application for...
5
by: Valerie Hough | last post by:
Currently our client runs one particular C# .NET executable, and after a few hours performance slows to a crawl. It would be very useful for me to be able to rule in (or out) the possibility that...
7
by: trialproduct2004 | last post by:
Hi all I am having application in c# where i am loading one table of database into dataset. My table is of large size. so whenever i am loading that into dataset my memory size is getting...
2
by: M.Ob | last post by:
Hello... I am having issues with my asp.net apps not releasing memory. The memory usage for the process w3p.exe continues to grow to it's allowable limit and does not drop until the app pool is...
8
by: Sean | last post by:
I have a service that is pulling alot of records from a SQL Server table in a DataSet. This process takes up alot of memory, which is to be expected. But when the process is finished, I am clearing...
5
by: Mark Rae | last post by:
Hi, I'm encountering a strange phenomenon whereby a DataSet object is not releasing its memory when it's being disposed and/or set to Nothing. It is part of a Windows service written in VB.NET...
12
by: iker.arizmendi | last post by:
Is there any way to get Python to release memory back to the C allocator? I'm currently running a script that goes through the following steps: 1) Creates a very large number of Python objects...
1
by: amollokhande1 | last post by:
Hi All, We have ASP.Net based content management web application. We are performing lots of XML based operations like setting the innerxml, loading the xml, string replace operations on XML etc....
2
by: enggwaqas | last post by:
Hi guys, I have a memory problem in my vb.net application. It's actually a point of sales system, which must be keep running the whole day. The problem is: application is not releasing any memory...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...
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...

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.