473,789 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 memory usage help

Im runnign various versions of DB2 on various UNIX platforms
(Solaris / AIX).

DB2 is generally eating up about 30% of memory on these systems (4Gb
of RAM, which equates to over a gig). i want to limit DB2s memory
usage to a couple of hundred meg in total for the entire application,
but cannot seem to find out how to do this.

When i check the instance memory usage with db2mtrk, it says its only
using a few Megs. I cannot find out how to limit the whole operation
to something like 250M or 500M or there abouts.

Can anyone help?
Jun 27 '08
12 9949
bomahony wrote:
On May 29, 12:31 pm, "Dave Hughes" <d...@waveform. plus.comwrote:
bomahony wrote:
BTW is there a network GUI monitoring / administration tool
available for DB2, like Oracles Enterprise Manager?
That's the control center (db2cc) - although whether you'll find it
much use is another matter; I'm not a fan of it, personally I find
the command line the best way to administer the server - along with
the db2mc (http://db2mc.dfw.ibm.com/) tool to aid with monitoring
(only useful with DB2 9 and above, unfortunately). Anyway...

Thanks Dave

Ive used the db2cc, and also prefer the command line. I was hoping
there was some centralised tool i could use to manage lots of
instances / servers from one location.... Guess not ...
Well, yeah, that's the db2cc - you can manage multiple instances /
servers from db2cc running on a client, provided the client has all the
instances one wishes to manage cataloged correctly (i.e. both the
remote database and administration instances must be cataloged with all
necessary details).

For example, let's say we've got a couple of DB2 servers called F and G
which each have a bog standard db2inst1 database instance, containing
SAMPLE and TOOLSDB databases, and an administration instance. The
following commands could be used to "fully" catalog the instances and
databases such that they could be remotely administered with db2cc
(specifically, things like SYSTEM must be included to tie database and
administration instances together, and I think REMOTE_INSTANCE needs
specifying too - things that might usually be ommitted from cataloging
commands):

-- Catalog the database instances
CATALOG TCPIP NODE F
REMOTE f.localdomain SERVER 60000
REMOTE_INSTANCE db2inst1
SYSTEM F
OSTYPE LINUX;
CATALOG TCPIP NODE G
REMOTE g.localdomain SERVER 60000
REMOTE_INSTANCE db2inst1
SYSTEM G
OSTYPE LINUX;

-- Catalog the admin instances
CATALOG ADMIN TCPIP NODE FDAS
REMOTE f.localdomain
SYSTEM F;
CATALOG ADMIN TCPIP NODE GDAS
REMOTE g.localdomain
SYSTEM G;

-- Catalog the databases
CATALOG DB TOOLSDB AS FTOOLS AT NODE F;
CATALOG DB SAMPLE AS FSAMPLE AT NODE F;
CATALOG DB TOOLSDB AS GTOOLS AT NODE G;
CATALOG DB SAMPLE AS GSAMPLE AT NODE G;
Still, I'd stick to the command line - better for automating changes to
several servers via scripting and such like :-)

Do check out db2mc for your v9 server though. It doesn't need to run on
the server itself, just on any old box with a DB2 client + Apache + PHP
(and the ibm_db2 php driver). Provided the databases to monitor are
cataloged on the client it should work fine and provides handy screens
like memory usage, buffer pool hit ratios, the dynamic SQL cache, etc.
etc.

(incidentally, db2mc doesn't care about things like administration
instances being cataloged - it uses the new administrative stored
procedures and table functions introduced in DB2 9 to do its stuff)
Cheers,

Dave.
Jun 27 '08 #11
<snip>
(incidentally, db2mc doesn't care about things like administration
instances being cataloged - it uses the new administrative stored
procedures and table functions introduced in DB2 9 to do its stuff)

Cheers,

Dave
Dave is this in DB2 v9 or v9.5? someone else stated it was just
9.5.....

Jun 27 '08 #12
bomahony wrote:
<snip>
(incidentally, db2mc doesn't care about things like administration
instances being cataloged - it uses the new administrative stored
procedures and table functions introduced in DB2 9 to do its stuff)

