Loosing 5 in 14000 granted connection --- Why??

Hi:
I am currently working of a real high volume application that uses
WLS 5.1, WLS RMI JDBC Driver, Oracle DB 8i.
The deal is --- code looks right. Every connection that is opened is then closed
after doing all the DB specific stuff. No issues on that front. In a low volume
environment no connections are lost. However in production environment, with the
number of users scaling up the connections gets lost!.
Today we lost about 5 connection out of 14,000 granted connection. The pool size
is 200 and we are hovering about 130 lost connections. The server will then need
a reboot at the end of day to refresh the pools.
Any ideas would would be great!
Thanks
~v

Thanks Joseph --- Seems to me like the problem is clearly at the application end
of the spectrum. Will try to troubleshoot this and if I run into wall. I will
come back.
Thanks
Vish
Joseph Weinstein <[email protected]> wrote:
>
>
Vish Krishnan wrote:
Command line utility to reset the pool. Thats neat. But there areother org issues
like a "Green" sys-admin. I bet they wont budge beyond CRON reboot-- shrug. (But
I will sure get the point across)so be it.
Well... If you are hinting at a Database Connection object being storedas a
member variable in a DAO I say yes. Otherwise
The application as such is "supposed" to be stateless. With a useraction being
atomic. But then there are some "things" cached for "perf" reasons.Then it sounds like a problem with DAO, unless you can be sure the DAO
objects
are thread-safe, and that they/you close and/or nullify their connection
references by
the end of each invocation.
The code that is used to get db connection is
java.sql.Driver myDriver =
(java.sql.Driver) Class.forName(DBDRIVER).newInstance();
String url = DBURL;
java.util.Properties props = new java.util.Properties();
props.put("weblogic.server.url", SERVERURL);
props.put("weblogic.jdbc.datasource",DBSOURCE);
myCon = myDriver.connect(url, props);What are the DBDRIVER and DBURL strings?
I recommend:
DBDRIVER = "weblogic.jdbc.pool.Driver";
and DBURL = "jdbc:weblogic:pool:YOURPOOLNAME";
then
myConn = myDriver.connect(DBURL.null); // no props needed.
Actually there are three connection pools to three diff db. Two connpools seems
to be OK and they get the connection from DataSource (JDBC 2.0) butthen they
are low volume. The one who is loosing connection get the connectionby above
code.
that would prevent their being GC()'ed, and I can show you a way to
get
pool
connections more directly than from DataSources.HEY --- That would be a cool trick to know ;)Now, all you need is to verify for me that 'myConn' is a method variable,
not
a class or isntance variable, and that the call to myDriver.connect()
is in
a try block whose finally block closes myConn as the first thing, then
we should
be good.
Note that if your JDBC use is supposed to be stateless, then you should
never need
any more connections in a pool than you have execute-threads in the server.
Joe
Vish Krishnan
Joseph Weinstein <[email protected]> wrote:
Vish Krishnan wrote:
Unfortunately... A CRON Job seem to have favored out than openingup the console
and reseting the pool ;)Admin pool functions are available via command-line, using the weblogic.Admin
tool. This is suitable for cron.
The connections are used up by DAO classes, which are invoked basedon user action
from a controller servlet.Are these objects stateful, such that JDBC connections need to be
retained
beyond
an invocation of the controller servlet?
ITs 5.1SP11.Ok. This codeline has a finalize() method in pool connection objects,
which will
return abandoned pool connections to the pool when GC() reclaims them.
This
will certainly be slower than if they were closed correctly, but will
happen.
Show me the code you use for obtaining pool connections. If there'sa
bug in
the DataSource/RMI driver that retains references to pool connections,
then
that would prevent their being GC()'ed, and I can show you a way toget
pool
connections more directly than from DataSources.
Joe
Our testing env has only low volume user base. Unfortunately at
this
moment we
dont have state of the art load testing tool to mimic thousands
of
virtual users
and therefore rendering our team with little ideas in dev/testing
env.
So I am
fishing around news groups for clues?
Any help would be really be helpful ;)
Joseph Weinstein <[email protected]> wrote:
Vish Krishnan wrote:
Hi:
I am currently working of a real high volume application that
uses
WLS 5.1, WLS RMI JDBC Driver, Oracle DB 8i.
The deal is --- code looks right. Every connection that is openedis
then closed
after doing all the DB specific stuff. No issues on that front.
In
a low volume
environment no connections are lost. However in production environment,with the
number of users scaling up the connections gets lost!.
Today we lost about 5 connection out of 14,000 granted connection.The pool size
is 200 and we are hovering about 130 lost connections. The server
will
then need
a reboot at the end of day to refresh the pools.
Any ideas would would be great!Some things:
1 - A reboot shouldn't be necessary, just a call to admin to resetthe
pool.
2 - How/where are the connections used? In servlets/JSPs or EJBs?
3 - What version of 5.1?
Joe
Thanks
~v

