If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How much memory a application connection takes when it connects to the database ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-10, 10:57
surbhi_gt1 surbhi_gt1 is offline
Registered User
 
Join Date: Apr 2009
Posts: 11
How much memory a application connection takes when it connects to the database ?

Hi,

I would like to understand How much memory a application connection takes when it connects to the database ?

How to calculate it?

We are running at db2 9.1 FP4 on Sun solaris .

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-17-10, 11:18
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
Agent private memory is allocated dynamically as needed, within the limits specified by instance and database parameters. You can only calculate the maximum amount that could be allocated, not the actual number. Check the manual: Database manager shared memory
Reply With Quote
  #3 (permalink)  
Old 03-17-10, 12:54
surbhi_gt1 surbhi_gt1 is offline
Registered User
 
Join Date: Apr 2009
Posts: 11
Can you please tell how much an idle connection i.e. "UOW Waiting" takes memory?
How much memory "Connect Completed" status takes?


Thanks
Surbhi
Reply With Quote
  #4 (permalink)  
Old 03-17-10, 14:51
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
Use application snapshots and/or db2mtrk to see actual memory usage for existing connections.
Reply With Quote
  #5 (permalink)  
Old 03-19-10, 03:03
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
an agent consumes 8 mb of memory, kindly correct me on this
regds
Paul
Reply With Quote
  #6 (permalink)  
Old 03-19-10, 08:34
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
Quote:
Originally Posted by Mathew_paul View Post
an agent consumes 8 mb of memory
Why 8? You sure it's not 16? Or 16.25?
Reply With Quote
  #7 (permalink)  
Old 03-19-10, 09:04
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 515
Wink

Quote:
Originally Posted by n_i View Post
Why 8? You sure it's not 16? Or 16.25?
NONSENCE! Everyone knows it is 42 (Phrases from The Hitchhiker's Guide to the Galaxy - Wikipedia, the free encyclopedia)
Reply With Quote
  #8 (permalink)  
Old 03-20-10, 00:48
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,612
Maybe this is where Mathew_paul got 8M from:
"...each idle agent can retain up to 8MB of its private memory"

The DB2 UDB memory model
Reply With Quote
  #9 (permalink)  
Old 03-20-10, 04:19
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
yes bella ur correct, apart from private memory it also use shared memory of db
so does it means it consumes more memory apart from 8 MB , and as the statements say the idle agent consumes 8 MB , wht abt the agent which is not idle
redgs
Paul
Reply With Quote
  #10 (permalink)  
Old 03-20-10, 10:45
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,007
Quote:
Originally Posted by Mathew_paul View Post
yes bella ur correct, apart from private memory it also use shared memory of db
so does it means it consumes more memory apart from 8 MB , and as the statements say the idle agent consumes 8 MB , wht abt the agent which is not idle
redgs
Paul
As already noted above, db2mtrk will tell you how much memory each agent is using. I don't understand what all this speculaiton is about.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On