Load balancing of DB RAC using weblogic server

Hi All,
I want to test the load balancing of Data base RAC for my application. I got the box which is installed RAC in it with two nodes. I configured the multidatasource which points to individual data sources to each node.
Is this configuration is correct or not? to test the load balancing of the Database. I come to know that there is something called SCAN from oracle 11g but it is not supported 100% by web-logic server(we are using weblogic server 9.2MP3).
How many requests I made all the requests are going to the Node1 only not even one is gone to the node2. Any specific reason.
Thanks,
Venkat.

Another alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided.

Similar Messages

  • How to load Java properties file dynamically using weblogic server

    Hi,
    We are using Java properties file in Java code. Properties in java properties file are frequently modified. If I keep these properties file in project classpath or as part of war, I will have to redeploy application after each change.
    We are using Weblogic Server.
    Can you please suggest me how can this properties file be loaded at weblogic server startup. Then in that case, how to refer property file in Java code?
    What is the best practice for this?
    Thanks,
    Parshant

    Another alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
    Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
    This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided.

  • Using WebLogic Server with Oracle9i RAC

    A new white paper has been posted to dev2dev -
    "Using WebLogic Server with Oracle9i RAC" at
    http://dev2dev.bea.com/products/wlserver81/whitepapers/wls_bea_hp.jsp
    Abstract:
    "This paper presents best practices when using WebLogic Server with Oracle Real Application Clusters. It includes an analysis of
    various use-case and failure scenarios and proposes possible recovery solutions. This paper also includes an evaluation of
    Transparent Application Failover, a product from Oracle that is functionally similar to WebLogic Server MultiPools."

    "satyam" <[email protected]> writes:
    Can I use WebLogic Application Server 6.0, the mid level server (not the express
    or the enterprise version)
    with VisiBroker 4.x ?If you have ejb support - then yes - although you may want to wait for
    a future 6.0 rolling patch to get updated IDL generation.
    andy

  • Functional load balancing in oracle RAC

    Hi all,
    Could anyone suggest how to setup functional load balancing in oracle RAC? Will there be any performance improvement in doing so? I implemented server side load balancing and the performance of INSERT, UPDATE and DELETE are very poor. Will functional load balancing be of any use? Please tell me the steps of how to implement functional load balancing?
    Regards,
    Aravind
    Edited by: Aravind K R on Jul 12, 2011 2:49 PM

    Aravind K R wrote:
    Hi all,
    Could anyone sujjest how to setup functional load balancing in oracle RAC? Will there be any performance improvement in doing so? I implemented server side load balancing and the performance of INSERT, UPDATE and DELETE are very poor. Will functional load balancing be of any use? Please tell me the steps of how to implement functional load balancing?
    Regards,
    Aravind
    Hi,
    Load balancing will not necessary increase performance, it just distribute the load more evenly.
    Is the DML statement only slow in specific instance?
    To prove if there is problem with load balancing, have you tried connect to one instance and perform same DML statement? compare the result
    Cheers

  • How to configure RZ12  and SM59 ABAP connection settings when we have work with Load Balancing servers rather than a specific server .

    Hi ,
    If we have a specific server say 10.10.10.10 (abc.co.in) on which we are working, Then under RZ12 we make the following entry  as :
    LOGON GROUP          INSTANCE
    parallel_generators        abc.co.in_10         ( Lets assume : The instance number is 10 )
    Now in SM59 under ABAP Connections , I am giving the following technical settings:
    TARGET HOST          abc.co.in
    IP address                  10.10.10.10
    Instance number          10
    Now if we have a scenario of load balancing servers with following server details (with all servers on different instance numbers ) :
    10.10.10.11    
    10.10.10.13
    10.1010.10
    10.10.10.15
    In this case how can we make the RZ12 settings and SM59 settings such that we don't have to hardcode any IP Address.
    If the request is redirected to 10.10.10.11 and not to 10.10.10.10 , in that case how will the settings be.
    Regards,
    SHUBHAM

    Hi,
    No one using FMS behind a load balancer? No one using RTMPT?

  • Load balancing in 10g RAC

    why we need to have load balancing(client and server side load balancing) in 10g RAC environment

    853910 wrote:
    why we need to have load balancing(client and server side load balancing) in 10g RAC environmentIn simple words because you don't want just one node to be getting busy with all the workload coming up but you do want the work to be divided among all the nodes in teh cluster since the RAC is based on the principle of divide and rule .
    Aman....

  • How can I mapping directory by using Weblogic Server?

    Hi,
    We used to use iPlant as the web server. How can mapping directory using Weblogic
    server?
    $PATH=$wl_home/config/epdm/applications/DefaultWebApp/WEB-INF/classes
    such as to map the following:
    From To
    /rok/servlet $PATH/servlet-dev/WEB-INF/classes
    /rok/imagest $PATH/servlet-dev/images
    /rok/html $PATH/servlet-dev/htm
    /servlet $PATH/servlet-dev/servlet
    Thanks!
    Hanqing

    Use JMX. See http://dima.dhs.org.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Nicole" <[email protected]> wrote in message
    news:3c4d6daa$[email protected]..
    >
    Hi all,
    in my EJBs I want to know, on which server instance I´m running. I needthis for
    logging info. How can I get the servers name?
    When I load the JNDI tree and select java:comp, an error occurs and a lotof information
    is printed. One is weblogic.Server and that is what I´m searching for.
    I use WLS 6.1 SP1
    Any ideas? Thanks,
    Nicole

  • How Load Balance works in RAC?

    Hi All,
    I have a 2-node 10gR2 RAC on RHEL4. One of our web based application is connecting to the RAC database. Today, while starting up the application, one of our node(node1) was down and all the connections from the app are connected to the DB using other node(node2). There were around 120 connection from application. Again, i brought back the node1 but still, the connections were on node2 and no connection on node1.
    My doubt is, how the load balancing works in RAC? is there limit like after some number of connections, it will load balance to other node?
    Thanks,
    Praveen.

    If all the connections go to node 2 cause node 1 is down, then, when node 1 comes back, those connections already established on node 2 will remain on node 2. There is no mechanism to migrate existing connections. However, over time, as more connections come in, they should go to node 1. Over time, the load should balance out. But, the only way to immediately rebalance would be to force existing connections to recycle their connection.
    If one node is capable of handling the load, I wouldn't worry about it....over time, things will balance out.
    -Mark

  • I need  How to retrive data from sap r/3   using weblogic server

    Hi every body .
    I need how to retrieve r/3 data  using BAPI methods
    and using weblogic server
    very critical

    Hai.
    check the links.
    http://www.bea.com/content/news_events/white_papers/BEA_WLP_SAP_Portlets_81.pdf
    http://www.info-sun.com/docs/wp_sapinter.pdf
    regards.
    sowjanya.b

  • Using weblogic.Server to create domains

    Not sure this is the right group for this question....
    I am reading some weblogic docs on creating a domain using weblogic.Server (http://e-docs.bea.com/wls/docs81/admin_ref/cli_tasks.html#1331827).
    For the most part it has worked as expected and I find it preferable to using
    the domain cfg wizard. However, is there a way to use a template jar like you
    can with the config wizard, for instance any of the jars in the
    $WL_HOME/common/templates/domains/

    Hello Jay, thanx for ur help... this time i didnt get the args missing error but i have this one about "can't overwrite"
    mauro@MacBookPro:HelloWorldEAR $ java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    mauro@MacBookPro:HelloWorldEAR $ cd ..
    mauro@MacBookPro:WLprojects cursor$ sudo java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    mauro@MacBookPro:WLprojects cursor$ cd HelloWorldEAR/
    mauro@MacBookPro:HelloWorldEAR $ ls
    APP-INF META-INF appUtils bin helloWorldEJB helloWorldWebApp src
    macbook-de-cursor:HelloWorldEAR cursor$ cd ..
    mauro@MacBookPro:WLprojects $ sudo java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen -file build.xml /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    Do u know something about this message?? I really need to set up this thig to be able to start my own project :P Thanx in advance
    Best regards,
    Mauro
    ==========================================================
    Solution
    Ok, i make it work!! I have in my develop structure a helloWorldWebContent/META-INF/ and here i had a web.xml and a weblogic.xml
    The weblogic.xml file cause problems... i deleted and it works
    I was following this tutorial
    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/splitcreate.html#wp1098227
    and i create all those files...
    Dude, u have a great blog! Now it is in my bookmarks
    Edited by: mgaldames on 17-may-2010 7:20
    Edited by: mgaldames on 17-may-2010 7:21

  • Question about Load Balance SFTP service by using CSS1150X

    Does anyone come across of load balancing SFTP service by using CSS1150X? Typically by configuring CSS1150X to load balance FTP service, the configuration will as follow:
    content ftp_rule
    vip address 192.168.3.6
    protocol tcp
    port 21
    application ftp-control
    add service serv1
    add service serv2
    add service serv3
    active
    group ftp_group
    vip address 192.168.3.6
    add service serv1
    add service serv2
    add service serv3
    active
    However, for my personal understanding and knowledge, I will configure my CSS1150X as follow to load balance SFTP service:
    content sftp_rule
    vip address 192.168.3.6
    protocol tcp
    port 22 //Change 21 to 22
    application ftp-control
    add service serv1
    add service serv2
    add service serv3
    active
    group sftp_group
    vip address 192.168.3.6
    add service serv1
    add service serv2
    add service serv3
    active
    My question is, "application ftp-control" in content "ftp_rule" is still applicable to SFTP or not?

    I believe application ftp-control would not be used for sftp.
    This might cause the session to get dropped when there is no data channel created and cause issues with long connections.
    Hope it helps!!

  • Weblogic 8.1 and Eclipse using Weblogic Server Tools

    I am working on a project that has been developed with Weblogic 8.1 without integration into an IDE (Eclipse, etc.) We are trying to convert the source tree to a form usable within Eclipse using Weblogic Server Tools. We want to make deployment on developer workstations quicker and easier and provide for server side debugging. There is not much documentation on how to do this that I have been able to find. I have just finished reading the details of the split directory strucuture in the Weblogic documentation and understand that Server Tools uses the split directory concept. My question is basically how we create the project in Eclipse (with Server Tools plug-ins) initially. Is anyone out there still using Weblogic 8.1 and Eclipse 3.3 (Europa) using Weblogic Server Tools that can help?

    There isn't much in a way of documentation that's explicit to WebLogic Server Tools, but a lot of Workshop 10.2 documentation applies. Basically, you will want to create Dynamic Web Projects to house your code. On the first page of Dynamic Web Project wizard, you will get a chance to define and target a server (WLS 8.1 in your case). That will configure your project classpath for WLS 8.1 and get everything else squared away.
    Note that there is only very basic support for 8.1. In particular, the split-directory concept is not supported, but deployment is taken care of for you behind the scenes, so the details shouldn't matter that much.

  • See Java System properties using WebLogic Server console

    hi
    If I deploy "systempropertiesweb.war" [1] on WebLogic Server I can see all or individual Java System properties,
    e.g. http://localhost:7101/systempropertiesweb/systemproperties?property=java.version results in "java.version = 1.6.0_24"
    Is it possible to see the same Java System properties using WebLogic Server Administration Console? If so, how?
    ( via http://localhost:7101/console )
    - [1] at SystemPropertiesApp/SystemPropertiesWeb/deploy/systempropertiesweb.war
    in http://www.consideringred.com/files/oracle/2013/SystemPropertiesApp-v0.01.zip
    many thanks
    Jan Vervecken

    Thanks for your reply Timo.
    Timo Hahn wrote:
    I don't think that there is an option to see this in the admin console. ...Thanks for the confirmation.
    ... There my be a mbean but I did not find it.Well, if I start JConsole (e.g. at C:\oracle\jdevstudio111240-mw\jdk160_24\bin\jconsole.exe ) and connect to e.g. Local Process "weblogic.Server", on the MBeans tab I can navigate to java.lang:type=Runtime which has an SystemProperties attribute.
    But, I don't know how to get to this same MBean using the WebLogic Server Administration Console (if possible).
    regards
    Jan Vervecken

  • Load balancing MQ 7.0 Foreign JMS Server and Weblogic 10 MDBs?

    We have the following configuration and we are trying to troubleshoot what appears to be a load balancing issue.
    We have 3 Solaris servers. Each Solaris server has two Weblogic managed servers running on it. There are a total of 6 managed servers in the Weblogic cluster.
    MQ Series 7.0 is also installed on each Solaris server. The MQ queue managers are in a MQ cluster. Each queue manager has the same queues defined.
    We have a foreign JMS Server configured on Weblogic that has destinations and a connection factory defined. There aren't many configuration options available for the connection factory. The destinations are bound to the queues defined on MQ using the MQ bindings file.
    The MQ bindings file was generated using the TRANSPORT(BIND) mechanism. Each bindings file points to the queue manager running on that machine. So the 2 managed servers running on one machine are accepting messages from the queue manager on that machine.
    The MDB's listenning for messages on the MQ queues are configured as follows in the weblogic-ejb-jar.xml:
         <max-beans-in-free-pool>16</max-beans-in-free-pool>
    We also created a custom work manager with min threads constraint=5 and max threads constraint=16. The dispatch-policy of all the MDBs is set to the custom work manager.
    The open input count on each MQ queue managers shows up as 32 which is expected.
    The default load algorithm on the cluster is round-robin.
    When we run a load test (injecting 40 messages per second on one MQ queue), we notice that one managed server ends up being significantly loaded than the other. Each MQ queue manager in the MQ cluster receives approximately the same number of messages in the load test. But it seems like one managed server is preferred over the other in Weblogic.
    What can be done to equally balance the load among the two managed servers on each Solaris server?
    Thanks for the help.

    Load balancing generally applies at determing how many consumer threads has to be created on each of the clustered queue instance. In that sense you have achieved perfect load balancing as your queue instances has the same no of consumer threads.
    Once you have set 'x' consumer threads on a queue, it is upto messaging provider to decide which thread to deliver a particular message and you will hardly have any control over this. Since your 32 threads are listening on the same queue, MQ can select any thread for delivering the message and the behaviour could be non deterministic.
    One option to change your design is to have a dispacther mdb which picks the messages off the MQ and then routes to a weblogic distributed destination and you can have your core mdb which does all processing listen to this distributed destination. You can enable load balancing when the disaptcher mdb routes the message to the distributed destination. Since dispatcher MDB is nothing more than a router, the unbalanced consumption off the MQ shouldn't seriously affect the server.

  • Server load balancing for application access using multiple servers

    1.what are the methods supported by cisco switches for load balancing
    2. I want to achive users to access 1 particular ip from different locations but phsically few servers which handle the application and data

    well some servers allow you to install routing protocols on them. you could OSPF some links together.
    or you could NLB if it is a microsoft server. this uses a heartbeat network, a virtual mac and an IP address bound to the vmac.
    you could use NIC teaming. broadcom nics on dell servers allow you to configure them for loadbalancing, failover and a few other options.
    or if the servers are mirrored using MSCS or something similar (i.e configured the same but independant) you could just load balance using DNS.
    hope this helps. jsut some ideas quickly off the top of my head

Maybe you are looking for

  • Error Handling Inside BPM Process

    Hi All, I have a scenario in which, when a BPM Process errors out due to any of the System Exception I'm catching it using a Event SubProcess activity and handling it. Problem: I want the control to get back to the next activity i.e Normal Process sh

  • Software restriction policy not working correctly

    Ladies and Gents, we run a windows server 2008r2 environment. we have a software restriction policy in place for quite some time now and it's been working fine until about a week ago. here's how we have it setup: Enforce = All Software files except l

  • Componentization in Visual Composer

    Hi guys, I recommend reading this article. It really helps designing your applications and models in an efficient and understandable way. Model componentization involves breaking a model down into smaller, easily-identifiable pieces that have well-de

  • Trouble importing third party classes & using linked list in j2me

    Hi! I need to use the linked list data structure in a j2me application im developing. Al long as I know, it is not included in standard libraries. I found the "workaround", the substitution in Jade Laepaddon. This is actually a set of classes in a di

  • Exported images are under-exposed

    I have been using LR5, with updates, for the past couple of years, on a Windows7-PC 64 bit, system. Several weeks ago, I noticed that when exporting images, that were fine in the catalogue, that they became approximately 0.7-1.0 stops, underexposed.