Similar Messages

  • Grant connect allows viewing of other users

    Situation:
    In SQL*Plus: Create a user, grant connect to the user. Connect as the new user and try to query dba_users. ORA-00942 error occurs (which is good).
    In Raptor, connect as the new user. Expand the users tree and now you, the new user, can see every user in the database (among other data dictionary items). That's not good, right? This occurs in the latest release (0919).

    Do you suggest that through raptor you can get access to dba objects with only connect granted? Impossible :) Try this in raptor and sql+
    select * from all_users;
    select * from dba_users;

  • How to restrict grant connect through with Data Vault

    I need to restrict the ability to grant proxy privileges in the database. This is the statement: alter user USER_A grant connect through USER_B;
    I tried creating this rule that looks at the sql text for %CONNECT THROUGH% in the statement and then added it to the "Can Maintain Own Account" Rule Set which is attached to the Alter System command but it doesn't appear to be working. How can I get this working? Is my rule that I created correct. Ultimately what I want to do is allow proxies to be created for most users but just restrict only certain special users.
    BEGIN
    dbms_macadm.delete_rule(rule_name => 'NO_PROXY_PRIVILEGES');
    DBMS_MACADM.CREATE_RULE(rule_name => 'NO_PROXY_PRIVILEGES',
    rule_expr => 'INSTR(UPPER(DVSYS.DV_SQL_TEXT),''%CONNECT THROUGH%'') = 0');
    END;I am running Oracle 11.2.0.2 Enterprise on Windows Server 2008R2
    Thank you.

    You may get a better answer in the security forum:
    Security
    That being said - there are authorization checks that you can create for SE16.
    Create an authorization field via SU20.  Create the object via SU21. 
    Create a role.  Add transaction SE16 to the role.  Create a profile.  Activity would be display.  And then you can add the objects that you created.
    Again you may get a better answer from someone who does security everyday.  I'd suggest posting in the security forum.
    Michelle

  • Using a mac20 when i open photo booth, it says camera not connected, why?

    using a mac20 when i open photo booth, it says camera not connected, why?

    Go to > How to Troubleshoot iSight

  • Recently when trying to save an edited version of a photo in cs6 i get this message {could not save (filename) because write access was not granted}. Why is this? and what to do?.

    Recently when trying to save an edited version of a photo in cs6 i get this message {could not save (filename) because write access was not granted}. Why is this? and what to do?.
    robinh 380102549

    It seems you lack the rights to change the file, so you may want to repair permissions.
    Do you have administrator rights?
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • GRANT CONNECT on Endpoint required for availaibity groups?

    One of our DBAs recently left, and when I was removing there login I found they had explicitly granted a connect on the availability group's endpoint to it's login.
    The login itself is a sysadmin, so everything I can find online seems to say that it should automatically have connect permissions to all endpoints.
    Is there any reason that this would need an explicate grant?  And if not, will just revoking the permission cause any issues?  I am afraid that just revoking the permission will bring down the availabity group even though I cannot find a reason
    it exists.
    Thanks,
    Jamie

    Hi GamerAhoy,
    Agree with skc_chat, usually, we can use the New Availability Group Wizard (in SQL Server Management Studio) to create and configure an AlwaysOn availability group in SQL Server . If a server instance is running under a domain user account and does not yet
    have a database mirroring endpoint, the wizard can create the endpoint and grant CONNECT permission to the server instance service account. However, if the SQL Server service is running as a built-in account, such as Local System, Local Service, or Network
    Service, or a nondomain account, you must use certificates for endpoint authentication, and the wizard will be unable to create a database mirroring endpoint on the server instance. In this case, we recommend that you create the database mirroring endpoints
    manually before you launch the New Availability Group Wizard.
    Since your DBA left, you can create new login accounts for AlwaysOn Availability if neccessary. For two server instances to connect to each other's database mirroring endpoint point, the login account of each instance requires access to the other instance.
    Also, each login account requires connect permission to the database mirroring endpoint of the other instance. For more information, you can review the following articles.
    http://technet.microsoft.com/en-us/library/hh403415.aspx
    http://technet.microsoft.com/en-us/library/ms366346.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • I have a very fast connection, why is my mountain lion downloading so slowly?

    I have a fast internet connection, why is mountain lion downloading so incredibly slow?

    Apple servers seem to be the problem. To many downloads.

  • In my iphone 4, wifi is connected but internet is not running. when i usd safari and other internet application it alwasys says wifi is not connected. why ? what happen to my iphone?

    in my iphone 4, wifi is connected but internet is not running. when i usd safari and other internet application it alwasys says wifi is not connected. why ? what happen to my iphone?

    Try Settings > General > Reset > Reset network connections.
    Other basic troubleshooting from the User's Guide is reset, restart, and restore.

  • Loose my contacts anytime i connect my iphone 4s  online with itunes

    kindly advise me how to save my contacts or what i need to do such that i dont loose my contact anytime i connect online through itunes.i

    well when your device is connected to itunes right above the picture of the iphone on summary page click on "INFO" then uncheck the box that says sync contacts then click apply on the bottom right
    then on the phone go to settings>icloud>turn on contacts>Merge, Resolved

  • RV320 loosing WAN and inter VLAN connectivity

    I just received a new RV320 V01 router and I am having trouble with the router loosing WAN and inter VLAN connectivity. Anywhere from 2 to 24+ hours the router will stop routing traffic to/from the WAN and other VLANs on the network. I have a ping trace running on one system and all packets are lost when the routing fails to all WAN connections and systems on other VLANs. I am still able to ping all of the router address for the VLANs i.e. 192.168.1.1, 192.168.2.1, 192.168.3.1 etc. Unfortunately I only have one system on this VLAN so I do not know if I can ping other systems on the same VLAN. I also do not have any DNS resolution when the issue occurs.
    The router is set up using a single ISP connection on WAN1 using DHCP assignment. WAN2 is disabled in the router settings. The router has version v1.1.1.06 firmware. I have also tried disabling VPN pass-through as noted from other posts. When the issue occurs the WAN1 connection is showing as “Connected (Inactive)” with no assigned IP address, gateway or DNS servers. The router is in gateway mode and everything works fine until the problem.
    Any Ideas?

    You noted that the WAN 1 connection has no IP address when this occurs.
    When it occurred last, I noted the "Connected (Inactive)" on WAN1 and that there were no IP addresses assigned.  I have a screen shot of the page attached.  I had noticed the "Connected (Inactive)" previously when the problem was occurring but cannot definitely say there were no IP addresses at that time.  I do not recall if I noticed this before or after I had disconnected the WAN1 to test a direct PC to modem connection.  I did check with the cable company and there are no issues being noted or logged on my connection.  The direct PC to modem connection worked fine.
    What type of Internet connection is it? (Cable, DSL, T1, etc)
    The connection is Cable
    Is the WAN port configured for DHCP?
    The WAN port is configured for DHCP
    Who is the ISP?
    The ISP is the local cable company
    When the issue occurs, can devices within a subnet ping each other?
    As I noted in the original post, at the time I was on a VLAN that only had one system running to monitor ping traces.  I will try again next time the problem occurs to have multiple devices on the same network.
    Are there any switches in the network?
    Yes, there is a switch in the system.  I am using a cisco SG200-26.  However, the problem persists even when I directly connected a PC to the active LAN port on the router.  No issue when the PC was dirrectly connected to the modem.
    Can you draw a simple topology showing the network with IP addresses, VLANs, etc?
           See attached

  • Grant connect to user oracle?

    hi,
    if i grant connect to an different user from sysdba means what ?
    will that user get all privilege like create , drop etc of sysdba?
    thanks

    damorgan wrote:
    It means you have not read the docs.
    Connect is a role not a privilege. And it does precisely nothing other than grant "CREATE SESSION" in currently supported versions of the product. In my opinion is should have never been created, or granted, to anyone for any reason ever and I am thrilled Oracle finally agrees.
    Do not grant SYSDBA to any one or anything. It serves a very specific purpose and as you have not read the docs my only recommendation is that you go to http://tahiti.oracle.com and not consider it again except in those contexts in which Oracle brings it up: Start with the Concept docs.
    While the CONNECT role is created by default and by default will have certain privs depending on the version of Oracle, I'd drive home to people asking this question that, since it <i><b>is</i></b> a role, it means only and exactly whatever privs have been granted to that role <u>in the customer's database</u>. First, this response deals with the possibility that it might have been altered from its default state. Second it would (hopefully!) make the point that even though it comes with the database, it's still JUST a role and therefore has no 'special' properties that a role named FUBAR might not have.

  • Everytime i try to set up my ipad i loose my wi-fi connection why is this?

    I have just got an Ipad 4 and cannot get started as I keep loosing my wi-fi conection when I try to set up the ipad.  Does anyone have any suggestions to help?  Thanks

    I had an issue where my router was dropping the wifi and the iPad was losing the connection. It was the router's fault. Try rebooting your router first. Otherwise, plug your iPad in with a USB cable for the initial setup.
    Persoanlly, I've found the wifi syncing to be particularly flaky; good wifi signal on both the iPad and MBP, but no connection between the two in iTunes.

  • Why does my iphone4 loose its signal when i connect to a 3 way car adapter

    I have a 3way car adapter that should let me hear music, telephone calls and gps voice through my car radio and charge the phone.It works for music and gps but not for the phone as the cell signal drops off as soon as the assessory powers up. it has a built intransmitter 88 to 107 freq.my phone is an iphone 4.
    Thanks for your views on this

    Ask whoever made this mysterious "3 way" adapter.

  • Brand New 160GB Ipod Classic Not Responding to USB 2.0 connections Why?

    I bought it online from Apple as a Christmas gift back in September. It charged succesfully using a wall charger but when connected to Windows PC's and Laptops(also running windows)neither computer recognized the Ipod as a connected device. The Ipod itself did nothing when connected. It showed no error screen nor did it begin to charge as most do when you connect them to a PC. What is seen on the screen is all the different menus you have to choose from like music, video and what not. All the stuff your supposed to see. I have no idea why it is not being regoznied by any PC unless it is incompatable with USB ports. If that's the case what am I to do about it? Aside from not connecting to PC's it appears to be working fine. The preloaded games play as they should and it does nothing out of the ordianary. Wall chargers work with it but attempted connections to PC's with USB 2.0 ports garner no response from the device. Any help would be greatly appreciated.

    I had difficulty making my 160GB Ipod classic recognized as a device by my PC. I pushed and held down the menu and cener buttons for a bout 5 seconds. The apple logo appeared and ever since then my computer sees it as a device and it works as it should.

  • TS1398 my i phone 3gs get brill wi-fi connection, why is my new i phone 5 pants?

    My 3yr old i phone 3gs will pic2 up wi-fi from miles away, why do i have to be in the same room as the router for my new i phone 5 to get a connection?

    No iPhone and no wi-fi device can pick up wi-fi from miles away from a wireless router.
    The iPhone 5 has to be in the same room as the router with every router and wi-fi network the iPhone has access to, or just with one particular router?

Maybe you are looking for

  • My laptop no longer detects my built in webcam

    I have an HP G60-635DX notebook.   I have a built in webcam which I have used several times before, but now all of a sudden my laptop is not even detecting I have a built in webcam.  What to do?  I have a Mobile Intel 4 Series Express Webcam.  It bum

  • How to get the target file name from an URL?

    Hi there, I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet E

  • POS data variation in bw report for fiscal year

    HI , I got issue from User like ,In a BW report I have given sold to party as best buy with actual sel though and fiscal year form 2006 to 2008.I got some values with factory week 14/2009 for it.But when i selected fiscal year 2007 to 2008 i got some

  • Upload Vendor Master(MK01)

    Hi abapers, There is a little confusion. I am trying to upload Vendor Master(MK01) through call transaction method. It is inserting only one record(one vendor). my flat file contains multiple records. Is there anything wrong in below coding. REPORT 

  • How do I read the 'Walking' dashboard for the health app?

    re: Walking + Running Distance In particular, I want to know what the numbers on the 3rd line, right side and second to the last line on the right side, represent. It looks like the are the max and min for the graph, but that doesn't match what I kno