Oc4j and database connections issue (way too many created)

I seem to be experiencing a serious issue every time someone connects to my application. New connections are made to the database instead of using existing connections (i.e. pooling doesn't seem to work). In my data-sources.xml, the pools are set to have a max-connections of 3, yet when I query the v$sessions view, there are additional sessions created every time the application is hit which has sent it way over the max-connections parameter in the data-sources.xml file. If oc4j is pooling the connections how can this happen? Is there any way of tracking where this is occurring or what could be causing this? (SQLNET.EXPIRE_TIME has been set, database is 10g, oc4j is 101202 and oc4j on linux platform)
Thanks
Paul

Paul,
According to the documentation for OC4J 10.1.2, if you use the value of the "ejb-location" attribute (from the "data-sources.xml" file) when doing a JNDI lookup of your datasource, then you should be using connection pooling.
It's probably also an idea to not define a "pooled-location" attribute in your "data-sources.xml" file.
Also, you can get database connection information via the "Spy" [Web] application. Use the following URL:
http://oc4jHost:oc4jPort/dmsoc4j/Spy
Of-course you need to replace "oc4jHost" and "oc4jPort" with the appropriate values. For example if you open your Web browser on the same machine that OC4J is running on, and if you are using the default port, then the URL will be:
http://localhost:8888/dmsoc4j/Spy
Good Luck,
Avi.

Similar Messages

  • I take a lot of people shots and have way too many out of focus pics.

    I have way too many out of focus shots.  I usually use tv mode with the shutter set at least 250 with the anti shake on.  I know there is a balance of aperature, iso and they seem to be close enough for lighting but the out of focus drives me nuts. This is the most important aspect of a pic in my opinion. I have sent my T2i in for focus issues two times and cannot tell a difference.  Any suggestions????
    Solved!
    Go to Solution.

    We'd probably have to see your shots with EXIF data to provide a specific response.
    Canon did a 3-part video on how the AF system works with B&H Photo.  You can find the videos on YouTube... here's the link to part I:  http://www.youtube.com/watch?v=iAx86nblZ2g
    I seem to recall each part is about 30 minutes, but well worth the time in what you'll learn about the focus system that you might not have known.
    A LOT of factors can result in out of focus images.  Camera movement (slow shutter speed during a hand-held shot) is just one of many possibilities.
    Tim Campbell
    5D II, 5D III, 60Da

  • How do you sync contacts with gmail, not other place on computer? I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from?

    I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from? I spent a LONG time on gmail going through my list of contacts. There were about 400 and I got it down to about 90. When I went to sync my new phone, ALL 400 synced.
    Thank you for any help!

    Sorry for the repeat...new here. OBVIOUSLY.

  • I have a 4 yr. old iMac. I recently got a trojan on it that sent out emails to my address book. I got Norton Internet Security for Mac, and now my Mac is running slow, with way too many spinning beach balls of death. Was it a mistake to install Norton?

    I have a 4 yr. old iMac. I recently got a trojan on it that sent out emails to my address book. I got Norton Internet Security for Mac, and now my Mac is running slow, with way too many spinning beach balls of death. Was it a mistake to install Norton?

    yankeecat wrote:
    I have a 4 yr. old iMac. I recently got a trojan on it that sent out emails to my address book.
    There is no such Trojan or other malware known today that will do that using OS X nor has there ever been one. The most probable explanation is that somebody hacked into your e-mail account on the server, so you should change that password to something stronger right away. If it had come from your Mac then there would almost certainly be copies of those messages in your Sent Mail mailbox.

  • I want ro remove all of the default Firefox bookmarks. There are way too many and none of which are usefull to me. I would like to make my old IE Favorites folder the default. How can I do this?

    I need to remove the default Firefox bookmarks.
    There are way too many and none of which are usefull to me.
    Also, I am vision impaired and reading through such a long list is very eye-fatigueing to me.
    I would like to make my old IE Favorites folder the default. How can I do this?

    Did you import an iPhoto Library from the old Hard Drive? Do you still have that old Library?
    The way to clear out a Library is to Export the photos - Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    For the annoying start-up message:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    Sharon-
    Good idea.
    Back up first.
    I would probably wait for the merge function of the latest version before merging. Be sure to verify every merge.
    Merge Libraries, then from within Aperture move images to referenced on external hard drives.
    HTH
    -Allen

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Can't connect to Server - "too many users" after 10.8 install

    After upgrading my Retina MBP, my Air, and my mid-2011 iMac (which acts as a file server) to Mountain Lion, I find I cannot consistently connect to the iMac server. Everything is done over an Airport Extreme wifi network, and there were no issues in 10.7. It usually happens 24-48 hours after a retstart, and a restart will fix it though that is inconvenient. The error given on the machine trying to connect in is "too many users" on the host (the iMac server). Any thoughts?

    Me too... similar setup. MBPr, MBP and an old MB with a Mini/drobo as a file server. A reboot fixes it, but that's a pain if I'm not home.
    I have noticed that I can usually share the screen even if I can't mount a drive, which helps, but still just another hurtle.

  • Icons and toolbar text is way too small and hard to read (kind of fuzzy)

    The toolbars (menu bars) at the top of the screen have letters and icons and symbols that are way too small to read. Also the background color options are limited. Light black on grey is hard to read. I have tried customizing all that I can. There used to be a thing in control panel called display, and we could pick all sorts of fonts and colors for all those toolbar strips. Where did that go? I am VERY FRUSTRATED!!

    I've tried those, and have just decided to go back to 3.6. Firefox just seems to have too much input lately trying to tweak and adjust. Meanwhile, the later versions just end up looking worse and worse with each iteration. Icons too small, monochromatic tool bar, making icons harder to distinguish, and, worst of all, frequent crashes.
    Perhaps some of these problems are because I'm using XP, but I've noticed many if not all of the appearance deficiencies with my laptop running Win7. Probably the most annoying thing about later versions, though, is the inability to set memory time for history. This alone is a deal breaker for me, and ultimately, as IE has gotten better, I may just go back there.

  • I allowed Apple updates about two weeks ago and now Safari is way too slow.  I have tried using Airport and Ethernet and the problem is the same.  Yesterday, I updgraded to Safari 5.1 and the problem is now worse.  Any solutions?

    I allowed Apple updates about two weeks ago and now Safari is way too slow.   I have tried using Airport and Ethernet and the problem is the same.  Yesterday, I upgraded to Safari 5.1 and now the problem is worse.  Any solutions?

    I can't stand peremptory affirmations like "Nothing is wrong with Safari".
    Thousands of users can't be wrong (see the discussions).
    If I read you the right way, it's never software' fault, it's the user who's the culprit.
    Amazing!
    In this very case, the fact is we can't give to "christinefromfonthill" a good solution because weren't sitting in front of her Mac.
    You give her a good advice which could, perhaps, lead to an improvement.
    But must also admit that Safari is a very slow browser compared to Firefox or Chrome.
    And you can't ignore all the problems which arose when upgrading to Lion and were related to the new build and specs of Safari 5.1.
    The best example is the apparition of "garbage type" (use of Last Resort font) when reading numerous sites. This never occured before and is the direct consequence of Safari compliance to Web Open Type. This standard prohibits the use of Type 1 Postscript Fonts and is the reason why so many people are in trouble.
    I use a Mac for more than 25 years.
    I am a very "clean" user who hates the bells and whistles of third party.
    My Mac is always up-to-date and despite all my Mac loving care, I run into some problems.
    Imagine the nightmare which can occurs for the vulgum pecus who isn't, by definition, a power user aware of all the requirements for running a System in optimal conditions.
    May be Safari is one step in advance on its time but lambda users are paying the price for it.

  • (IMP)Application module and database connection

    Hi,
    How application module pooling and database connection pooling is working ?
    Currently i m facing a problem like if i am creating 10 browser session then it doesn't mean that i'll have only 10 db sessions. While closing the browser session of application module time out respective db session is not removed.
    In this case, invalid db session are created in bulk which is crashing database sometime. We have writter script to kill those session periodically but in this case if application module is accessing such dbconnection then we are getting session killed error or not logged in error.
    To over come we need to bounce the server (middle tier).
    Is there any proper way to solve this or am i doing something wrong ?
    Please let me know if you need any more details.
    Thanks in advance
    Devang

    Thanks for your prompt reply Ricky.
    I just found out that in some of the JSP pages in application
    <jbo:ReleasePageResources/> is not written. Should this problem arise because of this?
    could you please tell me how can I release page resources in UIX pages ?
    Datasources.xml file content
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    name="AITDS"
    location="jdbc/AITCoreDS"
    pooled-location="jdbc/pooled/AITPDS"
    xa-location="jdbc/xa/AITXADS"
    ejb-location="jdbc/AITDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username=<USERNAME>
    password=<PASSWORD>
    url=<URL>
    inactivity-timeout="30"
    />
    bc4j.xcfg file
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="GsaServerModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCDataSource>jdbc/AITCoreDS</JDBCDataSource>
    <jbo.project>gsa</jbo.project>
    <AppModuleJndiName>oracle.appsit.gsa.server.GsaServerModule</AppModuleJndiName>
    <java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
    <ApplicationName>oracle.appsit.gsa.server.GsaServerModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Let me know if you need any more detail.
    Thanks in advance
    Devang

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • Hello everyone. I have my itunes account for some years, and i've purchased far too many apps and music. Now the company i work for, has to change my account in the iphone, in order to use the corporate mails and calendar. How can i keep my applications?

    Hello everyone. I have my itunes account for some years, and i've purchased far too many apps and music. Now the company i work for, has to change my account in the iphone, in order to use the corporate mails and calendar. How can i keep my applications and music?

    Read here:
    http://support.apple.com/kb/ht5621
    Changing your Apple ID to your current, working email address will not create another Apple ID, it will only change it to your working email address.

  • I have an iphone3 and tried to log in too many times.  Now I am locked out.  What do I do?

    I have an iphone3 and tried to log in too many times.  Now I am locked out.  When I press my home button, I get the emergency call screen and not my home screen.
    What do I do?

    Restore the phone using iTunes.

  • Enabling Usage Rights for Web Service and Database connectivity

    We are looking for code that allows us to enable web service and database connectivity rights into a form. We are using LiveCycle Forms 7.2 to render the XDP and merge data. Because we are merging data into the form, it has to be reader enabled through the  code everytime it is presented to the user in our application.
    usageRights[0] = com.adobe.document.pdf.DOCUMENT_SAVE.value;
    usageRights[1] = com.adobe.document.pdf.FORM_FILL_IN.value;
    usageRights[2] = com.adobe.document.pdf.FORM_EXPORT.value;
    usageRights[3] = com.adobe.document.pdf.FORM_IMPORT.value;
    usageRights[4] = com.adobe.document.pdf.FORM_ONLINE.value;
    Anyone's help would be greatly appreciated

    This topic was cross posted.  See responses here:
    http://forums.adobe.com/message/2111421#2111421

Maybe you are looking for

  • FOR ALL ENTRIES IN - Not selecting all Records

    Hi,        SELECT obknr ppaufnr ppposnr                      FROM ser05                      INTO TABLE gi_ser05                      FOR ALL ENTRIES IN gi_objkpo                      WHERE obknr EQ gi_objkpo-obknr                        AND ppaufnr

  • Custom authentication in WL 8.1

    I have a web app that uses BASIC authentication. What I want is for the standard web app login box to be used, but then I want to use a custom database table to verify the username password. How do I do this in weblogic 8.1.

  • IPhoto. Media Browser and Photobooth.

    Good afternoon. Some students at our school find that the Media Browser will not display thumbnails of their Photobooth images. This happens in all the 'iApps' that use the Media Browser. I can't see any differences between the configurations of dire

  • Final or not ?

    Could someone tell me which one is the best. ( or they are the same ) If I have one method like : public void print ( /* final */ int i ) { System.out.println( i ); } if final ==> go to heap; then can use on Inner class; and cannot modify. if no fina

  • W_ASSET_D.VIS_PR_POS_ID

    Hi, Please let me know what does the W_ASSET_D.VIS_PR_POS_ID columns contains and what it is used for. Thanks Anamika