How can I speed up the connection to the database?

I am running a JSP application with regular JavaBeans not EJB and connecting to the database through these beans. The connection is set to stay in memory as long as the bean is in session. However when I am running more than 7 sql statements seperatly the execution of the page slows down.
I have tried using connection pooling but doesn't help much.
I am not using the JDBC setting in JRUN, I am connecting through the jdbc.odbc drivers provided by the JDK. Basically coded the connection and the connection pool.
Is there something else that can be done to speed up the execution of the page?
Thanks in advance

Thank you all for your input I was trying to work this project to learn JSP so I am not looking at purchasing any drivers right now. That is the reason why I stuck to the JDBC-ODBC Bridge. Are there any other drivers available for MS SQL Servers that are free.
Jschell,
That suggests you are taxing the system. It could be >connections. It could also be network, cpu, bus, etc. It >could also be memory, if your app starts swapping to >the hard drive it will get substantially slower.How can i figure out which of the above (i.e. memory, cpu, connections, network) are causing the problem.
(Presumably you explicitly close your >ResultSets/Statements/Connections when you are >done with them.)You are right about that yes I am closing them at the end of the session, which I think should be after all of the SQL's get executed but I could be wrong it might be openeing a new connection for each SQL which inturn might be the reason for this whole problem. I will take a look into that.
Thank you all once again.

