SIMULATING CONNECTION LEAK

I want to simuate Connetion LEAK
Developed a small application having only 1 JSP FILE, 1 HTML only..In JSP file
1 database connection object is used to insert a record into a database.The connection
object is not closed.. So only one connection object...
Enable VIEW LEAKING CONNECTIONS in ADMIN CONSOLE...When the appl is run , record
gets inserted sucessfully.. When the JDBC CONNECTION is right cliked to VIEW LEAKED
Connection, it does not show any message....
I have not closed the connection object. So it should show leaked connection..why
it is not displaying?????.........If this is the case, how can i check whther
a connection leak is there or not

Sarika Angadi wrote:
Hi,
We are using WLS6.1 SP5 and I am also getting below stack trace. This error is in production enviroment.
Could you please update me soon on this?Hi. I believe it's a false warning, having to do with internally created connection
objects in the context of sending RMI objects from server to server. You can ignore
those messages. This is already fixed in sp6 and sp7. Here is the official sp5 patch.
If you can't get it off this post, call support to get CR131575_610sp5.jar.
Joe
>
Stack Trace:
Dec 14, 2004 4:44:57 PM GMT+08:00> <Notice> <WebLogicServer> <Started WebLogic Managed Server "Managed09Dec2" for domain "gtdb10" running in Production
Mode>
[ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
Trace at
create of ConnectionImpl
at
weblogic.jdbc.rmi.internal.ConnectionImpl.<init>(ConnectionImpl.java:
47)
at weblogic.jdbc.pool.Connection.writeReplace(Connection.java:1288)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectStreamClass.invokeMethod(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
weblogic.common.internal.ChunkedObjectOutputStream.writeObject(Chunke
dObjectOutputStream.java:115)
at
weblogic.common.internal.ChunkedObjectOutputStream.writeObject(Chunke
dObjectOutputStream.java:121)
at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown
Sou
rce)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:360)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:329)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
java:22)
Thanks in advance,
Sarika[CR131575_610sp5.jar]

