473,508 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Severe memory problem with V8

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, but db2syscs.exe still runs out of memory
after running for a few hours. The application and user loads are
exactly the same as before the migration. It's acting like a memory
leak, but it also seems to be related to the number of agents. When
the database first comes up, it uses about 300 megs of memory. After
all the users connect, it uses about 700 megs of memory. The memory
usage continues to climb until it starts to die when it hits about 1.7
gig. What changed in 8.1 to cause this? What can I do to fix it?
I'm getting tired of restarting db2 avery few hours.

Here is what I have tried so far to no avail-

db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
on to too much memory they didn't need any more.

NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
and max_connections because I never had to worry about running out of
memory before, and I figured it was more efficient to keep the extra
agents around

NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
limit the agents, and the memory, but still allow enought connections.
I also read that connection concentrator was supposed to kick in and
help this work, but instead, after about 100 people connected, people
could not connect anymore. No error was returned to the user, the
application would just hang when it tried to connect to the database.

We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
processors and 4 gigs of memory. The problems we are having are not a
system out of memory issue, its a db2 using more memory that it can
handle problem.

I'm out of ideas. We have opened a PMR with IBM support, but they
have not been any help yet.

Regards,
Jon
Nov 12 '05 #1
7 4955

"Jon Trickey" <jt****@safeautoNS.com> wrote in message
news:42********************************@4ax.com...
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, but db2syscs.exe still runs out of memory
after running for a few hours. The application and user loads are
exactly the same as before the migration. It's acting like a memory
leak, but it also seems to be related to the number of agents. When
the database first comes up, it uses about 300 megs of memory. After
all the users connect, it uses about 700 megs of memory. The memory
usage continues to climb until it starts to die when it hits about 1.7
gig. What changed in 8.1 to cause this? What can I do to fix it?
I'm getting tired of restarting db2 avery few hours.
If I were you I would use the same mem configuration first. Compare the
memory usage. Then begin to use connection concentrator - concentrator will
change the way db2 use memory (shared or private).
What is the version of the db2 client?

Here is what I have tried so far to no avail-

db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
on to too much memory they didn't need any more.

NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
and max_connections because I never had to worry about running out of
memory before, and I figured it was more efficient to keep the extra
agents around

NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
limit the agents, and the memory, but still allow enought connections.
I also read that connection concentrator was supposed to kick in and
help this work, but instead, after about 100 people connected, people
could not connect anymore. No error was returned to the user, the
application would just hang when it tried to connect to the database.

We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
processors and 4 gigs of memory. The problems we are having are not a
system out of memory issue, its a db2 using more memory that it can
handle problem.

I'm out of ideas. We have opened a PMR with IBM support, but they
have not been any help yet.

Regards,
Jon

Nov 12 '05 #2
JS
"Fan Ruo Xin" <fa*****@sbcglobal.net> wrote in message news:<Fp****************@newssvr17.news.prodigy.co m>...
"Jon Trickey" <jt****@safeautoNS.com> wrote in message
news:42********************************@4ax.com...
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, but db2syscs.exe still runs out of memory
after running for a few hours. The application and user loads are
exactly the same as before the migration. It's acting like a memory
leak, but it also seems to be related to the number of agents. When
the database first comes up, it uses about 300 megs of memory. After
all the users connect, it uses about 700 megs of memory. The memory
usage continues to climb until it starts to die when it hits about 1.7
gig. What changed in 8.1 to cause this? What can I do to fix it?
I'm getting tired of restarting db2 avery few hours.


If I were you I would use the same mem configuration first. Compare the
memory usage. Then begin to use connection concentrator - concentrator will
change the way db2 use memory (shared or private).
What is the version of the db2 client?

Here is what I have tried so far to no avail-

db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
on to too much memory they didn't need any more.

NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
and max_connections because I never had to worry about running out of
memory before, and I figured it was more efficient to keep the extra
agents around

NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
limit the agents, and the memory, but still allow enought connections.
I also read that connection concentrator was supposed to kick in and
help this work, but instead, after about 100 people connected, people
could not connect anymore. No error was returned to the user, the
application would just hang when it tried to connect to the database.

We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
processors and 4 gigs of memory. The problems we are having are not a
system out of memory issue, its a db2 using more memory that it can
handle problem.

I'm out of ideas. We have opened a PMR with IBM support, but they
have not been any help yet.

Regards,
Jon

Yes, we have seen the same memory gobbling issues, you can use db2mtrk
to see where all the memory is going. Make sure the connection
concentrator is turned on.

I would try setting MEMMAXFREE even lower, try 4096, this parameter
should shrink the agents memory to the size specified when the agent
is idle. Keep in mind that the preferred behaviour in v8 is for the
database manager to steal agents that are idle, not create new ones.

You may have to increase the addressable memory space for db2 by
modifying the boot.ini file. 1.7 gig is the limit, but it can be
increased to 3 gigs
Nov 12 '05 #3
If you have connnection concentrator enabled, then more shared memory
is used. Check the value of priv_mem_thresh and change it to reduce
the amount of memory retained per agent. Investigate the use of the
3GB switch which gives DB@ 3GB of virtual memory and reduces Windows
to 1GB on Advanced server. Many clients are using this to get around
the 1.75 GB limitation. I have a client who is on 8.1.5 from 7.2 and
they only had problems cause they changed the value of priv_mem_thresh
to cause more memory to be retained. Other settings at automatic
turned out ok....HTH Phil


fy***@hotmail.com (JS) wrote in message news:<e9**************************@posting.google. com>...
"Fan Ruo Xin" <fa*****@sbcglobal.net> wrote in message news:<Fp****************@newssvr17.news.prodigy.co m>...
"Jon Trickey" <jt****@safeautoNS.com> wrote in message
news:42********************************@4ax.com...
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, but db2syscs.exe still runs out of memory
after running for a few hours. The application and user loads are
exactly the same as before the migration. It's acting like a memory
leak, but it also seems to be related to the number of agents. When
the database first comes up, it uses about 300 megs of memory. After
all the users connect, it uses about 700 megs of memory. The memory
usage continues to climb until it starts to die when it hits about 1.7
gig. What changed in 8.1 to cause this? What can I do to fix it?
I'm getting tired of restarting db2 avery few hours.


If I were you I would use the same mem configuration first. Compare the
memory usage. Then begin to use connection concentrator - concentrator will
change the way db2 use memory (shared or private).
What is the version of the db2 client?

Here is what I have tried so far to no avail-

db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
on to too much memory they didn't need any more.

NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
and max_connections because I never had to worry about running out of
memory before, and I figured it was more efficient to keep the extra
agents around

NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
limit the agents, and the memory, but still allow enought connections.
I also read that connection concentrator was supposed to kick in and
help this work, but instead, after about 100 people connected, people
could not connect anymore. No error was returned to the user, the
application would just hang when it tried to connect to the database.

We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
processors and 4 gigs of memory. The problems we are having are not a
system out of memory issue, its a db2 using more memory that it can
handle problem.

I'm out of ideas. We have opened a PMR with IBM support, but they
have not been any help yet.

Regards,
Jon

Yes, we have seen the same memory gobbling issues, you can use db2mtrk
to see where all the memory is going. Make sure the connection
concentrator is turned on.

I would try setting MEMMAXFREE even lower, try 4096, this parameter
should shrink the agents memory to the size specified when the agent
is idle. Keep in mind that the preferred behaviour in v8 is for the
database manager to steal agents that are idle, not create new ones.

You may have to increase the addressable memory space for db2 by
modifying the boot.ini file. 1.7 gig is the limit, but it can be
increased to 3 gigs

