Why does it take over 2 minutes to get a database connection from the DataSource?

Hello,
It is taking over 2 minutes for my application to get a connection from a registered DataSource in iAS 6.0 sp4 on Solaris. The proper results are returned it just takes 2 minutes to establish the connection. The DataSource is an Oracle 9i database. I have the 9i drivers in the classpath. I also have a registered datasource that is an Oracle 8 database and have no problems establishing a connection quickly to that database. As an aside I have setup this application on JBOSS and both datasource's return a connection very quickly. If anyone has any ideas about what might be going on please respond. This issue is holding up a production release.
Here is the code:
try {
log.debug("getting a new initial context");
ctx = new InitialContext();
ds = (DataSource) ctx.lookup(bundle.getString("IW_DATASOURCE"));
log.debug("after looking up datasource from initial context");
} catch (NamingException e) {
log.error(e);
throw new FinstarException
(bundle.getString("E-0001"));
try {
log.debug("about to get connection");
conn = ds.getConnection();
log.debug("after getting connection");
Produces this in the logs:
2002-05-29 08:55:12,859 DEBUG org.mitre.mii.project.finstar.FinancialSummary - about to get connection
2002-05-29 08:57:24,963 DEBUG org.mitre.mii.project.finstar.FinancialSummary - after getting connection
Here is the datasource registration file:
<ias-resource>
<resource>
<jndi-name>jdbc/pdc/IWDataSource</jndi-name>
<jdbc>
<database-url>jdbc:oracle:thin:@xxx.xxx.org:1521:acisdb</database-url>
<datasource>jdbc/pdc/IWDataSource</datasource>
<username>XXXXX</username>
<password>XXXXX</password>
<driver-type>OracleThinDriver</driver-type>
</jdbc>
</resource>
</ias-resource>

Have you tried to eliminate everything extraneous. In other words, do you experience the same delays with a simple Java program (no lookups, JNDI) that loads the drivermanager and creates a connection.
Do you have access to a traciong JVM or some program that captures run-time execution timing information? Even without the source, this will tell you the specific class::methos where time is spent so you can better determine where the delay is ocurring.

Similar Messages

  • Why does it take over ten minutes for email to get through for my request for a signature

    Why isn't this program faster? It's been over 20 minutes emailing a test form, to myself, to see how quick this is? Is this normal? Not what I was looking for in a software program

    Have you tried to eliminate everything extraneous. In other words, do you experience the same delays with a simple Java program (no lookups, JNDI) that loads the drivermanager and creates a connection.
    Do you have access to a traciong JVM or some program that captures run-time execution timing information? Even without the source, this will tell you the specific class::methos where time is spent so you can better determine where the delay is ocurring.

  • Why does it take over two hours to download a movie on Apply tv

    Why does it take over two hours to download a  movie on Apple TV
    Thanks

    Welcome to the Apple Community.
    The first thing to check would be your internet download speed, you can do this at www.speedtest.net.
    1080p HD movies require a recommended speed of 8 Mbps, 720p HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.
    Netflix uses adaptive streaming and can reduce quality right down to produce a stream as low as 0.5 Mbps.

  • Why does Adobe take over?  Part 2

    Why does Adobe take over Part 2:  I attempted to use  http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html  and on download got a box that said, Quitting     Raise without Handler!    
    Oh, and I had to uninstall the whole thing anyway just to be able to get to the Internet.  Any Adobe icon I hit tells me that there is nothing attached to it. 

    May be you can try other solutions mentioned in the link.

  • Why does it take over 2 hours to download a rented movie on apple tv? When I download a movie on Netflix it downloads immediately.

    Why does it take over 2 hours to download a rented movie on Apple TV?  When I download a movie from Netfix it is immediate.

    Welcome to the Apple Community.
    The first thing to check would be your internet download speed, you can do this at www.speedtest.net.
    1080p HD movies require a recommended speed of 8 Mbps, 720p HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.
    Netflix uses adaptive streaming and can reduce quality right down to produce a stream as low as 0.5 Mbps.

  • Why does it take for a month to get internet services?

    I'd like to know why does it take for a month to get internet services? I ordered my service on Jan 18,2012 and I got the installation kit on Jan 21,2012. But I can't  use the internet and I have to wait until Feb 9,2012 for my service ready date. I think it takes a long time. I need the internet to do my project, but I can't. I'm very disappointed right now. I think I can use the internet after I place my order. (2 or 3 days it's ok, but I have to wait for a month that's terrible) Why can't they just turn on the services? I'd like to know who can i talk with? 

    Have you tried hooking the modem up, and does it get sync and does the Internet light come on? Even though you technicaly shouldn't do this, the line might already be up and running but they haven't told you yet. I don't know why it takes a month to hook up DSL. In my area, it takes two weeks typically from order to live, whether it's new service or a speed upgrade/downgrade (these are usually one week. They can be done on the spot, though!). No one has ever explained why it takes that long, but I presume it has someting to do with the billing cycle and perhaps line conditioning if they still do that (away from removing bridged taps and load coils), giving a technician time to pick up the service request and perform the task before someone goes, builds the profile for the line and then connects a few cables to an empty slot in a DSLAM and does some other background tasks to bring the connection online.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Why does it take so long to back up whilst im updating from 4.3.5 to 5.0?

    Why does it take so long to back up whilst im updating from 4.3.5 to 5.0?
    its been on for ages and its not even a quarter of the way backed up!

    The Brave New World of AC wireless networking.. where the reality falls far short of the hype.
    Unfortunately in an actual transfer situation, the signal to noise of wireless (RSSI figure drops dramatically), It simply uses AC as a link speed but speed is always renegotiated during an actual file transfer.. to some sustainable level. I suspect that level is not AC wireless but N.
    It does matter if you run older devices.. nothing with a or b or g wireless should be running in your house. Even n wireless may cause issues.. try turning everything else off and see if you get speed lift.
    As far as the time required for a clean up, is this a first backup as they always take a significantly longer time. Once you are doing regular incrementals the time is usually very short.

  • Why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.

    why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
    The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening? 
    Any help would be very appreciated.

    It looks that way..
    "When LabVIEW starts it contacts the service
    locator to removes all services for itself. This request is triggering
    the firewall.This is done in case there were services that were not
    unregistered the last time LabVIEW executed- for example from VIs that
    didn't clean up after themselves"
    This is not yet fixed in LV2009.
    Message Edited by Ray.R on 11-04-2009 12:25 PM

  • Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    CT, I suspect that I either mistated the question or don't understand how to set the default back ground.  In any case, with the background that I have set in system settings, and this is the background to which my sessions consistantly boot, new desktops come up for the second or up to the third background with this initially set background. Then in the third or fourth desktop creation (I seldom go beyond four), the background for the new desktop, is one that I was using one or two months ago...

  • TS3276 why does it take a lot of time to fetch my mails from yahoo server whenever i open the mail icon?

    why does it take a lot of time whenever i open mail icon from yahoo server?

    Go to Mail Preferences > General Tab > and the second line should say how often it will check for new messages

  • Why does it take apple tv 5 hours to download a movie from itunes?

    Why does it take itunes 5 hours to download to apple tv?  What have I done wrong?

    it may have to do with the download speed you get out of your internet connection. go to Speedtest.net and find out.

  • Why does it take over 30minutes for my brand new MacBook Pro to sign me in?

    I purchased a macbook pro 2 days ago. I am not familiar with mac's, but the first day it worked fine, but after i shut it down and attempted to start it up again it takes forever. The computer starts up and i enter in my password, but then the screensaver screen just stays on and doesn't actually log me in until about 45minutes later. When it does actually log me into the main screen with the deck, it freezes up if i click on anything. This is a brand new computer, why is this happening?!

    This is very unusual. A normally operating Macbook Pro should have you signed in and running in well under 60 seconds from cold boot.
    Most likely is that the software installation on you machine has been corrupted. It's not possible to efficiently work through all the possible problems over the forum. The root causes can range from a bad preference file up to a corrupted file system. Because your are a very new user and the problems are so severe, my approach to your situation would be to completely erase your drive and reinstall OSX and your applications from scratch. That way you eliminate nearly all variables.
    A more conservative approach would be to fix permissions on the drive and/or repair the drive using disk utility (after booting from the OSX install disc) That MAY fix things, but if things are this bad, AND you are new on the machine and presumably don't have much work saved on it anyway, I'd just start anew.
    This is very unusual for a Mac. Typical reliability on my Mac's lets me keep some up and running without reboot for 6 months. Yours is definitely in a bad state.

  • Why does Adobe take over?

    When I download Adobe Reader it takes over my computer, turning every icon into an Adobe one and killing it.  I have tried the download in Chrome, Mozilla and now IE, uninstalling after every attempt. 

    Please try this
    http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html
    Hope this helps.

  • Why does it take ages for my video files to be listed in the menu?

    I have my apple tv 2nd generation connected to my airport extreme first generation via ethernet. I have my mac mini connected to the same network (though not connected to the airport extreme) with video files and tv shows in itunes. My itunes media is stored on a hard drive connected to my mac mini and home sharing is on.
    It takes ages for my apple tv 2 to list the videos/tv shows in its menu. For example I have my films listed by genre. If I select a genre, it takes sometimes as long as 5+ minutes to list the videos within that genre.
    Can anybody help with this frustration?

    Welcome to the Apple Community.
    You probably have a problem with your LAN. If you are using wifi:
    You can download and install iStumbler to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel.

  • Why does it take a long time to get help when you have a problem?

    Posted a problem 2 weeks ago why havent I been give a solution to this problem?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

Maybe you are looking for