473,804 Members | 3,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to terminate idle agents?

DB2 UDB V8.2 on AIX. Is there a db2 command/function to terminate a
single idle agents from the agent pool. I could kill -9 the process
but I was wonder if there was a more graceful or appropriate way to do
this. I did not see an API call like sqleEndCtx that could
perminently remove the agent and clean up memory. Any ideas?
Jun 27 '08 #1
2 4917
An add to this..it looks like kill -9 of any of these idle db2agent
processes kills all of them and then shuts down db2 so that wont work.

Jun 27 '08 #2
Ian
shorti wrote:
DB2 UDB V8.2 on AIX. Is there a db2 command/function to terminate a
single idle agents from the agent pool. I could kill -9 the process
but I was wonder if there was a more graceful or appropriate way to do
this. I did not see an API call like sqleEndCtx that could
perminently remove the agent and clean up memory. Any ideas?
How much memory are you talking about for each agent? DB2 agents attach
to the database shared memory segment(s), so `ps` makes each agent look
like it's using a lot of memory. Killing an agent would not deallocate
the shared memory segment -- and, as you found out, it will crash the
instance.

Typically the agents have a relatively small amount of private memory
when they are idle.

If you're seeing agents with lots of allocated private memory (i.e.
using a tool like db2mtrk to see this), you have a few options:

1) If you don't want idle agents sitting around, consider setting
NUM_POOLAGENTS to a smaller value.

2) Also, check the DB2MEMDISCLAIM and DB2MEMMAXFREE registry variables
to make sure that they are not set inappropriately . (the default
value of these variables, which you won't see if they haven't been
set for your instance, are YES and 8388608, respectively.
Jun 27 '08 #3

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

Similar topics

16
12937
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine otherwise. Most interesting to me is that a reboot won't fix the problem. But if I just try it again sometime later it will work. Anyone have any ideas? I'm running python 2.3 on windows 2000 professional.
1
6732
by: dbrown2 | last post by:
I typically use IDLE for editing and debug. On Windows at least, IDLE and the standard turtle graphics module do not mix. I think both use Tkinter. For now I use IPython and Jedit when using the turtle module but it's not a great solution for me. Is there any known work-around to use turtle with IDLE? If not is there a planned fix for the problem. I find turtle is a convenient way to do simple graphics without having to install...
3
1611
by: Jim | last post by:
I have a situation with a 6 server setup whereby merge agents will not run if other merge agents are alreay running. Basically we have a 5 laptop, one tower config with the tower being the publisher. In theory we want to be able to hook a laptop up and have it sync within, say, 5 mins. Trouble is, if agents for the other laptops are running (trying and failing to connect because those laptops aren't connected) then the agents for the...
1
1987
by: Roberto Kohler | last post by:
Is there a way for an administrator to terminate ASP sessions if I know the ASP Session IDs that I want to terminate? Session.Abandon only works on the caller's session. Is there something like Session.Kill(SessionID) ?
0
2182
by: Conference Secretary | last post by:
CALL FOR PAPERS International Conference on Intelligent Agents, Web Technologies and Internet Commerce http://www.ise.canberra.edu.au/conferences/iawtic05/ Jointly with International Conference on Computational Intelligence for Modelling, Control and Automation
1
8246
by: Praveen_db2 | last post by:
Hi All I came across a small doubt. Suppose I have Max Connections parameter set to 200. There are now 200 connections to the database. Out of these 200 connections 50 are idle. What will happen if a new user tries to connect to the database? Whether he will receive error about MAXCONNECTIONS exceeded or he will be allotted a connection as 50 agents are idle now? Also how to kill those idle sessions or connections to make way for active...
4
2236
by: Troels Arvin | last post by:
Hello, Some of our SAS users seem to initiate 20+ idle connections to DB2 every time they start SAS. I'm inclined to tell them to cut down on their DB2 connection number, but then again, if the connections are very cheap why bother. Are idle DB2 connections cheap, from the DBMS' point of view? (I fear that there's no easy answer to this question, but maybe someone
4
3018
by: Steven Simpson | last post by:
Stefan Ram wrote (in "More than one language in a page"): Is this a new trend of user-agent writers (Microformats, and now Google) staking claims on the @class namespace? I'm surely not the only one disturbed by this. Somehow, an author publishing on the web, with no control over which user agents will access his page, has to avoid clashes with the union of all names deemed special by all those user agents, now and in the future? I...
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
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...
0
9130
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...
1
7608
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
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.