Nov 12 '05 #4
Thanks for your help. I had forgotten about the /3GB switch. I had
tried it a long time ago in previous versions of DB2 and could not get
it to work, but it's working now. I also lowered the applheapsz to
512 from 1024, and this helped quite a bit. We had set this higher
quite some time ago in a previous version because we were getting
messages in the diag log to increase it. I found a paper from IBM
that talks about the increased memory usage at the agent level and it
says that you should be able to significantly decrease applheapsz
because of the way V8 handles agent memory. I'm trying this set at
256 now on a test server to see if I can decrease it further. I wish
they would post this kind of info in the release notes or upgrade
documents.

About connection concentrator, I am having trouble finding much
documentation on it. All I can find is that setting max_connections >
numagents should enable it. Is there any way to tell if it is on?
Does the application have to do anything special for it? When we
increased max_connections > numagent we could not get very many more
applications than maxagents connected to the database.

Thanks again,
Jon

On 11 Aug 2004 18:59:23 -0700, pg******@gunningts.com (Phil Gunning)
wrote:
If you have connnection concentrator enabled, then more shared memory
is used. Check the value of priv_mem_thresh and change it to reduce
the amount of memory retained per agent. Investigate the use of the
3GB switch which gives DB@ 3GB of virtual memory and reduces Windows
to 1GB on Advanced server. Many clients are using this to get around
the 1.75 GB limitation. I have a client who is on 8.1.5 from 7.2 and
they only had problems cause they changed the value of priv_mem_thresh
to cause more memory to be retained. Other settings at automatic
turned out ok....HTH Phil


fy***@hotmail.com (JS) wrote in message news:<e9**************************@posting.google. com>...
"Fan Ruo Xin" <fa*****@sbcglobal.net> wrote in message news:<Fp****************@newssvr17.news.prodigy.co m>...
> "Jon Trickey" <jt****@safeautoNS.com> wrote in message
> news:42********************************@4ax.com...
> > 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, but db2syscs.exe still runs out of memory
> > after running for a few hours. The application and user loads are
> > exactly the same as before the migration. It's acting like a memory
> > leak, but it also seems to be related to the number of agents. When
> > the database first comes up, it uses about 300 megs of memory. After
> > all the users connect, it uses about 700 megs of memory. The memory
> > usage continues to climb until it starts to die when it hits about 1.7
> > gig. What changed in 8.1 to cause this? What can I do to fix it?
> > I'm getting tired of restarting db2 avery few hours.
>
> If I were you I would use the same mem configuration first. Compare the
> memory usage. Then begin to use connection concentrator - concentrator will
> change the way db2 use memory (shared or private).
> What is the version of the db2 client?
>
> >
> > Here is what I have tried so far to no avail-
> >
> > db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
> > on to too much memory they didn't need any more.
> >
> > NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
> > and max_connections because I never had to worry about running out of
> > memory before, and I figured it was more efficient to keep the extra
> > agents around
> >
> > NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
> > limit the agents, and the memory, but still allow enought connections.
> > I also read that connection concentrator was supposed to kick in and
> > help this work, but instead, after about 100 people connected, people
> > could not connect anymore. No error was returned to the user, the
> > application would just hang when it tried to connect to the database.
> >
> > We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
> > processors and 4 gigs of memory. The problems we are having are not a
> > system out of memory issue, its a db2 using more memory that it can
> > handle problem.
> >
> > I'm out of ideas. We have opened a PMR with IBM support, but they
> > have not been any help yet.
> >
> > Regards,
> > Jon

Yes, we have seen the same memory gobbling issues, you can use db2mtrk
to see where all the memory is going. Make sure the connection
concentrator is turned on.

I would try setting MEMMAXFREE even lower, try 4096, this parameter
should shrink the agents memory to the size specified when the agent
is idle. Keep in mind that the preferred behaviour in v8 is for the
database manager to steal agents that are idle, not create new ones.

You may have to increase the addressable memory space for db2 by
modifying the boot.ini file. 1.7 gig is the limit, but it can be
increased to 3 gigs


Nov 12 '05 #5
You've already done what I was going to recommend:
We have opened a PMR with IBM support, but they have not been any help yet.
I recommend you keep bugging IBM support until they come up with a solution.
There isn't any better course of action for what seems to be a memory leak
(==> bug).