Similar Messages

  • HT2404 How can I speed up the updates for my apps on my iphone 4 ?

    How can I speed up the updates for my apps on my iphone 4?  They take forever and/or a window says that the update will be available when I connect my iphone to itunes on my computer which doesn't help.

    I don't have virus protection on my iphone so this answer in not applicable

  • HT1349 It takes hours (2-3 or more) to download updates to various software.  I use my iPhone in personal hotspot mode paired to my laptop to do this.  How can i speed up the downloads.

    It takes hours (2-3 or more) to download updates to various software.  I use my iPhone in personal hotspot mode paired to my laptop to do this.  How can i speed up the downloads?

    It's a function of your iPhone's data speed, which is a function of your physical location and your carrier.  Talk to your carrier about increasing your data speed (probalby unlikely) or get dedicated internet to connect your computer to, i.e. cable, fiber, etc.

  • How can I speed up the extract() function queries on XML

    Hi,
    Please I need some light on xml and indexes.
    This is my case:
    I use Oracle 9i R2.
    I have a table with some rows containing some few xml documents (each row contains a big xml document).
    Given a value for an attribute of a tag, I want to extract the entire section within the tags.
    Example:
    <MYTAG number="1">
    .....big stuff here
    </MYTAG>
    <MYTAG number="2">
    .....big stuff here
    </MYTAG>
    <MYTAG number="x">
    .....big stuff here
    </MYTAG>
    So for number=2 I would like to extract from the document the xmltype
    <MYTAG number="2">
    .....big stuff here
    </MYTAG>
    I created an index and have followed all the steps from the XML Database Developers Kit manual. Then I would use extrac() as the document says.
    Now some doubts arised:
    Are these text/xml indexes only useful for getting the rowid of my document?
    I mean, if I select 'x' from the table looking for some value, then the index is used. But when I use extract in the select to get the section I look for, the query gets really low, specially when xml documents are big. I think when I have only row with one document, getting the rowid is not the problem, but the extraction from the document is.
    Is the extraction process faster because of the index?
    For what I see, the index only helps me to find the rowid, but then Oracle has to deal with the very big document inside the row. At that point Its oracle against a big text processing and index has nothing to do.
    How can I speed up the extraction of the section?
    If there any other index or tool for help extraction to be faster?
    I would appreciate to know what can I do. I need help on this.
    Thanks in advance!

    Well,
    - What indexes, if any, already exist?
    - What do the functions rl and nice do?
    - What are the current query plans?
    - How restrictive are the various predicates?
    - What version of Oracle?
    Justin

  • How can I disable incesant rambling alarm "The connection to the server was reset while the page was loading" in FF17?

    In using FF 17.0.1 in a WinXP/SP3 notebook (Acer) while traveling abroad I get unrelenting rambling and totally inconsequential display alarms "The connection to the server was reset while the page was loading." The page in question looks perfectly fine and there is NO problem whatsoever in its display. The only problem is this annoyingly useless alarm, which forces the screen display to the tab where the supposed error occurred when one is in a different tab -- in a couple of instances, this absolutely unnecessary, forced jump to a different tab has made me lose data being entered in a different tab.
    The notebook is extremely lean in its booting process -- no shared DLLs preloaded; no crapware; limited essential start-ups; trimmed unused or irrelevant services. The alarm occurs:
    (1) with FF and the OS in either normal or safe mode (i.e., both safe mode, both normal mode, or one safe mode and the other normal mode);
    (2) using different Western European ISPs;
    (3) using different DNS servers (either default European ones, or manually selected top-tier U.S. servers);
    (4) and with a number of different web pages (such as many in sites of news organizations) but not in all pages (for instance, none of the different Google server pages).
    The alarm does NOT occur browsing the same pages with either Chrome, Opera or IE.
    I have not been able to find a clearly marked entry for such an alarm in about:config, and am weary of start changing alarms settings blindly. The text of this alarm is not found in firefox.exe so it must be in one of its associated libraries. Given that this alarm is COMPLETELY WORTHLESS, especially in its manic wanton conditions, can some one give me an informed opinion on how to disable it? TIA

    Thanks for responding, David. Using <Esc> and <CtrlW> might reduce the time in returning to the other tab, but does little when the triggering of a wanton alarm is very frequent. The connections I have used were extremely reliable and fast. I am using at this moment a 54 Mbps WiFi connection that lives up to its ratings in downloading & uploading data; yet, as shown in the attached image, I still get this worthless alarm. I do not know if this problem happens with my regular ISP since I have been using this tiny notebook only when traveling -- will test that once I am back mostly for curiosity, but even then if then the alarm were not triggered this would be of little consolation, since other browsers do not have the problem right now).
    As a moderator, I urge you to ask the Mozilla-powers-to-be why there is no way to turn off the alarm with, say, a true/false switch in about:config (mind you, there is still old-versions junk in this config list, so it isn't we are talking about amending the constitution). Complains about this fugly alarm can be traced in the web as far back as 2010 at least. Besides, what is the advantage of the alarm for the average user? When FF users are still posing amazingly basic questions in forums of Firefox or Mozilla support, such an alarm ought to be _off_ by default and should be an option of advanced settings menu. This annoyance shows how much the critical focus on keeping a simple GUI uncluttered by trivial or higher-level messages still needs to evolve for Firefox, which I have used it since it was known a Firebird. Guess will have to switch to Chrome now while abroad.
    Happy Holidays

  • I've been working on our church website and suddenly, my computer will not connect to the site. I keep getting a message saying that the the connection to the server was reset while the page was loading. Does anyone have any ideas of how I can fix this?

    I've been working on our church website and all of a sudden this week, my computer will not connect to the site. I keep getting a message saying that the the connection to the server was reset while the page was loading. Does anyone have any ideas of how I can fix this?

    The "The connection was reset" error message can be caused by a bug fix for the BEAST (Browser Exploit Against SSL/TLS) attack that the server doesn't handle.
    *[[/questions/918127]]
    *[[/questions/918028]]

  • I just created a slideshow dvd in imovie, and when I hit finalize it said that it would take 7 hours to finalize.  I've only had my macbook pro for 6 months, and this is the first imovie I've done...is this normal?  If not how can I speed up this process?

    I just created a slideshow dvd in imovie, and when I hit finalize it said that it would take 7 hours to finalize.  I've only had my macbook pro for 6 months, and this is the first imovie I've done...is this normal?  If not how can I speed up this process?  Thanks in advance for all of your help!

    Hi
    Time needed can depend on several things.
    • less than 5 GB free space on Start-up (Mac OS) hard disk = Redicolous long times AND a DVD that most probably will not work OK
    Medicine - I never go under 25GB free space
    • Use of strange file formats into iDVD - can force it to de-code first then re-encode - this can take long long times
    I use
    Video - StreamingDV as from miniDV tape Cameras - or QuickTime Movies Converted to StreamingDV
    Audio - .aiff 16-bit 48 kHz - (no .mp3, .wma etc)
    • Use of old Mac - My G4 600MHz took about 24 hour per hour movie. my dG5 - about 2 hours per hour (I use Pro Quality encoding)
    • Pro Quality encoding - takes about x2 to process a movie
    Yours Bengt W

  • HT1338 HOW CAN I SPEED UP MY MAC IT HAS A GRINDING SOUND AND THE COLOUR WHEEL SPIN AND FREEZES

    MY IMAC HAS A GRINDING SOUND AND ITS SLOW, THE WHEEL START SPIINING AND IT FREEZES I HAVE TO TURN IT OFF AND ON AGAIN , WHAT IS THE PROBLEM AND HOW CAN I SPEED IT UP AND GET IT TO RUN FASTER?

    Does the sound appear to be from the hard drive, such as when you do any work (which means the hard drive is being written to)?
    Have you received an email from Apple about their Seagate hard drive recall (for certain iMac models)? Check to see if yours is affected here:
    http://www.apple.com/support/imac-harddrive/
    In any case, a grinding noise is what I had, followed by other very strange behavior and the diagnosis was hard drive failure. So, whether you are covered or not, I would strongly suggest that you backup all your data as quickly as you can and - if you're not covered by warranty or the recall - book an appointment at your nearest Genius Bar for a diagnosis.
    Also, please do not use all caps - difficult to read and it's considering shouting on the internet.

  • I was getting support for my Office 2008 for Mac, and the support tech said my OS was very slow. I have latest update for Snow10.6.7. Question how can I speed up my Macbook?

    I was getting support for my Office 2008 for Mac, and the support tech said my OS was very slow. I have latest update for Snow10.6.7. Question; How can I speed up my Macbook?

    Hi
    In the first instance, I'd use Onyx and run through its sequence of maintenance and tune up tools:
    Verify, Maintenance, Cleaning.
    I'd also reset the SMC and PRAM (Google them)
    If that doesn't help then I'd look at System Preferences.. > Accounts > Login Items tab (not Login Options).  Check what processes get started at login and decide which ones you don't want.
    After that I'd use Applications/Utilities/Activity Monitor to see if any processes are using a lot of computer power or if anything else nasty might be happening.
    If none of this helped then my final step would be to reinstall OS X.
    Bob

  • HT5953 How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    Hi, I had the same problem you described, and I noticed that there are two ways of activating text to speech on iBook for Mac, with different speed results (at least on my MacBook Pro Retina display)
    On your iBook you can select the text and and then click on > More> Start speaking,  and you will get a certain speed, which tends to be too slow.
    But you will get the speed you had selected with "Go to System Preferences>Dictation and Speech>Text to speech. In there is a slider to adjust the speaking rate." if you use the TOP MENU (next to the black apple)  under Edit>Speech>Start Speaking. I also learned that under System Preferences>Dictation and Speech>Text to speech, there is an option for a shortcut which is very helpful. And you can change Key. Hope this was helpful.

  • Every time I try to sign on it says that ichat lost the connection to the AIM account and the server connection was unexpectedly lost.  How can I fix this?

    Every time I try to sign on it says that ichat lost the connection to the AIM account and the server connection was unexpectedly lost.  How can I fix this?

    Note For others.
    For the Port Changes (or server names in some cases) you have to be logged out to make changes on the Server Settings pane.
    9:41 PM      Friday; October 28, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HT201320 I am getting a "cannot get mail" "the connection to the server failed" message, how can I get my emails again?

    I am getting a "cannot get mail" "the connection to the server failed" message, how can I get my emails again?

    Hi DVfromca,
    If you are having issues receiving email on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • How Can I speed the progress of analyze/dbms_stats.GATHER_TABLE_STATS

    When I analyze a table and its index or dbms_stats.GATHER_TABLE_STATS .The speed is very low,and I can not see the progress of it ? How can I speed it ? or how can I see the progress of it ? Thanks !!

    v$session_longops is the table that contains information about long-running processes. You should be able to query that table to see how your analyze is going.
    The easiest way to speed this sort of thing up is to have it do less work. If you're computing statistics, you may be able to use estimate statistics instead, depending on how homogenous your table is. If you're generating histograms for all the columns, you may be able to get away with fewer well-chosen histograms.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    Nothing you can do. Presently the Apple servers are overloaded because of iOS 6.

  • HT1937 Hi my email is not working it says" Cannot gel mail...The connection to the server failed" but my network is working ok is the only application failing...how can I solve the problem?

    Hi, my mail applicatin is not working properly. It says cannot get main...the connection to the server failed but everything else is working ok. How can I solve this problem?

    The connectivity test indicated that there was a problem with the user's ActiveSync folder, typically fixed by checking the box "Allow inheritable permissions ...".
    Since it already was checked and even by removing the inherited permissions and then re-inheriting them didn't do the trick, I ended up just deleting the whole thing and then made a new duplicate account and blank mailbox.  That was pretty drastic
    but it fixed the problem.  After restoring his mailbox contents from backup, the user is now a happy camper.
    The connectivity test tool was helpful because the external URL was blank so I filled in the URL.  But ActiveSync was working fine for everybody without the URL before although I don't know why it did work without it.
    The other funny thing is on one of my iPads I am able to synch my mailbox and also the user's mailbox but on another iPad it just wouldn't synchronize when it worked before I added the external URL.  The iPads have the same OS version so I
    just don't understand it.  Oh well.
    Thanks for your help.  That was a good tip!
    WC

Maybe you are looking for

  • Avi files in Quicktime and finder

    My machine (finder & Quicktime Pro 7) no longer recognises any of my avi files. I recently made system updates to Safari(3.1.1) and Quicktime (7.4.5), plus the usual automatic security updates, but I can't say for sure when the problem occurred withi

  • Oracle Business Intelligence

    Dear All... I am very new in oracle discoverer. I am thinking about using Oracle Business Intelligence 10.1.3.4.1 with my oracle database. I have some queries.. 1) Does Oracle Business Intelligence 10.1.3.4.1 works with out Oracle Apps ? (I am instal

  • Multiple use of a shared variable - buffers?

     Hi all, I have an application on a RT target that measured data (around 60 variables stored in a big cluster) in a TCL, sends it via RT-FIFO (a modified U8-Array buffer that contains the data converted into string and then flattened to U8-Array) to

  • Macbook Pro - EXTREMELY SLOW/ OVERHEATS

    Hi all, May I start by saying please bare with me as I'm not so savvy with the Macbook Pro just yet but I do know it shouldn't be running at the speed it is as over heating the way it is (it's now even started to make really loud fan sounds at some p

  • CSS11501 - VIP Setup for DR in Active/Active Mode

    I have the following request from the Email team: EXISTING - CSS at Site A (in one-armed mode) supports "webmail" app for the following ports: - content webmail_http, port 80 - content webmail_https, port 443 - content webmail_imap, port 143 - conten