Cheers,

Dave

Dave is this in DB2 v9 or v9.5? someone else stated it was just
9.5.....
I'm a bit fuzzy on this (I didn't get much chance to play with 9 - our
production jumped straight from 8 to 9.5), but as I understand it:

DB2 9 introduced a load of administrative stored procedures, some
views, and extended some existing ones from 8 like ADMIN_CMD to work
with lots more things.

DB2 9.5 added a whole pile of administrative views ontop of the
snapshot procedures, and added a few more stored procs itself (you'd
have to check the release notes or compare the infocenters to find out
which ones - I don't know offhand).

I've played with db2mc on 8, 9 (briefly), and 9.5. On 8, almost nothing
works (hardly surprising as it's not really meant to run with it :-).
On 9 I vaguely recall that many of the reports seemed to function
although there was the odd page that complained about a missing
view/proc, and I suspect some of the "actions" one could carry out like
forcing connections might not work. Naturally, everything works on 9.5.
Cheers,

Dave.
Jun 27 '08 #13

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

Similar topics

8
3677
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has 256 MB of Ram while the other has 2 GB of Ram. On the machine with less Ram, the process takes about 1 MB of Ram. On the machine with more Ram, it uses 9 MB of Ram. Is this normal and expected behavior?
2
422
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 test the stuff, I keep to open that child data form for about 10 times. the memory usage shown in GC and task manager both increase. Then I close all those forms. and perform GC collect. The memory usage shown in GC falls, however, the memory...
6
3708
by: Ganesan selvaraj | last post by:
I using C# .net. i want to split the text files based of the some condition. my source text file size may be 4 kb to 4 gb. some time when i split the i got the "out of memory exception. when i read from the file i read the 10mb and split the this content and clear the buffer and read the second 10 mb and so on. How can i rectify the problem?
7
4972
by: Jon Trickey | last post by:
We migrated to 8.1 from 7.2 this weekend. Everything ran ok over the weekend, but we have a light user load then (about 200 users.) Today when we had close to 600 users connecting and running applications, the db2syscs.exe process started gobbling up memory until it hit about 1.7 gigs (which seems to be the limit from what I've read) then it started crapping out.. We have shrunk the buffer pools to much lower that they used to be in 7,...
4
6468
by: RH | last post by:
Hi, I am building a windows application that has a feature that retrieves a set of records when a button is clicked. When the records are being retrieved I experience a complete system degradation, including other programs that become unresponsive. Here's what I found while the retrieval process is running: Using the Windows Task Manager, I can see the the "Page File (PF) Usage"
7
7176
by: Clement | last post by:
hi, i have an asp.net site and is using SQL Server 2k. i realize the aspnet_wp.exe memory usage keep growing and i will receive an error for the pages that call the sql connection. others page with no sql connection is fined. At the time when i encounter the error, i check the memory usage for aspnet_wp.exe = 60000kb sqlmangr.exe = 40000kb
7
2438
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app center cluster that are each running a number of web applications. For some reason one of the boxes' asp_wp process keeps recylcing on us. It seems that the memory just grows and grows and then recycles on us. I cam across and have read the...
16
2392
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. Example: After about 5 hours with a concurrent user base of about 150 users the application raises the aspnet_wp memory usage by almost 500MB. If our server guys modify the web.config this data is released and the workerprocess goes back to a...
4
3912
by: Ethan Chan | last post by:
I have recently been deploying a asp.net extranet application. The asp.net worker process starts off with 30MB virtual memory and then upon serving a few pages, the memory usage increases to a WHOOPIN! 200MB and eventully the asp.net process restarts at 300MB and my application becomes "unavailable" with my sessions being destroyed. Is there an explanation why the asp.net process uses that much memory? After i have logged out of my...
1
2047
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 the objects for which that memory was allocated are no longer live in the process. This is only a leak if peak memory goes up again each time you create any new objects. Try repeated allocations of a large dictionary and observe how memory...
0
10404
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...
0
10195
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
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,...
0
9979
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4090
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
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
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.