Running out of data connections

Problem Statement:
Running out of data connections after some time and
the following SQLException is thrown:
"failed to create a data connection with any of the
specified drivers"
Problem Description:
I have an application that is running under iPlanet
6.0 on solaris using Oracle 8 and type 2 Oracle
driver.
The application is using a number of stateless
session beans.
Normally, my servlets instantiate the remote beans in
order to make access to their interfaces. For
example, I have a servlet that fetches all of
the accounts for a given customer. First, The servlet
does the fetch by calling JNDI to lookup the "home"
interface, then does a "create" call on the home
interface to get the "remote" interface
(see snippets of code below, the ejbCreate()).
Second, the servlet calls up a specific method that
extracts the customer's accounts (see snippets of
code below, the method getAccountList()).
At first all seem to work well, however after some
random time my beans start to throw the SQLException
"failed to create a data connection with any of the
specified drivers"
At first I thought that I am not closing the
connections, but all of of my connections,
statements, and result sets, are closed
and even set to null in a finally block as you can
see in the snippets of code below.
If I restart iAS, all of the connections get released
and things look normal again till the problem
re-occurs.
Initially, we had this problem on SP2, so we upgraded
to SP3 thinking that this may solve the problem,
however the problem remained on SP3.
Another thing, this same application works perfectly
well on my laptop which has similar iPlanet
configurations except that operating system is
Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
System Configuration:
Following is my system configuration and related
iPlanet 6.0 settings.
-1- iPlanet 6.0 SP3
-2- Type 2 Oracle driver
-3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
-4- Oracle 8.1.6.0.0 64-bit Production
-5- Following are the entry settings in the iPlanet
registry under
Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
- CacheCleanInterval = 120
- CacheConnTimeOut = 120
- CacheDebugMsgs = 0
- CacheFreeSlots = 16
- CacheInitSlots = 64
- CacheMaxConn = 64
- CachMaxGlobalConn = 128
- ConnGiveUpTime = 60
- RMThreadMax = 32
- RMThreadMin = 0
- RSBufferInitRows = 25
- RSBufferMaxBufferSize = 6553600
- RSBufferMaxRows = 100
- RSBufferMaxSize = 32768
- SQLDebugMsgs = 0
Snippets of Code:
The following snippets of code come from a stateless
session bean and consist of a local data member, the
ejbCreate() method, and a typical rmi method that
does the database connection and extraction of
related records.
javax.sql.DataSource dataSourceObj = null;
public void ejbCreate()
throws java.rmi.RemoteException, javax.ejb.CreateException
javax.naming.Context ctx = null;
// Ensure first that the _props have been
// successfully instantiated by the constructor.
if (_props != null) {
try{
ctx = new javax.naming.InitialContext();
}catch (Exception ex){           
     nbUtility.logError(ex,"Error while creating Initial Context !");
try{
// DEBUG:
System.out.println("ejbCreate(): NB_DATASOURCE = " + props.getPropertyValue(props.NB_DATASOURCE));
// DEBUG:
     dataSourceObj = (javax.sql.DataSource) ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
catch (Exception ex){
     ex.printStackTrace();
if (dataSourceObj == null)
throw new javax.ejb.CreateException("Couldn't get DataSource object from environment");
} else {
throw new javax.ejb.CreateException("Couldn't create the property manager: NB_CONFIG_FILE is null, empty, not set, or the file doesn't exist.");
* Given a customer number, this method
* returns the list of accounts that belongs to
* this customers.
public nbAccountList getAccountList(String CustomerNo)
throws java.rmi.RemoteException {
nbAccountList accountList = null;
if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
java.sql.Connection conn = null;
java.sql.Statement stmt = null;
java.sql.ResultSet rset = null;
try {
accountList = new nbAccountList();
String sql = "SELECT * FROM " +
props.getPropertyValue(props.NB_DBTABLE_ACCOUNT) +
" WHERE " +
"(" + props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
"='" + CustomerNo + "')";
// DEBUG:
nbDebug.write("accounts list SQL= " + sql);
// DEBUG:
// Let's get the connection, the statement, and the record set.
conn = dataSourceObj.getConnection();
stmt = conn.createStatement();
rset = stmt.executeQuery(sql);
// Let's loop for each single account
int index = 0;
nbAccount account = null;
while (rset.next()) {
     String AccountNo = rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTNO));
// Instantiate an account object
account = new nbAccount(AccountNo);
index++;
} catch (SQLException e) {
     nbUtility.logError(e, "SQLException while trying to get accounts data.");
} finally {
try {
if (rset != null) { rset.close(); rset = null; }      
if (stmt != null) { stmt.close(); stmt = null; }
if (conn != null) { conn.close(); conn = null; }
} catch (SQLException e) {
     nbUtility.logError(e, "SQLException while trying to close connection.");
return (accountList);      
}

I've experienced similar problems. Unfortunately, all efforts by iPlanet
technical support to resolve the issue have failed. (They do keep calling
and asking if they can close the ticket for some reason)
One thing that's totally anoying is the ksvradmin monitory crashes when I
try to have it report any connection pool information. They verified it's a
bug in SP3 but won't say if it's fixed in SP4 or provide an estimate.
To date here's what I've tried (by tech support's recomendation):
1) Configure for global transactions. (even thow I'm not using them)
(Failed)
2) Switch to using 3rd party driver (We were previously using native)
(Failed)
3) Ran report on oracle showing number of connections used during iplanet's
failed attempt. Report from Oracle shows 2 connections open, but iPlanet is
configured for 120.
4) Increased the connection pool size. (I didn't know why based on the
above info) (Increased to 300) (Failed)
Well there's my history. We crash after about 3 days of heavy usage. I'm
about to give up and just reset my servers each night. Will help me with
logfile rotation of the kjs files as well.
Rodger Ball
Sr. Engineer
Business Wire
"Bilal Chouman" <[email protected]> wrote in message
news:[email protected]...
Problem Statement:
Running out of data connections after some time and
the following SQLException is thrown:
"failed to create a data connection with any of the
specified drivers"
Problem Description:
I have an application that is running under iPlanet
6.0 on solaris using Oracle 8 and type 2 Oracle
driver.
The application is using a number of stateless
session beans.
Normally, my servlets instantiate the remote beans in
order to make access to their interfaces. For
example, I have a servlet that fetches all of
the accounts for a given customer. First, The servlet
does the fetch by calling JNDI to lookup the "home"
interface, then does a "create" call on the home
interface to get the "remote" interface
(see snippets of code below, the ejbCreate()).
Second, the servlet calls up a specific method that
extracts the customer's accounts (see snippets of
code below, the method getAccountList()).
At first all seem to work well, however after some
random time my beans start to throw the SQLException
"failed to create a data connection with any of the
specified drivers"
At first I thought that I am not closing the
connections, but all of of my connections,
statements, and result sets, are closed
and even set to null in a finally block as you can
see in the snippets of code below.
If I restart iAS, all of the connections get released
and things look normal again till the problem
re-occurs.
Initially, we had this problem on SP2, so we upgraded
to SP3 thinking that this may solve the problem,
however the problem remained on SP3.
Another thing, this same application works perfectly
well on my laptop which has similar iPlanet
configurations except that operating system is
Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
System Configuration:
Following is my system configuration and related
iPlanet 6.0 settings.
-1- iPlanet 6.0 SP3
-2- Type 2 Oracle driver
-3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
-4- Oracle 8.1.6.0.0 64-bit Production
-5- Following are the entry settings in the iPlanet
registry under
Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
- CacheCleanInterval = 120
- CacheConnTimeOut = 120
- CacheDebugMsgs = 0
- CacheFreeSlots = 16
- CacheInitSlots = 64
- CacheMaxConn = 64
- CachMaxGlobalConn = 128
- ConnGiveUpTime = 60
- RMThreadMax = 32
- RMThreadMin = 0
- RSBufferInitRows = 25
- RSBufferMaxBufferSize = 6553600
- RSBufferMaxRows = 100
- RSBufferMaxSize = 32768
- SQLDebugMsgs = 0
Snippets of Code:
The following snippets of code come from a stateless
session bean and consist of a local data member, the
ejbCreate() method, and a typical rmi method that
does the database connection and extraction of
related records.
javax.sql.DataSource dataSourceObj = null;
public void ejbCreate()
throws java.rmi.RemoteException, javax.ejb.CreateException
javax.naming.Context ctx = null;
// Ensure first that the _props have been
// successfully instantiated by the constructor.
if (_props != null) {
try{
ctx = new javax.naming.InitialContext();
}catch (Exception ex){
nbUtility.logError(ex,"Error while creating Initial Context
try{
// DEBUG:
System.out.println("ejbCreate(): NB_DATASOURCE = " +
props.getPropertyValue(props.NB_DATASOURCE));
// DEBUG:
dataSourceObj = (javax.sql.DataSource)
ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
catch (Exception ex){
ex.printStackTrace();
if (dataSourceObj == null)
throw new javax.ejb.CreateException("Couldn't get DataSource
object from environment");
} else {
throw new javax.ejb.CreateException("Couldn't create the
property manager: NB_CONFIG_FILE is null, empty, not set, or thefile
doesn't exist.");
* Given a customer number, this method
* returns the list of accounts that belongs to
* this customers.
public nbAccountList getAccountList(String CustomerNo)
throws java.rmi.RemoteException {
nbAccountList accountList = null;
if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
java.sql.Connection conn = null;
java.sql.Statement stmt = null;
java.sql.ResultSet rset = null;
try {
accountList = new nbAccountList();
String sql = "SELECT * FROM " +
props.getPropertyValue(props.NB_DBTABLE_ACCOUNT)
+
" WHERE " +
"(" +
props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
"='" + CustomerNo + "')";
// DEBUG:
nbDebug.write("accounts list SQL= " + sql);
// DEBUG:
// Let's get the connection, the statement, and the record
set.
conn = dataSourceObj.getConnection();
stmt = conn.createStatement();
rset = stmt.executeQuery(sql);
// Let's loop for each single account
int index = 0;
nbAccount account = null;
while (rset.next()) {
String AccountNo =
rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTN
O));
>
// Instantiate an account object
account = new nbAccount(AccountNo);
index++;
} catch (SQLException e) {
nbUtility.logError(e, "SQLException while trying to get
accounts data.");
} finally {
try {
if (rset != null) { rset.close(); rset = null; }
if (stmt != null) { stmt.close(); stmt = null; }
if (conn != null) { conn.close(); conn = null; }
} catch (SQLException e) {
nbUtility.logError(e, "SQLException while trying to close
connection.");
return (accountList);
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base!

Similar Messages

  • HT1689 since doing the 7.0.4 update i notice that my mobile data has doubled and i am running out of data mid month.  I've disabled apps s not many running.  Any suggestions?

    since doing the 7.0.4 update i notice that my mobile data has doubled and i am running out of data mid month.  I've disabled apps s not many running.  Any suggestions?

    I am having the same issue even with the newer 7.1. I have a 1-100 KB data push on both my husdand's and my phone every hour on the hour (i.e. my will be at :23 of the hour and his will be at :13 of the hour and it will change). This is whether we are on a WIFI and with all apps, background refreshes, push notifications, etc turned OFF.

  • IPOD POWER RUNS OUT QUICKLY WHEN CONNECTED TO PC

    Hi All,
    My fully charged IPod runs out of power in half an hour when I connect to PC, whereas when it is connected to my MAC it recharges the power.
    What can I do to prolong a battery time connected to PC?
    Thanks
    G

    Welcome to Apple Discussions.
    You have a 3G iPod. If you are using USB to connect, then I would say it is perfectly normal since 3G iPods cannot charge via USB and therefore your battery will be depleted when you sync. If indeed you are using USB, I suggest you get an USB2/Firewire iPod cable and connect the iPod in this way: How to connect the iPod Dock Connector to FireWire and USB 2.0 Cable (You need the Firewire iPod charger which should be included with your iPod.).

  • Problem running Burrito sample data connection app

    Hi, I have started the tutorial for Flash Builder Burito ( for Anfroid) given at link
    http://www.adobe.com/devnet/flex/testdrivemobile/articles/mtd_1_2.html
    1. I m facing problem while creating data connection (java clases) ----  step named "Create a Flex data service" in tutorial.
    2 I have installed apache and deployed testdrive war and I can see the employee data through the browser.
    3  When i try to create data service as mentioned below .......
    Step 1: Create a Flex data service.
    Use the Data menu and the Service Wizard to create a service for your application server. For ColdFusion and PHP, specify the service file you put on your application server earlier (see Figure 1 for a PHP example). For Java, select the No password required check box, select the employeeService destination, and change the service package to services.employeeservice.
    ........ I get the following error on clicking Data(menu) ---> Connect to data/service
    Why  is this RDS problem ? Am I missing something ... Please suggest.
    Regards
    Amit

    War files typically need to be deployed to an app server like tomcat. For more information on using Java with Flex, please refer this blog http://sujitreddyg.wordpress.com/.
    Mayank Kumar
    Flash Builder Engineering

  • Satellite A660 - 3D DVD software runs out of date or is secretly altered

    Whats going on; why do I get lynched to pay an additional $59 for software to make my Satellite 3D work?
    Ok.
    This probably sounds nuts; but my Toshiba Blu-Ray DVD software seems to have a DVD/Blu-ray prevention program in it. Preventing 3D and smaller issues.
    It has been out of whack since I updated the software on the Toshiba site and when I updated the nVidia GTS 350M drivers.
    That may be co-incidental to the problems which began in previous month/s; as I don`t always play discs on this laptop; so pinning a date when it went pear-shaped is harder.
    But, after going through a nightmare (of not working on DVD or Blu-Ray on half my discs for months now); I installed the latest TRIAL ($59) Corel WinDVD 11 Pro player and everything (including 3D) works perfect again. But for 30 days only; until/unless I`m robbed of $59 additional that is.
    The problem is/was;-
    3D only worked on half of my Blu-Ray 3D discs using pre-installed (and later updated) Toshiba COREL WinDVD media PLAYER. Sometimes it only played 3D side by side; 2 images. No 3D. Some Blu-Ray 3D discs were fine ODDLY. Region code not an issue.
    Toshiba DVD 3D player/upconvertor program was the worst (not the SD version, I dont use).
    Toshiba (HD) 3D player would not recognise half of my Blu-ray 3D laptop disc drive content. "DVD drive not recognised" error message.
    Toshiba DVD player itself would not upconvert any normal DVD to 3D.
    Toshiba DVD player would only play NORMAL 2D when running upconvert (no 3D).
    Toshiba DVD player would only play HALF-SPEED DVD when upconvert was disabled. When trying to play a DVD in normal 2D mode.
    All settings were tried and altered to fix the problem around a thousand times.
    Software uninstalled and re-booted and re-installed a dozen times each.
    I also had to un-install the software and re-boot and re-install the following;-
    nVidia graphics driver (from nVidia sites own 295.73 and re-install Update to the `older` nVidia Toshiba 260.51 driver).
    I used to be able to upconvert DVDs to 3D using this laptop; so it did work many months ago; but now that has all stopped for months now.
    Its a pain as I have un-installed everything and re-installed all the relevant software from the Toshiba home page; but no solution for the problem without getting mugged an extra $59.
    I hate computers for the ten-thousandth time.
    1 minute Ramble:-
    Its the last Microsoft product I will ever buy (Windows Ultimate rubbish [had to buy a new A3 color lazer printer as no Win 7 drivers for my existing laser printer]).
    SAMSUNG (3D internet TV) products from now on. No computers for ten years. Until the rats get it right and stop experimenting on my wallet. $10,000 on PC products in the past 5 years and still being able to do simple things like watch a 3D movie is a hit and miss affair.
    I`m rambling....because a hundred hours reading on how to get it working again has scrambled my head.
    Spec
    Toshiba A660 3D laptop. Satellite.
    Windows 7 Ultimate. Updated.
    Intel i7 1.73Ghz
    Graphics is GTS 350M
    4GB Ram (8-gig upgrade on order)
    Spare 550GB hard-drive space.
    Toshiba site; Bios updated.
    Toshiba own DVD 3D player (doesn't cut the mustard) Version 4.00.1.08
    Toshiba Corel WinDVD 3D player (doesn't cut the mustard) Version 10.0.5.822
    The Nvidia graphics always works fine on the test background page; which makes me think software; but all the relavant software has been updated. Re-installed and re-tried a hundred times with different settings.
    I thought the discs were the problem. But 50 DVDs not working in 3D up-converting, or faulty all by themselves? And half of my 3D Blu-Ray collection?
    I wondered if these these problems are deeper than this one system. Whether there was a systemic problem somewhere (besides blaming the buyer end-user).
    Toshiba assist line in one call was a guy who knew far less than me and had to ask someone advice for every single part of the call. 2 hours to tell me to re-install the software in a long, slow, bit-by-bit way, eventually. We done everything they can do to help. Now they seem to blame the discs and don`t have any answer.
    Microsoft x64 Ultimate says its roger all to do with them on their helpline/e-mail assist.
    I tried nVidia to no avail;
    Any ideas; do I bite the bullet and everyone eventually be forced bit by bit to pay for $59 software to get the thing working.
    Whats the beef?

    Hi
    You wrote really long story :) anyway this is an user to user community Im not sure if I could clarify all these issue for you but I would try to share my knowledge with you.
    But firstly it would be really interesting to know what Satellite A660-xxx do you have exactly?
    You said that you have installed the Win 7 ultimate.
    According to the Toshiba page the notebook was preinstalled with Windows Home Premium. The preinstalled WinDVD was a full version (not trial) and you have not to pay for this software. In my case I have not to pay for any software (except MS Office :) )
    you said also:
    > I installed the latest TRIAL ($59) Corel WinDVD 11 Pro player and everything (including 3D) works perfect again. But for 30 days only; until/unless I`m robbed of $59 additional that is.
    So it seems that you dont use the preinstalled Win DVD but you have installed other version which was not preinstalledso you have to purchase such version if you want to use a full version of any software which is not part of Toshiba image.
    > 3D only worked on half of my Blu-Ray 3D discs using pre-installed (and later updated) Toshiba COREL WinDVD media PLAYER. Sometimes it only played 3D side by side; 2 images. No 3D. Some Blu-Ray 3D discs were fine ODDLY. Region code not an issue.
    Take a look into this Toshiba document:
    +3D video content not displayed in 3D when using the Toshiba Blu-ray Disc Player+
    http://aps2.toshiba-tro.de/kb0/TSB1C038C0000R01.htm
    >Toshiba DVD 3D player/upconvertor program was the worst (not the SD version, I dont use). Toshiba (HD) 3D player would not recognise half of my Blu-ray 3D laptop disc drive content. "DVD drive not recognised" error message. Toshiba DVD player itself would not upconvert any normal DVD to 3D. Toshiba DVD player would only play NORMAL 2D when running upconvert (no 3D). Toshiba DVD player would only play HALF-SPEED DVD when upconvert was disabled. When trying to play a DVD in normal 2D mode.
    Found some info regarding the Toshiba player which should provide answers to most mentioned issues:
    +Toshiba DVD Player Troubleshooting+
    http://aps2.toshiba-tro.de/kb0/TSD17036L0000R01.htm
    +Toshiba DVD Player Settings+
    http://aps2.toshiba-tro.de/kb0/TSB17036M0000R01.htm
    +Important Information for Using the Toshiba DVD Player+
    http://aps2.toshiba-tro.de/kb0/TSB17036N0000R01.htm
    +Useful information for playing DVDs with the Toshiba DVD Player+
    http://aps2.toshiba-tro.de/kb0/TSB17036O0000R01.htm

  • I'm running out of data transfer space?

    Anyone help me understand how this fills up, and what it's caused by? I have a QT short movie on my iWebsite, if it matters. Says,
    "You are currently using 3.82 GB of 5 GB bimonthly data transfer limit. Find out more about data transfer limits."

    Upgrading to the family pack still only gives you 1GB of space, no idea what the data transfer is, but probably still 10GB/month.
    From .mac help:
    Adding storage
    If you're a .Mac member, You can increase your combined email and iDisk storage to a total of 2 GB or 4 GB by purchasing more storage.
    Note: If you have a trial membership, email-only account, or Family Pack sub-account, you cannot increase your storage amount.
    The cost of upgrading your combined email and iDisk storage is determined by the time remaining in your yearly membership and the amount of storage you already have. For example, if you upgrade your storage space six months before your renewal date, you pay only half the yearly fee.
    The cost of the additional space is charged to your credit card. Your purchase will renew automatically as part of your account subscription each year. For pricing information, see ".Mac pricing" in the Membership section of .Mac Help.
    To add storage:
    1. Go to www.mac.com and log in.
    2. Click your member name on the .Mac tab, and then confirm your login.
    3. Click Buy More on your Account Settings page.
    4. Choose an upgrade option from the Storage pop-up menu, and then click Continue.
    5. Review your billing information and click Continue.
    6. Review your order and click Buy Now.
    7.
    8. Wait while your order is processed (it only takes a moment). Don't use your browser to view another page until you see your purchase confirmation.
    After you see your purchase confirmation, it takes a few minutes before your new storage is available. When you upgrade your storage, the additional storage you purchased is allocated to your personal iDisk. To learn about setting different storage capacities for .Mac Mail and your iDisk, see "Designating storage."
    Your best bet is to add storage, as this increases your bandwith as well,
    Upgrade to 2GB of storage = 25GB/month
    Upgrade to 4GB of storage = 250GB/month
    Follow the steps above (1-4) and it will show you the price for your part of the world.
    Will
    1GHz G4, 15" PB, 1.5GB RAM, Airport Network, 4 GB iPod Mini (1G), 60GB iPod (5G)   Mac OS X (10.4.6)  
    Help others by marking solved questions as answered ( + Solved or Helpful )

  • Running out of pooled connections

    i have web application developed with jsp/servlets and mysql. i use JNDI datasource connection pooling. i have the following element defined in my server.xml file:
    <Resource name="jdbc/JSNDB" auth="Container" type="javax.sql.DataSource"
              maxActive="100" maxIdle="30" maxWait="10000"
                   removeAbandoned="true" removeAbandonedTimeout="60"
    logAbandoned="false"
              username="root" password="pn2072"
    driverClassName="com.mysql.jdbc.Driver"
         url="jdbc:mysql://localhost:3306/globe?autoReconnect=true"/>
    my site is highly dependent on the databse for content and makes extensive use of db conections. only after a few clicks, my application cannot get any more connections from the pool. when i check the mysql server, i see that after 100 connections are created, they are never released even though i close every resultset, statement and connection immediately after i use them.
    can any one please help.
    many thanks
    akz

    hi
    this is the method from which I get connections from the pool:
    public static Connection getConnection() {
         DataSource ds=null;
         try {
         Context ctx = new InitialContext();
         if(ctx == null ) throw new Exception("Boom - No Context");
         ds = (DataSource)ctx.lookup("java:comp/env/jdbc/JSNDB");
                   return ds.getConnection();
         } catch(Exception e) {
         e.printStackTrace();
         return null;
    and this is how i close my connections (in every method that gets a connection):
    finally
                   try{
    rst.xlose();
                        stmt.close();
                        conn.close();
                   catch(SQLException e){}
              }

  • Running out of available connections

    Hi, we have been used OO4O for about 5 years in an ASP.NET application under Windows 2000, which appear to be fine.
    1.5 years ago we upgraded to Windows 2003 where we noticed that connections was not being returned back to the datapool. We had Microsoft help us identity that the OO40 COM object was the root cause (a threading issue for I can remember).
    I know that we have done everything in our code to close the connections, but to no still having the same problem(s). What we did was to try to obtain a connction from the datapool (50) which worked but for any reason this failed (99% of the time the connection pool was full) we would make a direct connection to the database (which we closed, destroyed etc).
    Over the last 6 months we have rewritten 60% of our Web application to improve performance using ODP.NET and still using OO40 for the remainder 40%. Becauase these new changes did not impact any existing functionality, we only done performance tests on the new framework (ASP.NET V2.0/V3.0, ODP.NET).
    We went live over yesturday (Monday 18/08/2008), with no problems until 1pm where we experienced errors on the old version (using OO4O).
    We then perform a load test (15 users for about 5-10 minutes) on the old version on one of these page(s) and noticed when the connections to the database hit 23 then these page(s) started to fail.
    As soon as these connection dropped, these page(s) started to work fine.
    We have 2 version of Oracle Client 9.2 and 10 (ODP.NET), could installing V10 along side 9 cause any problems?
    Any help would be great.
    Thank you

    Hello,
    Did you ckeck the TCP/IP port of the SQL Server service? Please verify you had configured the firewall on the computer to allow this instance of SQL Server to accept connections, for example Tcp port 1433, by default.
    The following thread is about same issue, you can try to the solution as Nitin post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/27684811-1a59-4273-b7ed-3cc990b4f20a/sql-server-error-53-and-sql-server-error-17?forum=sqlgetstarted
    The following KB article may related to this issue:
    http://support.microsoft.com/kb/817179
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • JCo Connections in WD Model running out

    Hello,
    we have WD application that uses RFC model.
    During a load test we have observed that the connection
    pools are running out of JCo connections. The result is a an error message in the trace file
    and Http 500 response code to the end user.
    Number of concurrent users: 20
    Max Pool Size: 20
    Max Connections: 20
    Exception:
    [code]aused by: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool ME_LP_MODELDATA_TSTWEB1_PT_useSSO is exhausted. The current pool size limit is 20 connections.
         at com.sap.mw.jco.JCO$Pool.getClient(JCO.java:5150)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5849)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5799)
         at com.sap.mw.jco.JCO.getClient(JCO.java:8076)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.getClient(AbstractJCOClientConnection.java:393)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.getCurrentlyUsedJcoClient(AiiModel.java:191)[/code]
    Questions:
    Is it necessary to have equal number of Max Connections as
    number of potential concurrent users?
    Or is there a way to manually release not used connections?
    Best Regards, Maik

    Hi,
    It is not necessary to create as many connections as there are concurrent users.
    We have to handle the scope of the connection properly and also close the connections once we complete the task.
    Re: How to close a model object connection for Adaptive RFC?
    Regards
    Bharathwaj

  • Connection pool running out of connections

    Hi all,
    I am using Oracle's connection pool implementation:
    OracleConnectionPoolDataSource dbConnection;
    OracleConnectionCacheImpl connectionPool;
    and tomcat 3 and 4. Sometimes on Tomcat 4 (Linux) I see that the connections are not being reutilized and therefore I run out of free connections. The same application runs fine on NT and Tomcat 3 and 4. I checked all my methods and all have a close(connection) in my finally{} and besides this the problem only happens once in a while and the program is using the same methods all the time. Anybody has a clue about what could the issue be?
    Thanks,
    A.

    have u tried setCacheScheme?

  • Ran Out of Data

    Within the past year, my iPhone 4 has been slowly running out of data, even though I continuously check the usage and delete unneeded apps. Just a few moments ago, I couldn't even take a photo due to not having any more data available. I use the phone everyday, but I delete history, open apps, and other items when I finished with it. I have ten total apps, Facebook being the one with the most used data, but that seems awfully little compared to others' phones. Another thing as well, my phone will not let me erase any text messages, otherwise I cannot receive or send any messages without turning off the iPhone completely. I don't know what else to do, please help. Thank you

    are you talking about storage or data as in how much you can download from the Internet with your carrier each month?

  • How do I add to my data plan on the iPad once I have run out of time and no longer have an internet connection?

    How do I add to my data plan on the iPad once I have run out  and no longer have an internet connection? I am working out of the country and got a message that I was running low,followed immediatly by a you're out message.

    Should you not be asking your carrier? They are the people supplying your data plan.

  • My iMac PowerPC G4 will not connect to my Belkin N  router. I have not been able to connect for so long that I actually gave up on this computer until today, so it is a little out of date software wise. It is running OS 10.3.9.

    First off i apoligize for the title length, a bit new to help forums and didnt realize thats what that was .
    Anyways;
    My iMac PowerPC has been having this issue for quite a few years, prompting me to flat out replace it. I recently had a friend come to need a computer, and told them they could have it once i got it working.
    The unfortunate problem that i luckily discovered: my friend and i use the same brand / model of Router, the Belkin N+ (N plus incase it removes the plus sign like it did in the title).
    Ive tried everything i know, which isnt much. I've verified the password is correct, ive restarted the computer, and ive restarted my modem and router. Nothing works.
    I should mention also that the computer is out of date program wise (obviously) since i havent been able to connect with it in so long. I am still using Internet Connect, and the computer still gives me the option to try .Mac.
    Any help would be greatly appreciated.
    Dean

    The router is much, much newer than the computer, perhaps some characteristic of the WiFi network as it's currently setup is preventing the computer from connecting.
    Try to go back to the basics: set your WiFi network to "b" mode only (i.e., turn off "g") and termporarily remove the password from it. See if the computer will at least establish a connection at that point. Then start turning on one thing at a time ("g" mode, then security, etc).
    Not sure what format your WEP key is, but if it's not 10 characters (the minimum for the standard, which constitutes a 64-bit key), you can try making it that long. If it's 13 or 26 characters, it might be a higher encryption than the computer can support.
    If all else fails, you could try looking on ebay/craigslist for a copy of Tiger to install on the iMac, which would have software support for more WiFi encryption schemes. Also, it would provide software support for USB WiFi adapters that would also be able to connect to more modern networks.

  • 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,

  • PDF form with XML data connection comes up blank at run time

    Hello All,
    I am a newbie to ADOBE Livecycle 9, but am very proficient in C#.  I would like to request for your guidance on the following issue.
    We have a desktop application in C#, WPF, Sqlserver. The requirement is to launch a Livecycle form from the application for the user to read/edit/save data
    I have done this much so far -
    Downloaded trial version of Livecycle 9
    Developed a interactive PDf form
    Created an XML based data connection. Generated fields on the form using the fields from this connection.
    Set the .XML file as preview source for the form
    the controls on the form are boumd to the xml data source
    In design mode, the form works fine, it displays my data correctly
    I have created a WPF form with a button. On click of this button, I call the Process.Start(pdf-file-path). My pdf is launched properly
    I have added a combo box to my WPF form. I select a parameter from this, then call a stored procedure which returns me a datatable depending on parameter passed
    Using the returned datatable, I have used the datatable.writexml and datatable.writexmlschema to create my XML and XSD files. as mentioned above, this xsd is used to create the data connection for the PDF and the XML for the preview source
    This is what I want to do -
    Launch the PDF from my WPF form, pre-populated with the newly created XML data from my WPF form.
    So basically, as the user changes the selection criteria from the combo box, the XML file data will change and the PDF file will be launched each time with new data.
    The XSD format will always be constant
    Problem -
    My XML and XSD get created properly, my PDF launches, but it is empty
    If I change my selection criteria and run the WPF application, and then open the PDF in design mode, it asks me whether it should refresh the XML source. This means that the PDF form is connecting correctly to the XML source
    So why then, does the form come up empty at run time?
    What link am I missing?
    I have found some sites that help using Web applications, but nothing for desktop applications. It would be fantastic if you could point me to some help for developing Livecycle forms with C# / SQLServer
    Your help in this case will be highly appreciated.
    Thanks and Regards

    Oops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br />                                                              <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim

Maybe you are looking for