How To:  Monitor usage of a connection pool

So I have a bunch of EJBs using a DB connection pool hosted under iAS
6sp2 on Solaris. How do I monitor pool usage? I would like to see
available pooled connections and in use connections - that would refresh
periodically.
The iAST tool has the monitor thing, which I turned on and added some
plots (active connection, and something else)...but those plots flat
lined and never showed any activity nor usefull information.
Can you hook up SNMP to an iAS? What about JMX? What are other
suggestions?
Thanks in advance,
Fred Welland
[email protected]
Intelix Inc.

You can enable debug ( level = 1 ) at the pool level. This would throw some additonal information into kjs log. Unfortunately there is no time stamp with these lines. But you will get an ides of how your pool is performing during the test.

Similar Messages

  • How to config the oracle database connection pool in IAS

    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

    Jacky,
    You need do the following for oracle type4 driver:
    1) register the driver:
    $IAS_HOME/bin/jdbcsetup
    Driver Identifier: Oracle_Type4_816 (whatever name you like)
    Driver Classname: oracle.jdbc.driver.OracleDriver
    Driver Classpath: .../classes12.zip (install this this zip file somewhere
    and add this zip into the Classpath later).
    2) DataSource Setup:
    start iAS Administration Tool (iASAT)
    Choose Database, unfold iAS1 (your app server instance),
    choose External JDBC Datasource -> add: DataSource Registration
    JNDI Name: yourPoolName
    Driver Type: Oracle_Type4_816 (select what you just register)
    DataSource Url: jdbc:oracle:thin:@hostName:portName:dbName
    Username: your_user_name
    Password: your_passwd
    (Datasource Pool: using defaults for now): you can also customrize the
    parameters for the pool.
    3. Add classes12.zip into CLASSPATH.
    In your application, you can use JNDI lookup to get the DataSource from
    which you get the connection from the pool.
    Hope this helps.
    Good luck.
    Xuran
    "Jacky Yan" <[email protected]> wrote in message
    news:9m0tmp$[email protected]..
    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

  • How to know Information of a Connection Pool

    HI,
    I want to know the information of a connection pool for example its maxSize and
    what are the active connections in the pool programitically ie. thr' code.
    I can monitor them thr' console.But how to monitor a pool thr' code.
    And what does all the attributes like WaitSecondsHigh,Waiters,
    WaitersHigh mean.how can i get information about them.
    And how do i get the information of them thr' code.
    I have seen that JDBCConnectionPoolRuntime gives information about the pool.But
    how to create a object of this interface.
    Can anyone provide me the code for this.
    Let me explain more....
    I have created a demo pool and has set the maximum connections size as 2.I tried
    to get 3 connections from the pool and obvious a exception has raised.(java.sql.SQLException:
    Pool connect failed: weblogic.common.ResourceException: None available).
    so i am writing a class such that it keeps the connections in wait state when
    the pool has reached its maximum value for which i should know what are the active
    connections and the maximum size of the pool.
    So please if any one can help me how to know these values of the connetion pool
    programitically,it would be great.

    Ventak:
    This is a sample code i wrote some time ago.
    import weblogic.management.MBeanHome;
    import weblogic.management.WebLogicMBean;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import javax.naming.AuthenticationException;
    import javax.naming.CommunicationException;
    import weblogic.jndi.Environment;
    import java.util.Collection;
    import java.util.Iterator;
    import weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean;
    import weblogic.management.configuration.JDBCConnectionPoolMBean;
    import weblogic.management.WebLogicObjectName;
    public class mbean
    public static void main(String args[])
    MBeanHome home = null;
    try
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME+".wlcsServer");
    // Note the type of the Mbean: JDBCConnectionPoolConfig - The fixed
    configuration of the pool just as the console
    // JDBCConnectionPoolRuntime - The runtime parameters of the pool, like
    current connections
    // To retrieve the Mbean JDBCConnectionPoolMBean via ObjectName
    WebLogicObjectName o = new
    WebLogicObjectName("commercePool","JDBCConnectionPoolConfig","wlcsDomain","w
    lcsServer");
    JDBCConnectionPoolMBean pool = (JDBCConnectionPoolMBean)home.getMBean(o);
    // the same Mbean but without ObjectName
    JDBCConnectionPoolMBean pool =
    (JDBCConnectionPoolMBean)home.getMBean("ccPoolSuc","JDBCConnectionPoolConfig
    System.out.println("TableName " + pool.getTestTableName());
    // To retrieve the JDBCConnectionPoolRuntimeMBean
    JDBCConnectionPoolRuntimeMBean poolR =
    (JDBCConnectionPoolRuntimeMBean)home.getMBean(new
    WebLogicObjectName("wlcsDomain:ServerRuntime=wlcsServer,Name=sucPool,Locatio
    n=wlcsServer,Type=JDBCConnectionPoolRuntime"));
    System.out.println("getActiveConnectionsCurrentCount()" +
    poolR.getActiveConnectionsCurrentCount());
    // To retrieve a collection of the Mbeans by Type
    Collection Beans = home.getMBeansByType("JDBCConnectionPoolRuntime");
    catch(Exception ex)
    System.out.println("Error " + ex);
    ex.printStackTrace();
    return;
    These are extracts of the actual code, providing you diferent ways.
    By the way, the issue you are trying to solve with a waiting time for a
    connection to be available is an out-of-the-box functionality of the
    weblogic pool. But is also restricted to some like 5 secs. (if i remember
    well) and the reason is to avoid thread contention.
    So if you are going to implement some like that must be much carefull. The
    better way is to play with the InitialCapacity, MaxCapacity,
    CapacityIncrement and ShrinkPeriod parameters, giving the enough connections
    to avoid as possible as you can the situation in which exists waiters of
    connections.
    Hope this help.
    "Venkat Raghava Moganti" <[email protected]> wrote in message
    news:[email protected]...
    >
    HI,
    I want to know the information of a connection pool for example itsmaxSize and
    what are the active connections in the pool programitically ie. thr' code.
    I can monitor them thr' console.But how to monitor a pool thr' code.>
    And what does all the attributes like WaitSecondsHigh,Waiters,
    WaitersHigh mean.how can i get information about them.
    And how do i get the information of them thr' code.
    I have seen that JDBCConnectionPoolRuntime gives information about thepool.But
    how to create a object of this interface.
    Can anyone provide me the code for this.
    Let me explain more....
    I have created a demo pool and has set the maximum connections size as 2.Itried
    to get 3 connections from the pool and obvious a exception hasraised.(java.sql.SQLException:
    Pool connect failed: weblogic.common.ResourceException: None available).
    so i am writing a class such that it keeps the connections in wait statewhen
    the pool has reached its maximum value for which i should know what arethe active
    connections and the maximum size of the pool.
    So please if any one can help me how to know these values of the connetionpool
    programitically,it would be great.

  • Monitoring of topLink internal connections  pool

    we wish to monitoring use of Toplink internal connections pool : numbers maximum used, a minimum number used.
    we know to do it with the external pool (OracleAS) but not with the internal pool.
    Regards

    The only way to get this information is through API calls. If you have a Server (oracle.toplink.threetier) you can ask the read and default (write) connection pools.
            // Display Read Connection pool info       
            System.out.println("READ Available: " +
                               server.getReadConnectionPool().getConnectionsAvailable().size());
            System.out.println("READ Minimum: " +
                               server.getReadConnectionPool().getMinNumberOfConnections());
            System.out.println("READ Maximum: " +
                               server.getReadConnectionPool().getMaxNumberOfConnections());
            // Display Write Connection pool info       
            System.out.println("WRITE Available: " +
                               server.getDefaultConnectionPool().getConnectionsAvailable().size());
            System.out.println("WRITE Minimum: " +
                               server.getDefaultConnectionPool().getMinNumberOfConnections());
            System.out.println("WRITE Maximum: " +
                               server.getDefaultConnectionPool().getMaxNumberOfConnections());Doug

  • How to get ManagedBean for C3P0 connection pool.

    Hi there,
    How to get ManagedBean(C3P0PooledDataSourceMBean) for C3P0 connection pool, as the object name is getting constructed during run time.
    Thanks,
    Sid

    Hi there,
    How to get ManagedBean(C3P0PooledDataSourceMBean) for C3P0 connection pool, as the object name is getting constructed during run time.
    Thanks,
    Sid

  • How to use more than one connection pool to 2 different databases ??? (Weblogic 5.1)

    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try to use
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the more efficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

    Hi
    You need to configure TxDataSource with XA connection pool.
    More information can be found here:
    http://e-docs.bea.com/wls/docs61/jta/thirdpartytx.html
    Regards,
    Slava Imeshev
    [email protected]
    "Philippe Da Cunha" <pdacunha@@webraska.com> wrote in message
    news:3bfcd6ee$[email protected]..
    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try touse
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the moreefficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

  • How to monitor my shared network connection

    Hi,
    I have a mac mini server which I'm using (among other things) to share my internet network connection (from the ethernet adapter) with other wireless clients through the wireless adapter. This works fine.
    My question is: how do I monitor how many clients are attached to the wireless network?
    Thanks!

    The answer to your question also depends on whether you want to monitor which of your friends etc. is online, or whether you want to monitor for malicious users/attackers.
    In the first case the DHCP client list ist quite ok, in the second case it wouldn't help you: An attacker would probably not query your DHCP server, he would just listen to some traffic and could then (a) choose a seemingly free IP from the network, (b) hijack an existing IP and MAC address (or of course (c) decide to use the DHCP server after all).
    You can use tools like TCPDUMP, ETHEREAL or KISMAC to scan the traffic on your WLAN, but since an attacker that has cracked the WEP key could change his MAC address to that of one of the other computers, intrusion detection is difficult. With respect to protection the best advice probably is the one about using more secure methods than WEP...
    Quad G5 / Mini G4 / PB15 G4   Mac OS X (10.4.5)  

  • How to monitor  (Create /Delete )JCo connections

    Hi Gurus,
    can anyone give me a clear picture of monitoring the Jco connections ,am i want to create the new Jco connection ,and where do i set the max.no connections ..
    reward point guaranted
    regards,
    S.Rajeshkumar

    Hi Rajesh
    Read,
    http://help.sap.com/Business_Packages/EN/ca/115e4088dc0272e10000000a155106/content.htm
    regards
    Juan

  • How dynamically create connection pool and Datasource

    Hi
    How I can dynamically create a connection pool and Data source in Oracle 10g Application server. In our J2EE application the user will be login with db user name, password and database name. I want to create connection pool and data source on the fly while login the user with database name. I our application we have access approximate 80 Databases. so my approach is given bellow
    1) Planning to create 80 connection pools and 80 Data sources so when user logs in while selecting the db name i will call the appropriate data source and create the DB connection. Is there any limitation to create number of data sources in oracle app server?
    2) Create DB connection with out using connection pool and data source. But i am not prefer this approach coz we need to handle some transaction in our application.
    Kindly throw some light on managing connection pool programmatically or in application run time.
    I would really appreciate if any one can provide any links or any inormation on this issue.
    Thanks in advance.

    Kindly let me know is there any drawbacks to create 80 Data Sources to connect 80 database in Oracle 10G App server and each data sources should have one connection pool. so i need to create 80 connection pool. Please let me know is this right approach or any work around to create Data source on fly for each request for corresponding database.

  • How can I use the Connection Pool with DB2

    Hi All,
    I am facing the problem with the usage for the Connection Pool.
    I want to use DB2 via JNDI lookup.
    But when starting the Weblogic server, Error occured with the following message.
    <Error> <JDBC> <Cannot startup connection pool "MyJDBCPool" Cannot load driver class : com.ibm.db2.jdbc.app.DB2Driver>
    DB2 and Weblogic are on the same machine.
    In case of the use of remote DB2 database, I also encountered the same error.
    Configurations are as follows.
    <JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver"
    MaxCapacity="10" Name="MyJDBCPool"
    Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
    TestConnectionsOnReserve="false" TestTableName="test" URL="jdbc:db2://localhost:6789/yongjoo"/>
    <SNMPAgent Name="mydomain"/>
    <JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool" Targets="myserver"/>
    Could you please give some information about this problem? I will appreciate your kindness.

    Hi Joe,
    Thanks your help.
    Perhaps It's my fault for Weblogic console's setting.
    After I reset the target server in console, Error message disappeared.
    But, when I call the TestCode, I encountered another error message. The error
    is NameNotFoundException.
    When lookingup the JNDI name, NameNotFoundException errer occured. I tried to
    change my setting and JNDI name, but the results are the same.
    Would you please give me some information about this one more time? I will be
    appreciated for your help.
    Follows are Config.xml
    <JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver" MaxCapacity="10"
    Name="MyJDBCPool" Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
    TestConnectionsOnReserve="false" TestTableName="test"
    URL="jdbc:db2://localhost:6789/yongjoo"/> <SNMPAgent Name="mydomain"/>
    <JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool"
    Targets="myserver"/>
    and follows are TestCode,
    url = "t3://localhost:7001"; //default URL
    datasource = "jdbc/acsdb";
    Context ctx = null;
    Hashtable p = new Hashtable();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    p.put(Context.PROVIDER_URL, url);
    try{
    ctx = new InitialContext(p);
    System.err.println("initialContext(p)"+ctx); <-- success
    ds = (DataSource)ctx.lookup("java:comp/env/jdbc/acsdb");
    }catch(NameNotFoundException ne){
    throw new ConnectionException(); .
    }catch(NamingException ne){
    throw new ConnectionException();

  • How to test if connection pool is set up correctly in WL 7 SP 7

    Hi all,
    2 questions.
    1) how do i test if the connection pool i set is working? in the testing tab of the jdbc connection pool in the console page, there is a Test Table Name, i entered 'dual' in the text field. After i clicked apply, there is no indication if i set it up correctly.
    2)After i configure the connection pool, do i need to configure the data sources?

    Could you please try using a "Test_When" statement?
    Karthik

  • Jdbc-odbc-bridge connection pool

    I got a problem with odbc connection pool in my Sun App Server 7.
    When i try to connect to the odbc database (msaccess or conzept16), i got a SQLException : com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: setdatabaseName .....
    It seems that i cant set any propertys like url, user or password. The exception throws every time NoSuchMethodException: setURL or ... NoSuchMethodException: setUser
    I tried this with pointbase database and pointbase drivers and there was no problem. Also when i connect direct from jsp page to the odbc database without connection pool it works.
    How can i set a propper connection pool with the jdbc-odbc-bridge? Please Help. There is no jdbc driver for that database available.
    Is that right using sun.jdbc.odbc.JdbcOdbcDriver for that?
    here my server.xml
    <resources>
    <jdbc-resource enabled="true" pool-name="access-pool" jndi-name="jdbc/AccessDB"/>
    <jdbc-connection-pool steady-pool-size="2" max-pool-size="6" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="false" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="sun.jdbc.odbc.JdbcOdbcDriver" name="access-pool" validation-table-name="TAB_NAME">
    <property value="jdbc:odbc:testdb" name="databaseName"/>
    </jdbc-connection-pool>
    </resources>

    AFAIK the bridge driver does not support multipleopen
    connections (which is what connection pooling
    requires).Wrong.
    It might be the case that the bridge AND ms access
    does not support that but I seriously doubt that as
    well.
    Yesterday I didn't want to test this. Today I did.
    So I can state that it is completely wrong.
    There might be some other reason preventing the usage in a pool, but it isn't the number of open connections.

  • Reset connections in connection pool

    Hi,
    After DB restart (or connection failure) I try to recover the server. In order to do this, I want to tell to container connection pool to reset (clear) all available connections.
    Does anybody knows how I can tell to container connection pool to reset (clear) all its connections (in standard way, or at least in Jboss)?
    Thanks,
    Igor.

    Am not sure in JBoss....but as far as my knowledge with WL gies...you don't have to do anything....The WL container continuosly tries to sync the connection with the DB....there is a Retry interval if the Connections to the DB fails....Better the Check out the Official Docs

  • Please help: Connection Pooling...

    Hi everybody,
    I am seeking help from our experienced fellows and senior programmers/developers.
    I am working with Struts framework, TomCat and JavaBeans and developing a website.
    I wanna make my own Connection Pooling class to handel all the connections.
    Actualy, I don't wanna make Connection to the DB through my each Action Classes,
    which are accessing the Database.
    Would you please advise me that how it is possible and how I will refere to
    my Connection Pooling Class within Struts framework. And if possible just give the
    hints about the structure of the Connection Pooling Class.
    Your kind help will be highly appreciated...
    VeeJay...
    [email protected]

    Hi..
    Is it a requirement that u must use u'r own connection pool??
    Coz each application server provides its connection pool.why dont u exploit one of those.. as u r using tomcat, definitely it wud also be providing a pool of its own.
    Kris

  • Connection Pool with Variables

    Hi i am a newbie to Obiee and i want to know how to import tables into a connection pool with variables in place of Data Source Name: valueof(DSN_DM) username:value of(DSN_DM_USER)
    like that i want to import my new tables into this connection pool how i can do that. i tried importing but it is coming as a new subject area.
    Can any Body help me
    Thanks

    Hi copter,
    Firstly you imported some tables and again as adding tables your are using variable in connection pool and importing tables then it takes as a new subject area only.....Instead use this variable connection pool to import all tables from scratch and then work on it.This would do.
    Either if it is a seperate subject area pull the columns needed from both the subject areas and work on it.Before doing that you need to establish joins between the subject area tables.
    http://forums.oracle.com/forums/thread.jspa?threadID=1123247&tstart=-1
    hope helps you.
    Cheers,
    KK

Maybe you are looking for