"Jon Trickey" <jt****@safeautoNS.com> wrote in message
news:42********************************@4ax.com... 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, but db2syscs.exe still runs out of memory
after running for a few hours. The application and user loads are
exactly the same as before the migration. It's acting like a memory
leak, but it also seems to be related to the number of agents. When
the database first comes up, it uses about 300 megs of memory. After
all the users connect, it uses about 700 megs of memory. The memory
usage continues to climb until it starts to die when it hits about 1.7
gig. What changed in 8.1 to cause this? What can I do to fix it?
I'm getting tired of restarting db2 avery few hours.

Here is what I have tried so far to no avail-

db2set DB2MEMMAXFREE=262144 I thought maybe the agents were holding
on to too much memory they didn't need any more.

NUM_POOLAGENTS=100 This used to be set at 2000 along with maxagents
and max_connections because I never had to worry about running out of
memory before, and I figured it was more efficient to keep the extra
agents around

NUMAGENTS=100 , MAX_CONNECTIONS=2000 My hope was that this would
limit the agents, and the memory, but still allow enought connections.
I also read that connection concentrator was supposed to kick in and
help this work, but instead, after about 100 people connected, people
could not connect anymore. No error was returned to the user, the
application would just hang when it tried to connect to the database.

We are running WSE 8.1 fp6 on windows 2003 with 2 xeon 3.2 gig
processors and 4 gigs of memory. The problems we are having are not a
system out of memory issue, its a db2 using more memory that it can
handle problem.

I'm out of ideas. We have opened a PMR with IBM support, but they
have not been any help yet.

Regards,
Jon

Nov 12 '05 #6
test

Nov 12 '05 #7
Think you have INTRA-PARALLEL and /or concentrator enabled

Go to
http://www-106.ibm.com/developerwork...cle/dm-0406qi/
See <Application group shared memory> part and you will understand why db2
needs more memory than before.

Taking DB2 DB CFG default value, DB2 needs 160 Mb (Application group
shared memory) for set of 78 applications. If you have 600 applications
connected then 8 (=600/78) application group shared memory are needed ,
which represents (160 Mb * 8 ) of memory.

Reduce app_ctl_heap_sz and/or appgroup_mem_sz


Nov 12 '05 #8

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

Similar topics

0
1355
by: Dharan | last post by:
"A severe error occurred on the current command. The results, if any, should be discarded." I get this error when i tried to execute a stored procedure with a input parameter of type varchar...
0
1001
by: Talin | last post by:
When starting with a Managed Visual C++ application, and attempting to consume an existing Web Service, and adding a Web Service Proxy file as a .h file, it is not possible to successfully build...
0
908
by: Bonj | last post by:
I'm having severe issues with my DLL which is using CreateWindow to display a user-input window. I don't want to use DialogBox and a dialog resource because it might be called from a console...
1
1932
by: Sven Schimmel | last post by:
Hello all, I face the problem that occasional in one WebApplication the following error occures: System.Data.SqlClient.SqlException: A severe error occurred on the current command. The...
2
1231
by: Dave Brown | last post by:
I believe I have found a severe limitation of DotNet, with respect to hosting Windows Form Controls in WebPages. It appears this is only possible when the web is configured on Port 80. Any other...
1
251
by: Max | last post by:
Any idea why this happens? It only happens on the live machine, but not the test machine. I've heard this happens when you try to send too much data to SQL Server, but all I'm sending are 4 small...
0
2071
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents...
3
9417
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/ AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents...
1
12205
by: tinkugitu | last post by:
Hi When I deployed my web application( named: myApp) in Tomcat 5.5.23, I am getting the following issue and I am not able to access my application. SEVERE: Error listenerStart Dec 5, 2007...
0
7231
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
7133
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
7336
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
7405
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...
1
7066
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...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4724
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...
0
3214
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...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.