Similar Messages

  • AppM File Passivation SQL92 Flavor for DB2 and causes Pool connection Leaks

    I am porting an ADF application to WebSphere and DB2 and noticed AM passivation goes from file to database. I have bc4j setup to use file passivation. When this happens I am noticing Connection are not being returned to pool. Has anyone experienced these 2 issues (Connection leaks and AM passivation to database)
    bc4j settings below are in place.
    -Djbo.doconnectionpooling=true
    -Djbo.txn.disconnect_level=1
    ADF Version: 11.1.1.59.23 ::: JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    Server Info: IBM WebSphere Application Server/7.0
    Host Operating System is AIX, version 7.1
    Java version = JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr9-20110624_85526 (JIT enabled, AOT enabled)
    J9VM - 20110624_085526
    JIT - r9_20101028_17488ifx17
    GC - 20101027_AA_CMPRSS, Java Compiler = j9jit24, Java VM name = IBM J9 VM
    BC4J is configured to perform file passivation instead of database. The temp files (BC59c10e3cBCD) are being created, but the application occasionally passivates to database.
    ConsoleDiagno C Establish database connection
    3 oracle.jbo.server.DBTransactionImpl establishNewConnection [15306] Before getNativeJdbcConnection='com.ibm.ws.rsadapter.jdbc.WSJccSQLJConnection
    3 oracle.jbo.server.DBTransactionImpl establishNewConnection [15307] After getNativeJdbcConnection='com.ibm.db2.jcc.am.gf
    3 oracle.jbo.pcoll.JDBCPersistManager handleControlTableExists [15308] **createControlTable** tabname=PCOLL_CONTROL already exists
    3 oracle.jbo.pcoll.JDBCPersistManager holdTableName [15309] **holdTableName** tabName=PS_IDMKRAppMod locked in controltab
    3 oracle.jbo.pcoll.PCollManager resolveName [15310] **PCollManager.resolveName** tabName=PS_IDMKRAppMod
    3 oracle.jbo.server.DBTransactionImpl closeTransaction [15311] *** closing jdbc connection now **** (com.ibm.db2.jcc.am.gf@4cb14cb1)

    Yes there are nested AMs in this case. I have a SQL92 flavor with Type Map set to Java, and running against a DB2 database. I have used reference site
    http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
    to properly configure my projects and setting and jbo options. What I am looking for is verification on the correct setting when this combination is used. I have dumped the runtime setting below. Are there any obvious problems below that may cause this behavior?
    [1135] {{ begin Loading BC4J properties
    [1136] -----------------------------------------------------------
    [1137] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [1138] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [1139] Skipping empty Property jbo.default.locale.variant from System Default
    [1140] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [1141] Skipping empty Property ConnectionMode from System Default
    [1142] Skipping empty Property HostName from System Default
    [1143] Skipping empty Property ConnectionPort from System Default
    [1144] BC4J Property jbo.locking.mode='optimistic' -->(MetaObjectManager) from Client Environment
    [1145] BC4J Property jbo.txn.disconnect_level='1' -->(SessionImpl) from System Property
    [1146] Skipping empty Property ApplicationPath from System Default
    [1147] BC4J Property AppModuleJndiName='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM' -->(SessionImpl) from Client Environment
    [1148] Skipping empty Property java.naming.security.principal from System Default
    [1149] Skipping empty Property java.naming.security.credentials from System Default
    [1150] Skipping empty Property jbo.user.principal from System Default
    [1151] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
    [1152] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
    [1153] Skipping empty Property jbo.object.marshaller from System Default
    [1154] BC4J Property jbo.use.pers.coll='true' -->(SessionImpl) from Client Environment
    [1155] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [1156] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
    [1157] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
    [1158] BC4J Property jbo.sparse.array.threshold='20' -->(SessionImpl) from System Default
    [1159] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.pmgr.DB2PersistManager' -->(SessionImpl) from System Property
    [1160] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
    [1161] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
    [1162] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
    [1163] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
    [1164] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
    [1165] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
    [1166] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
    [1167] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
    [1168] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [1169] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
    [1170] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
    [1171] Skipping empty Property JBODynamicObjectsPackage from System Default
    [1172] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
    [1173] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
    [1174] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
    [1175] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [1176] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [1177] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
    [1178] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
    [1179] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [1180] Skipping empty Property HandleName from System Default
    [1181] Skipping empty Property Factory-Substitution-List from System Default
    [1182] BC4J Property jbo.project='oracle.documaker.idocumaker.model.SQL92Model' -->(Configuration) from Client Environment
    [1183] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [1184] WARNING: Property jbo.dofailoverset to null
    [1185] Skipping empty Property jbo.dofailover from null
    [1186] WARNING: Property jbo.envinfoproviderset to null
    [1187] Skipping empty Property jbo.envinfoprovider from null
    [1188] Skipping empty Property jbo.rowid_am_conn_name from System Default
    [1189] BC4J Property jbo.rowid_am_datasource_name='jdbc/xxxxxxx' -->(MetaObjectManager) from Client Environment
    [1190] WARNING: Property jbo.ampool.writecookietoclientset to null
    [1191] Skipping empty Property jbo.ampool.writecookietoclient from null
    [1192] BC4J Property jbo.doconnectionpooling='true' -->(Configuration) from System Property
    [1193] WARNING: Property jbo.recyclethresholdset to null
    [1194] Skipping empty Property jbo.recyclethreshold from null
    [1195] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
    [1196] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
    [1197] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
    [1198] WARNING: Property jbo.ampool.sessioncookiefactoryclassset to null
    [1199] Skipping empty Property jbo.ampool.sessioncookiefactoryclass from null
    [1200] WARNING: Property jbo.ampool.connectionstrategyclassset to null
    [1201] Skipping empty Property jbo.ampool.connectionstrategyclass from null
    [1202] WARNING: Property jbo.ampool.maxpoolsizeset to null
    [1203] Skipping empty Property jbo.ampool.maxpoolsize from null
    [1204] WARNING: Property jbo.ampool.initpoolsizeset to null
    [1205] Skipping empty Property jbo.ampool.initpoolsize from null
    [1206] WARNING: Property jbo.ampool.monitorsleepintervalset to null
    [1207] Skipping empty Property jbo.ampool.monitorsleepinterval from null
    [1208] WARNING: Property jbo.ampool.minavailablesizeset to null
    [1209] Skipping empty Property jbo.ampool.minavailablesize from null
    [1210] WARNING: Property jbo.ampool.maxavailablesizeset to null
    [1211] Skipping empty Property jbo.ampool.maxavailablesize from null
    [1212] WARNING: Property jbo.ampool.maxinactiveageset to null
    [1213] Skipping empty Property jbo.ampool.maxinactiveage from null
    [1214] WARNING: Property jbo.ampool.timetoliveset to null
    [1215] Skipping empty Property jbo.ampool.timetolive from null
    [1216] WARNING: Property jbo.ampool.doampoolingset to null
    [1217] Skipping empty Property jbo.ampool.doampooling from null
    [1218] WARNING: Property jbo.ampool.issupportspassivationset to null
    [1219] Skipping empty Property jbo.ampool.issupportspassivation from null
    [1220] BC4J Property jbo.ampool.isuseexclusive='true' -->(SessionImpl) from System Default
    [1221] BC4J Property jbo.passivationstore='file' -->(MetaObjectManager) from Client Environment
    [1222] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
    [1223] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
    [1224] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
    [1225] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
    [1226] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
    [1227] BC4J Property jbo.datasource_naming_factory='oracle.jbo.server.DataSourceContextFactory' -->(MetaObjectManager) from System Default
    [1228] WARNING: Property jbo.maxpoolcookieageset to null
    [1229] Skipping empty Property jbo.maxpoolcookieage from null
    [1230] WARNING: Property PoolClassNameset to null
    [1231] Skipping empty Property PoolClassName from null
    [1232] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
    [1233] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [1234] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [1235] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [1236] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
    [1237] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
    [1238] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
    [1239] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
    [1240] BC4J Property jbo.qcpool.monitorsleepinterval='1800000' -->(SessionImpl) from System Default
    [1241] BC4J Property jbo.qcpool.maxinactiveage='900000' -->(SessionImpl) from System Default
    [1242] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
    [1243] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [1244] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
    [1245] BC4J Property jbo.finder.range.size='DEFAULT' -->(MetaObjectManager) from System Default
    [1246] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
    [1247] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
    [1248] BC4J Property jbo.SQLBuilder='SQL92' -->(MetaObjectManager) from Client Environment
    [1249] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [1250] BC4J Property jbo.TypeMapEntries='Java' -->(MetaObjectManager) from Client Environment
    [1251] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
    [1252] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
    [1253] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [1254] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
    [1255] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
    [1256] BC4J Property jbo.use.findbykey.for.assoc='true' -->(MetaObjectManager) from System Default
    [1257] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
    [1258] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
    [1259] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
    [1260] BC4J Property jbo.tmpdir='./' -->(MetaObjectManager) from Client Environment
    [1261] Skipping empty Property jbo.server.internal_connection from System Default
    [1262] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
    [1263] Skipping empty Property TransactionFactory from System Default
    [1264] Skipping empty Property jbo.def.mgr.listener from System Default
    [1265] Skipping empty Property jbo.use.global.sub.map from System Default
    [1266] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [1267] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1268] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1269] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1270] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1271] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1272] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1273] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [1274] Skipping empty Property oracle.home from System Default
    [1275] Skipping empty Property oc4j.name from System Default
    [1276] Skipping empty Property jbo.shared.txn from System Default
    [1277] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
    [1278] BC4J Property jbo.ejb.txntype='global' -->(SessionImpl) from System Default
    [1279] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
    [1280] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
    [1281] Skipping empty Property oracle.jbo.schema from System Default
    [1282] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
    [1283] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
    [1284] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
    [1285] Skipping empty Property ord.HttpTempDir from System Default
    [1286] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
    [1287] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
    [1288] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
    [1289] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
    [1290] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
    [1291] Skipping empty Property ord.rp.codebase from System Default
    [1292] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
    [1293] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
    [1294] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
    [1295] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
    [1296] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
    [1297] Skipping empty Property jbo.security.config from System Default
    [1298] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
    [1299] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
    [1300] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
    [1301] BC4J Property jbo.groovy.debug='false' -->(MetaObjectManager) from System Default
    [1302] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
    [1303] BC4J Property oracle.adfm.useRootFrameOnly='false' -->(MetaObjectManager) from System Default
    [1304] Copying unknown Client property (java.naming.factory.url.pkgs='com.ibm.ws.naming:com.ibm.ws.runtime:weblogic.corba.j2ee.naming.url:weblogic.corba.client.naming:com.ibm.ws.naming') to session
    [1305] Copying unknown Client property (jbo.applicationmoduleclassname='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM') to session
    [1306] Copying unknown Client property (name='IDMKRAppModuleAMLocal') to session
    [1307] Copying unknown Client property (ApplicationName='oracle.documaker.idocumaker.model.shared.app.IDMKRAppModuleAM') to session
    [1308] Copying unknown Client property (JDBCDataSource='jdbc/xxxxxxx') to session
    [1309] Copying unknown Client property (java.naming.provider.url='corbaloc:rir:/NameServiceServerRoot') to session
    [1310] Copying unknown Client property (DBconnection='jdbc/xxxxxx') to session
    [1311] }} finished loading BC4J properties

  • Finding and Reporting Connection Leaks Web Application.

    So we have a web application that we know has connection leak(s). I have developed a test plan with JMeter to load test the app, but how do I find and report the connection leak, and what is the best tool to use for that? Basically my test plan runs through a use case scenario. I have added different types of listeners using jmeter to report different types of information that I get back.
    Also, is there a way to get the report back as a jsp, html page? Something kind of like the JUnit test reports do
    I would like the jmeter test to run, give the url, name of task-maybe, the time it took, success or fail, and current status - connected?
    Thanks in advance.
    orozcom

    What connections are those - sockets, database, ...? Actually, that doesn't probably matter. I'd use "grep" to find leaks of any kind. Every critical resource should be handled with try/finally:
        foo()
            WhateverConnection connection = null;
            try {
                connection = ConnectionFactory.openConnection();
                ...use it...;
            } finally {
                ConnectionFactory.close(connection); // Static function so that works with null
        }That goes for files, db connections, sockets, everything.
    Then any use of openConnection() that doesn't match that pattern is wrong and must be fixed. "grep" plus visual inspection should do it. They may be other pieces of code that are technically correct but look different; those are to be considered bugs and must be modified to conform to the exact same code template. All connection openings must look the same; the code audit easily misses bugs if each developer comes up with his own clever pattern.
    Finding leaks by testing will never find them all. Especially leaks that occur due to exceptions. try/finally is the right way to deal with those.
    Additionally, the connection factory could keep a list of open connections, and list them at request. I also like to log statistics periodically from the connection pool: how many connections have been opened, how many are open, how long min/max/average time a connection gets used, how much data are transferred, etc.

  • How to know whether a connection leak occured in weblogic8.1

    How to Know whether Conenction Leak has Occured or Not ??..Where does the WeblogicServer8.1 print the STACK TRACE if connection Leak has occured ? or does it maintain a LOG FILE , where any entries can be seen................

    To turn on Debug flags add these to the startup scripts.
    -Dweblogic.Debug=weblogic.JDBCConn="true",weblogic.JTAJDBC="true"
    Essentially, you will need to edit the config.xml file (when the server is down) and add the proprty to the ConnectionPool definition:
    http://e-docs.bea.com/wls/docs61/config_xml/mbeans.html
    ConnLeakProfilingEnabled="true"
    Thanks and regards,
    Pazhanikanthan. P

  • WLS 10.3.0 - Connection Leak on JDBC Data Source.

    We are observing connection leaks in our environment.
    We have enabled connection leak profiling. however we are unable to analyze the output.
    Need some help in analyzing the Output.
    Also are there any specific way to gather the exact stack trace, to get more detailed information about. Where exactly the connection leak is occurring.

    Hi,
    Could you enable the following debug flag:
    -Dweblogic.Debug=weblogic.JDBCConn -Dweblogic.JDBCConnStackTrace
    Also, following is the sample way to minimise the connection leaks. Could you please chk the following:
    <JDBCConnectionPool CapacityIncrement="5"
    ConnLeakProfilingEnabled="true"
    ConnectionCreationRetryFrequencySeconds="5"
    DriverName="oracle.jdbc.driver.OracleDriver"
    HighestNumUnavailable="0" HighestNumWaiters="5000"
    InactiveConnectionTimeoutSeconds="30" InitialCapacity="10"
    LoginDelaySeconds="1" MaxCapacity="150" Name="SimpleP1"
    PasswordEncrypted="left out"
    PreparedStatementCacheSize="0"
    Properties="user=leftout;protocol=thin" RefreshMinutes="1"
    ShrinkFrequencySeconds="60" ShrinkingEnabled="true"
    StatementCacheSize="10" Targets="bs04prod"
    TestConnectionsOnCreate="false" TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="true" TestFrequencySeconds="120"
    TestTableName="dual" URL="url left out"/>
    <JDBCDataSource JNDIName="left out"
    Name="SimpleP1DataSource" PoolName="SimpleP1" Targets="left out"/>
    <SNMPAgent Enabled="true" Name="bsimple" SNMPPort="1161" TargetedTrapDestinations=""/>
    <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
    <WSReliableDeliveryPolicy DefaultRetryCount="10"
    DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
    <EmbeddedLDAP
    CredentialEncrypted="left out" Name="left out"/>
    <SecurityConfiguration
    CredentialEncrypted="left out"
    Name="left out" RealmBootStrapVersion="1"/>
    regards,
    Zeno

  • Connection Leak with SP3

    Hi-
    I recently moved from 8.1SP1 to 8.1SP3 and WOW am I getting a lot of connection leaks. I never had this problem at all with SP1 and I'm quite concerned.
    My app is probably 98% CMP but I do have a bit of direct access.
    My app supports both Sybase and Oracle and I get the same leak warnings with both. Other than being annoying in the console however, it doesn't seem to have any ill effects .
    Here is the warning:
    <Nov 8, 2004 2:35:54 PM EST> <Warning> <JDBC> <BEA-001074> <A JDBC pool connecti
    on leak was detected. A connection leak occurs when a connection obtained from t
    he pool was not closed explicitly by calling close() and then was disposed by th
    e garbage collector and returned to the connection pool. The following stack tra
    ce at create shows where the leaked connection was created. [Null exception pas
    sed, creating stack trace for offending caller]
    at weblogic.utils.StackTraceUtils.throwable2StackTrace(Ljava.lang.Throwable;)Ljava.lang.String;(StackTraceUtils.java:28)
    at weblogic.jdbc.wrapper.JTSConnection.finalizeInternal()V(JTSConnection.java:115)
    at weblogic.jdbc.wrapper.JTSConnection_com_sybase_jdbc2_jdbc_SybConnection.finalize()V(Unknown Source)
    at java.lang.Object.runFinalizer()V(Unknown Source)
    at java.lang.LangAccessImpl.objectFinalize(Ljava.lang.Object;)V(UnknownSource)
    at java.lang.ref.Finalizer.runFinalizer()V(Unknown Source)
    at java.lang.ref.Finalizer.access$100(Ljava.lang.ref.Finalizer;)V(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run()V(Unknown Source)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)>
    Any advice?
    Dave

    "David Spindle" <[email protected]> wrote in message news:17854103.1099951464437.JavaMail.root@jserv5...
    I recently moved from 8.1SP1 to 8.1SP3 and WOW am I getting a lot of connection leaks. I never had this problem at all with SP1and I'm quite concerned.
    >
    My app is probably 98% CMP but I do have a bit of direct access.
    My app supports both Sybase and Oracle and I get the same leak warnings with both. Other than being annoying in the consolehowever, it doesn't seem to have any ill effects .
    >
    Here is the warning:
    <Nov 8, 2004 2:35:54 PM EST> <Warning> <JDBC> <BEA-001074> <A JDBC pool connecti
    on leak was detected. A connection leak occurs when a connection obtained from t
    he pool was not closed explicitly by calling close() and then was disposed by th
    e garbage collector and returned to the connection pool. The following stack tra
    ce at create shows where the leaked connection was created. [Null exception pas
    sed, creating stack trace for offending caller]Null srack trace at create is a bug. Contact support for the patch.
    Regards,
    Slava Imeshev

  • Error in finder method wrapper resulting in a connection leak

    we ar using OC4J 1.0.2.2.1 and dicowered some problems with connection leaking.
    The same was reproducable on 9.0.2.1 and 9.0.3 (the "J2EE 1.3 certified" version).
    Using CMP/CMT for Entity EJB.
    If we define the transaction attribute for a finder method returning single object as NotSupported
    and ObjectNotFound exception is thrown as a result of call to the finder method,
    connection is not closed.
    With emulated datasource this results in a connection pool overflow, with XA datasource
    the console gets conenction not closed exceptions but at least connections are closed (seriously influencin performance while waiuting for connection timeout).
    the same code executes with no problem on JBoss 2.4.x and 3.0 and on iPlanet.
    any comments on this - is this a bug or feature ?

    Please log a TAR with your support repesentative so that we can drill down on this issue. As described, this does not sound like the correct behavior but until the details are examined it is hard to tell.
    Thanks -- Jeff

  • Connection Leak Exception in farm runs

    Hi
    I am trying to use the ADFBC to get a list of values for my backend data which will be displayed in the UI later. In the view, it works fine. There have been no errors. But during the farm runs there is an intermittent issue of the Connection Leak Exception.
    Array has 121
    ######################################### START
    2010-11-06 21:37:38,194 [[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG jdbc.leak checkLeakedConnections.267 -
    java.lang.Exception: Connection Leak Exception
         at oracle.sysman.util.jdbc.DefaultConnectionListener.connectionOpened(DefaultConnectionListener.java:168)
         at oracle.sysman.util.jdbc.ConnectionListenerManagerImpl.processConnectionEvent(ConnectionListenerManagerImpl.java:112)
         at oracle.sysman.util.jdbc.ConnectionCache.processConnectionEvent(ConnectionCache.java:471)
         at oracle.sysman.util.jdbc.ConnectionWrapper._fireOpenedEvent(ConnectionWrapper.java:1805)
         at oracle.sysman.util.jdbc.ConnectionWrapper.<init>(ConnectionWrapper.java:219)
         at oracle.sysman.emSDK.svc.conn.FGAConnection.<init>(FGAConnection.java:151)
         at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:330)
         at oracle.sysman.emSDK.svc.conn.ConnectionService.getPrivateConnection(ConnectionService.java:1798)
         at oracle.sysman.emSDK.svc.conn.EMReposConnectionDataSource.getConnection(EMReposConnectionDataSource.java:63)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:939)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1112)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6372)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:286)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:476)
         at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
         at oracle.adf.model.BindingContext.put(BindingContext.java:1271)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:173)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1005)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1219)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1122)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1082)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1126)
         at oracle.adf.model.BindingContext.get(BindingContext.java:1083)
         at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)
         at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)
         at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2682)
         at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2730)
         at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:305)
         at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1456)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1564)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2433)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2378)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4270)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)
         at oracle.adf.model.binding.DCIteratorBinding.getAllRowsInRange(DCIteratorBinding.java:2306)
         at oracle.adf.model.binding.DCControlBinding.getAllRowsInRange(DCControlBinding.java:447)
         at oracle.sysman.db.provisioning.ui.pagemodel.common.tgtsel.DbProvisioningTgtSelPageModel.updateCollectionMap(DbProvisioningTgtSelPageModel.java:214)
    Any inputs on this.
    Thanks in advance
    Regards
    Rama

    A Few more updates to this issue
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    CollectionModel model= (CollectionModel) resolveExpression("#{bindings.DbProvCurrentSnapshotVOInst.collectionModel}");
    if(null!=model) {
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) model.getWrappedData();
    if(null!=treeBinding) {
    Row[] r = treeBinding.getAllRowsInRange();
    if(null!=r) {
    for(Row r1:r) {
    collectionTimeMap.put((String)r1.getAttribute(TARGET_NAME_ATTR),.....)));
    The region's pagedef has the following entry
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.55.49" id="targetselectionPageDef"
    Package="db.provisioning.common.tgtsel">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator id="DbProvCurrentSnapshotVOInstIterator"
    Binds="DbProvCurrentSnapshotVOInst"
    DataControl="DbProvAMDataControl" RangeSize="25"/>
    </executables>
    <bindings>
    <tree IterBinding="DbProvCurrentSnapshotVOInstIterator"
    id="DbProvCurrentSnapshotVOInst">
    <nodeDefinition DefName="oracle.sysman.db.provisioning.model.view.DbProvCurrentSnapshotVO"
    Name="DbProvCurrentSnapshotVOInst0">
    <AttrNames>
    <Item Value="TargetName"/>
    <Item Value="StartTimestamp"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Application Module
    <AppModule
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="DbProvAM"
    Version="11.1.1.56.77"
    ComponentClass="oracle.sysman.db.provisioning.model.applicationModule.DbProvAMImpl"
    DefClass="oracle.sysman.db.provisioning.model.applicationModule.DbProvAMDefImpl"
    ClearCacheOnRollback="true">
    <DesignTime>
    <Attr Name="_deployType" Value="0"/>
    <Attr Name="_isDefCodegen" Value="true"/>
    <Attr Name="_isCodegen" Value="true"/>
    </DesignTime>
    <ViewUsage
    Name="DbProvCurrentSnapshotVOInst"
    ViewObjectName="oracle.sysman.db.provisioning.model.view.DbProvCurrentSnapshotVO"/>
    </AppModule>
    bc4j entry
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">
    <AppModuleConfigBag ApplicationName="oracle.sysman.db.provisioning.model.applicationModule.DbProvAM">
    <AppModuleConfig DeployPlatform="LOCAL" jbo.project="oracle.sysman.db.provisioning.model.DbProvisioningModel" name="DbProvAMLocal" ApplicationName="oracle.sysman.db.provisioning.model.applicationModule.DbProvAM">
    <Database jbo.TypeMapEntries="Java" jbo.locking.mode="optimistic"/>
    <Security AppModuleJndiName="oracle.sysman.db.provisioning.model.applicationModule.DbProvAM"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/EMReposDS"/>
    </AppModuleConfig>
    <AppModuleConfig DeployPlatform="LOCAL" jbo.project="oracle.sysman.db.provisioning.model.DbProvisioningModel" name="DbProvAMShared" ApplicationName="oracle.sysman.db.provisioning.model.applicationModule.DbProvAM">
    <AM-Pooling jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.isuseexclusive="false" jbo.ampool.maxpoolsize="1" jbo.ampool.resetnontransactionalstate="false"/>
    <Database jbo.TypeMapEntries="Java" jbo.locking.mode="optimistic"/>
    <Security AppModuleJndiName="oracle.sysman.db.provisioning.model.applicationModule.DbProvAM"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/EMReposDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    The scenario is that I launch a page which has a region. This region needs to get a list of values from the backend. These values are coming from a VO.
    This issue happens only in the farms and I guess at times from the view, but doing a bounce of the server resolves the issue.
    Is there any setting that needs to be done ?
    Thanks
    Regards
    Rama

  • Exchange error id 74 Connection leak detected for key

    I found error on my Mailbox server and can't find any description for this error:
    (Process w3wp.exe, PID 3728) Connection leak detected for key contoso.ua/Enterprise Administrators/Exch_administrator in Microsoft.Exchange.Configuration.Authorization.WSManBudgetManager class. Leaked Value 2.
    Source:MSExchange RBAC
    Event ID:74
    Task Category:RBAC
    Level: Error
    Log Name: Application
    Exch_administrator - this is my user account. Any suggestion what it is can be?

    Hi,
    If you receive an alert that specifies that DataProtection is unhealthy, this indicates an issue that may affect the replication or cluster components, and that can prevent access to the Exchange databases.
    To troubleshoot the DataProtection health set, you can refer to the following article.
    Troubleshooting DataProtection Health Set
    http://technet.microsoft.com/en-us/library/ms.exch.scom.dataprotection(v=exchg.150).aspx
    For the FEP health set, it is related to the ForeFront. If you don't have ForeFront installed, you can disable this HealthSet on the server.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Tools and/or techniques for locating a connection leak

    I am working on a application that has been hanging periodically. A thread dump showed many, many threads that had called getConnection() were in WAIT state. So it appears that there is a connection leak.
    This application is about 50% legacy code from around 2003 and 50% new code. The new code uses Spring JDBC support so I doubt that the connection leak is there because there is no explicit getting and closing of connections. The legacy code is full of strange and hard to understand logic involving connections so it is the prime suspect.
    My first idea was to centralize the get and close and do some logging but the amount of work would be enormous so I'm wondering if there are tools and/or techniques that would make this job easier.
    I thought YourKit might be the answer but I did not see anything about connection leaks in a cursory look at the user guide table of contents.
    So, I would welcome any suggestions.
    -=bill

    This resource might help you
    http://www.sdnshare.com/view.jsp?id=538

  • Tool to detect Connection Leak

    In DOCS/Articles, it is mentioned that a TOOL is available to view the LEAKED CONNECTIONS,
    NO.OF CONNECTION AVAILABLE......
    Can anyone tell me Where this tool is available ?
    In Docs, it is given that in PetStore Example, the tool is avialble...But o could
    not find it......
    Bcoz it is very difficult to know whether a connection leak occured or not....Even
    after Forcing Garbage Collector,,, i cannot see any Leaked Connection......

    "jyothi shanbhag" <[email protected]> wrote in message > is there WLS tool which we can run for our source code to detect
    any connection leak ?
    >
    I have heard that there is one such tool provided by BEA Weblogic itself but i do not know what is exactly and how to use it.
    I would highly appreicate for your help in this regard.Here is a set of RNT (Really Nice Tools (c) mine :) for automated bug detection:
    http://findbugs.sourceforge.net
    http://pmd.sourceforge.net
    Regards,
    Slava Imeshev

  • HELP !!!! Connection LEAK

    In DOCS/Articles, it is mentioned that a TOOL is available to view the LEAKED CONNECTIONS,
    NO.OF CONNECTION AVAILABLE......
    REF :
    http://dev2dev.bea.com/products/wlserver81/articles/Chapman_Gahir.jsp
    Can anyone tell me Where this tool is available ? In Docs, it is given that in
    PetStore Example, the tool is avialble...But o could not find it...... Bcoz it
    is very difficult to know whether a connection leak occured or not....Even after
    Forcing Garbage Collector,,, i cannot see any Leaked Connection......
    Iam desperate and all my efforts to rule out connection leak is becoming waste..
    For the last 1 week iam into this job, and still not able to detect or view the
    connection...
    I have tried all the methods like,,,
    enable connection leak profile = true,
    Force Garbage Collection...
    But still icannot view any LEAKED CONNECTIONS....PLEASE HELP ME.. Iam getting
    mad.........

    I dont think there is any such tool provided by BEA to detect connection leaks.
    You can use the "enable connection leak profile " which will give Warning messages
    whenever a connection leak is detected by WLS Server.
    WLS 8.1 also provides an option of
    "Inactive Connection Timeout:" in the console which releases the connection into
    Pool if the connection is inactive for the specified period of time.
    Else you can also use Profiles like JProbe and Optimize it to detect memory leaks.
    However if you have properly closed all your connections you are not likely to
    any connection leaks unless there is an issue with the JDBC Drivers.
    "saiprabhusai" <[email protected]> wrote:
    >
    In DOCS/Articles, it is mentioned that a TOOL is available to view the
    LEAKED CONNECTIONS,
    NO.OF CONNECTION AVAILABLE......
    REF :
    http://dev2dev.bea.com/products/wlserver81/articles/Chapman_Gahir.jsp
    Can anyone tell me Where this tool is available ? In Docs, it is given
    that in
    PetStore Example, the tool is avialble...But o could not find it......
    Bcoz it
    is very difficult to know whether a connection leak occured or not....Even
    after
    Forcing Garbage Collector,,, i cannot see any Leaked Connection......
    Iam desperate and all my efforts to rule out connection leak is becoming
    waste..
    For the last 1 week iam into this job, and still not able to detect or
    view the
    connection...
    I have tried all the methods like,,,
    enable connection leak profile = true,
    Force Garbage Collection...
    But still icannot view any LEAKED CONNECTIONS....PLEASE HELP ME.. Iam
    getting
    mad.........

  • Jdbc connection leak problem in wls 8.1 sp1

    Fellows!
    I have problem finding a jdbc connection leak and hope to get some tips from
    a som friendly person who has some experience about this.
    The application contains some 100 classes and CMP beans.
    All connections are fetched with datasource.getConnection and are realesed
    in finally() immediately after the sql-query is done.
    Except for the entity beans of course which has the transaction required
    attribute set.
    Any ideas much appreciated!
    Best regards from the top of Europe - Luleå.
    Here the first snow has been falling and thin ice has freezed on the gulf of
    bothnia.
    Stefan

    Stefan Johansson wrote:
    Fellows!
    I have problem finding a jdbc connection leak and hope to get some tips from
    a som friendly person who has some experience about this.
    The application contains some 100 classes and CMP beans.
    All connections are fetched with datasource.getConnection and are realesed
    in finally() immediately after the sql-query is done.
    Except for the entity beans of course which has the transaction required
    attribute set.Hi. I don't understand this last 'except'. All jdbc code in bean methods
    should be defining a connection as a method variable, obtaining it from
    a TxDataSource in a try block, used completely, and closed as the only/first
    thing in the finally block. We will handle the close() correctly, it won't
    hurt the tx if there is one, and it will do the right thing if there isn't one.
    How do you know there's a leak? Usually our leak-detection shows where the connection
    was made, so you can find out why it wasn't closed...
    Joe
    >
    Any ideas much appreciated!
    Best regards from the top of Europe - Luleå.
    Here the first snow has been falling and thin ice has freezed on the gulf of
    bothnia.
    Stefan

  • Connection leaks and application is running out of connection

    Hi All,
    We have configured the SQL Database external resource for OBPM specific connection pool. All the business processes are using the Fuego.Sql package for the data base transaction calls. I have no clue how this package is managing the database connections. If more than 25 users perform concurrent testing, the application is running out of connections. Connection pool configuration details as below.
    Maximum Pool Size : 500
    Maximum connections per user : 50
    Minimun Pool Size : 0
    Connection Idle Time (mins). : 5
    Maximum Opened Cursors : 1000
    Please share your thoughts on how I can track and fix this issue. Also please let me know the answers below.
    1. Is there any way to find out the stats about the connection pool
    2. If I configure the remote JDBC that points to J2EE datasource, would that fix this issue.
    I appreciate your help.
    Thanks,

    Can anyone please share your ideas?
    Thanks,

  • TCP/IP Connection leak

    Hello.
    I have Gentoo Linux + Apache 2 + Tomcat 4 on one machine, and SCO Unix + Oracle 7 (old, I know) on other. I'm using classes111.zip from Oracle 9 to access the database.
    I also have a lot of JSPs, all following the same pattern:
    open connection
    create statement
    get resultset
    display data
    close rs, stmt, con
    This works fine, users can log in, log out, and access the data, until the server load come up to 300-400 hits per hour (one page request every 10 sec.) Then, after about 30 minutes, the database server gets stucked.
    I've been following the 'netstat -at' statistics for last couple of days, and it seems that during the light load, there are one or none ESTABLISHED TCP/IP connection, and 3-20 connections in TIME_WAIT state. But during the heavy load, the number of ESTABLISHED connections is increasing, and I suppose for some reason they don't go into TIME_WAIT state.
    This number is increasing until database server is completly stucked, and even ssh won't work.
    Then, we restart the Oracle 7 server (software, not the machine), and its all right. Until next stuck.
    What is the reason for this behavior?
    Regards

    I think you need to check carefully all JSPs for closing active database connections. All JSPs must close connection in finally block.

Maybe you are looking for