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 > [IBM][CLI Driver] SQL1226N The maximum number of client connections are already star

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-05, 01:56
Paingiver Paingiver is offline
Registered User
 
Join Date: Feb 2004
Posts: 14
[IBM][CLI Driver] SQL1226N The maximum number of client connections are already star

[IBM][CLI Driver] SQL1226N The maximum number of client connections are already started.

I have a function in java EJB that does a mass add of logs into the database. But, it gives this error. Is there a way to increase the number of client connection?

I'm using a DB2 v8

Thanks in advance.

Last edited by Paingiver; 01-27-05 at 01:59.
Reply With Quote
  #2 (permalink)  
Old 01-27-05, 02:51
Paingiver Paingiver is offline
Registered User
 
Join Date: Feb 2004
Posts: 14
Thanks but i manage to resolve it
Reply With Quote
  #3 (permalink)  
Old 01-27-05, 02:55
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
On Windows:

Find out maxagents on database manager level
get dbM cfg | find "(MAXAGENTS)"

Find out maxappls for database
get db cfg for <database> | find "(MAXAPPLS)"
write database name for <database>

Change dbm parameter if needed
UPDATE DBM CFG USING MAXAGENTS <number>
write number for <number>

Change db parameter for <database>
UPDATE DB CFG FOR SAMPLE USING MAXAPPLS <number>
write number for <number>


For Unix systems replace 'find' with 'grep'
Reply With Quote
  #4 (permalink)  
Old 01-27-05, 04:41
jdey123 jdey123 is offline
Registered User
 
Join Date: Aug 2004
Location: London, UK
Posts: 31
You'll also want to

Increase num_initagents and num_poolagents to be larger than the database connection pool that you've defined in Websphere.

num_initagents pre-creates db2 agent processes (which speeds up connection times).

num_poolagents keeps the db2 agent processes active when a db2 connection is terminated.

Both of these parameters will substantially improve performance in a web environment (since in such an environment a connection is typically initiated and terminated for each transaction)
__________________
jdey@macehill.co.uk
http://www.macehill.co.uk
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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