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

Analyzing memory usage by db2agents

For once, I have a customer that is more concerned with reducing the
memory usage than with increasing performance - a new direction in
tuning for me. I'm looking at db2 agent processes on the system - db2
7.2 fp 11 on RH Linux - no parallelism (neither inter or intra
partition). There are generally about 14 connections and therefore
about 14 db2agents. OS analysis shows that each agent is using in the
range of 260 - 270 MB of memory. Looking at the configuration and the
parameters which affect the maximum amount of memory used by a
db2agent, I come up with about 20 MB as the upper limit:
applheapsz = 2048
sortheap = 256
stmtheap = 2048
aslheapsz = 1000
DRDA heap, UDF shared memory, and statistics heap size are irrelevant
because none of them are used on this system. (no, we don't do
runstats, but I'm trying to talk them into it ... another story)

What am I missing in my calculations here? why are the agents using
this much memory?

Thanks,

Ember Crooks
Nov 12 '05 #1
2 3582
Ian
Ember wrote:
For once, I have a customer that is more concerned with reducing the
memory usage than with increasing performance - a new direction in
tuning for me. I'm looking at db2 agent processes on the system - db2
7.2 fp 11 on RH Linux - no parallelism (neither inter or intra
partition). There are generally about 14 connections and therefore
about 14 db2agents. OS analysis shows that each agent is using in the
range of 260 - 270 MB of memory. Looking at the configuration and the
parameters which affect the maximum amount of memory used by a
db2agent, I come up with about 20 MB as the upper limit:
applheapsz = 2048
sortheap = 256
stmtheap = 2048
aslheapsz = 1000
DRDA heap, UDF shared memory, and statistics heap size are irrelevant
because none of them are used on this system. (no, we don't do
runstats, but I'm trying to talk them into it ... another story)

What am I missing in my calculations here? why are the agents using
this much memory?


You didn't say how you're calculating the number (260-270 Mb), but
generally the numbers you get from 'ps' show the total memory associated
with the process, including shared memory segments that the agents have
attached to (i.e. bufferpools).


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2

"Ian" <ia*****@mobileaudio.com> wrote in message
news:40********@corp.newsgroups.com...
Ember wrote:
For once, I have a customer that is more concerned with reducing the
memory usage than with increasing performance - a new direction in
tuning for me. I'm looking at db2 agent processes on the system - db2
7.2 fp 11 on RH Linux - no parallelism (neither inter or intra
partition). There are generally about 14 connections and therefore
about 14 db2agents. OS analysis shows that each agent is using in the
range of 260 - 270 MB of memory. Looking at the configuration and the
parameters which affect the maximum amount of memory used by a
db2agent, I come up with about 20 MB as the upper limit:
applheapsz = 2048
sortheap = 256
stmtheap = 2048
aslheapsz = 1000
DRDA heap, UDF shared memory, and statistics heap size are irrelevant
because none of them are used on this system. (no, we don't do
runstats, but I'm trying to talk them into it ... another story)

What am I missing in my calculations here? why are the agents using
this much memory?
You didn't say how you're calculating the number (260-270 Mb), but
generally the numbers you get from 'ps' show the total memory associated
with the process, including shared memory segments that the agents have
attached to (i.e. bufferpools).


I agree with Ian. You must add part of the shared memory into your total
number. The snapshot output from version8.1 will give us more ideas about
the db2 memory/heap usage than version7.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Nov 12 '05 #3

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

Similar topics

5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
0
by: Joe Ross | last post by:
(Apologies in advance if there is a better forum for asking advice on this topic). Our ASP.NET application occasionally starts spitting out OutOfMemory exceptions. When this happens, the memory...
12
by: Zach | last post by:
Hi, I am making changes to a few modules of code and wish to test to see if my changes have made any increases in memory utilization, execution speed etc... The code is part of a server so lots...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.