How to manage connections in production environment

Hai
We are using Statless Session beans which will call bean managed entity beans
as a developer we completed the first phase of our project successful but when
comming to the production environment they(Higher authoritites of the company)
are asking abt the connection pools. Suppose if my wlserver5.1 has 100 hits per
a second how many connection pools i need to put in the production envirornment
and also is it the right way to increase the connectionpools depends upon the
clients hits????. Can anybody help me regarding this It is very urgent for us.
Thanks in advance
Cheers Kiran Nallam

Hi,
It all depends on your infrastructure and what products you are using.
In most cases dev/prod are on different servers and are separate installs, this is the route I would promote.
Some clients do share an environment for dev/test but not all, not everybody is the same.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • How to manage Development/Tset/Production Environment in Planning

    Hi Gurus,
    I wanted to know what is the best method to manage these 3 environment in Planning.
    Does it require to install seperate installation on seperate servers or we can use one installation of planning, RDBMS and essbase.
    or
    it require some other technique.
    Please advise me, though i know it is simple question but small hint will be a great help.
    Thanks
    Kumar

    Hi,
    It all depends on your infrastructure and what products you are using.
    In most cases dev/prod are on different servers and are separate installs, this is the route I would promote.
    Some clients do share an environment for dev/test but not all, not everybody is the same.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to check transport in Production environment

    Hi,
    I did some standard configuration as OBYA (Intercompany automatic Posting clearing account) in development Box and get it transported to Production.
    I have to verify that the configuration I have done has been transported to Production Environment.
    Where should I check? I don't have access to SE16 in Production.
    Quick response will be appreciated.
    Thanks & Regards.

    hi Mehak,
    go to transaction SE01 (either in development/customizing or in production system), in the first tabstrip enter the transport number and click on Log (2nd Pushbutton). This will display the Transport Log, and you can see if there were no errors during import into Production System, then your changes are there.
    hope this helps
    ec

  • Stale Database Connections in Production Environment - Oracle 9.0.4.1

    Every so often we encounter stale database connections in our connection pools. To us, this should not happen, as the connections should be refreshed, if idle, every so often.
    Please see the data-sources entry below for an example connection pool. They are all pretty much the same. We have a retry-interval and inactivity-timeout specified!
    Are we missing something obvious.. Any help at all on this would be much appreciated as this is an ongoing issue in a real-time CRM type application currently running in Production.
    Cheers in advance.
    data-source class="oracle.jdbc.pool.OracleConnectionCacheImpl" location="jdbc/COMMONCoreDS" password="" min-connections="10" username="" url="" xa-location="jdbc/xa/COMMONXADS" inactivity-timeout="60" connection-driver="oracle.jdbc.driver.OracleDriver" wait-timeout="10" max-connect-attempts="3" max-connections="45" name="COMMONDS" ejb-location="jdbc/COMMONDS" connection-retry-interval="30" stmt-cache-size="200">
              <description>Oracle DataSource to Common Schema</description>
         </data-source>

    public Connection borrowConnection() throws SQLException
    logger.debug("borrowConnection");
    Connection conn = null;
    try
    conn = mDatasource.getConnection();
    conn.setAutoCommit(false);
    if (conn==null)
    logger.fatal("Borrow connection failed");
    throw new SQLException();
    catch(SQLException e)
    logger.fatal("Borrow connection failed",e);
    throw e;
    return conn;
    public static void releaseConnection(Connection conn)
    logger.debug("releaseConnection");
    try
    if (conn!=null)
    conn.close();
    catch(SQLException e)
    logger.warn(e);

  • How to manage connections good?

    Hi there;
    When calling a servlet from another servlet what must we do?(both servlet uses database connection)
    1)do we must pass the connection to the second servlet as an object?
    2)or do we must close the connection before calling second servlet and open new connection on the second servlet?
    i am using jndi-dbcp connection pooling...closing then creating connections are expensive in connection pooling?
    thanks for any suggestions
    Burak

    the common servlet called by many servlets...think
    that common servlet controls the session,if the user
    has logged in or not...and must be called by many
    servlets...That's one way to do it, but it's hardly optimal.
    now what we gonna do?are we going to embed that
    common code to every object?this is now code
    repeatation...!Repeating yourself is indeed a bad thing, but you've something that ought not be done in servlets, IMO. That's not what they're for.
    Connections should be maintained in a pool by the servlet container. They most definitely should NOT be passed around on the wire. That's just wrong.
    Are all these servlets in the same web context?
    so what is the solution for commonly used codes?Don't put JDBC code in servlets.
    I'd have service interfaces that were responsible for performing actions on the behalf of clients. The service takes objects bound from the HTTP request and uses them, along with model objects and Data Access Objects, to fulfill the request. The service knows about units of work, so it worries about getting Connections out of the pool and passing them to its DAOs. It manages transactional logic and returns the connection to the pool when it's done.
    I'm using Spring, so the ApplicationContext is the thing that handles all data sources for me.
    %

  • How to manage connectivity between Oracle 11g &9i Database and Visual Studio 2010 professional in window 7

    Hi,
     I am not able to resolve the error of
    “ORA-12514: TNS:listener does not currently know of service requested in connect descriptor”
    Below Link is the indication,  related to that error.

    Hi Surbhi.Gupta,
    Thank you for posting in MSND forum.
    According to your descriptiom, I suggest you could try the following blog to connect to Oracle from Visual Studio check your issue again.
    Reference:
    http://blogs.msdn.com/b/kaevans/archive/2009/07/18/connecting-to-oracle-from-visual-studio.aspx
    In addition, as you said the error message, I did some research about this error message. So I suggest you could refer then following thread to check your error, maybe you will get some useful message.
    http://dba.stackexchange.com/questions/36370/oracle-11g-listener-fails-with-ora-12514-and-ora-12505-errors
    However, since this issue is related to the third-party database oracle, so if possible, I suggest you could try to post your issue directly to this Oracle official website:http://www.oracle.com/us/corporate/contact/about-your-account-070507.html
    , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use connection pools in production environment

    Hai
    We are using Statless Session beans which will call bean managed entity beans
    as a developer we completed the first phase of our project successful but when
    comming to the production environment they(Higher authoritites of the company)
    are asking abt the connection pools. Suppose if my wlserver5.1 has 100 hits per
    a second how many connection pools i need to put in the production envirornment
    and also is it the right way to increase the connectionpools depends upon the
    clients hits????. Can anybody help me regarding this It is very urgent for us.
    Cheers Kiran Nallam

    Hi Aravind,
    It can be used only for calculation kinda "minimum size".
    Nothing can prevent a developer from writing something
    like this:
    Connection con1 = ds.getConnection();
    Connection con2 = ds.getConnection();
    Connection con3 = ds.getConnection();
    Regards,
    Slava Imeshev
    "Aravind Krishnasamy" <[email protected]> wrote in message news:3bfa85f6
    You can fix the size of the weblogic connection pool depending on yourexecute
    thread count value. For example the default value of execute thread countvalue
    is 15. So at a given point of time you cannot use more then 15 databaseconnection.
    Database connection pool size should be equal to or less then the size ofexecute
    thread count
    "Slava Imeshev" <[email protected]> wrote:
    Hi Kiran,
    It's hard to provide exact dependence between number of hits
    and actual number of consumed connections because it's a highly
    variable distributed environment. But the general approach is
    simple - before rolling out your application, make sure you
    tested it under simulated peak load. Your connection pool should
    have enough connections to serve peak load. Without such a testing
    you will never know whether your app scales or not.
    Regards,
    Slava Imeshev
    "Kiran" <[email protected]> wrote in message
    news:3bf9d676$[email protected]..
    Hai
    We are using Statless Session beans which will call bean managed entitybeans
    as a developer we completed the first phase of our project successfulbut
    when
    comming to the production environment they(Higher authoritites of thecompany)
    are asking abt the connection pools. Suppose if my wlserver5.1 has100
    hits per
    a second how many connection pools i need to put in the productionenvirornment
    and also is it the right way to increase the connectionpools dependsupon
    the
    clients hits????. Can anybody help me regarding this It is very urgentfor
    us.
    Cheers Kiran Nallam

  • How to manage one wsp and dll for multiple clients in farm environment

    1. There is a product which is developed using C sharp , jquery,CSS and sharepoint object models which have been packaged into .wsp file. Whenever we introduce new functionality to the product we used to branch the
    previous code as a version , say Version 1.0 and new functionality of the product will in another solution. This is how we are managing the code in TFS as versions. Each newer version will have new functionalities. We do not give latest functionality for all
    the clients. Each client is having its own version of functionality. Technically in order to access the functionality, the wsp solution should be present in the solution repository which is available in SharePoint central administrator site. This solution
    will be deployed on the client’s site. We are following the above process in SharePoint standalone installation where we used to purchase dedicated server per client and installed sql, SharePoint foundation 2010 as standalone installation and adding the client
    related version of the code to the solution repository. Later host on the site which is created for that client purpose. This process is same for all the clients where we purchase individual server for each client .
        Now we want to host our product in farm environment of sharepoint foundation 2010 where we are going to try 3 level architecture. 
    • SQL Server-In this sever we are going to install sql server 2008R2 standard edition. Which should serve the database service for all the web applications/sitecollections which we are going to create in Web front end server.
    • Application server- In this server we are going to install the sharepoint as farm and will install search server express for serving search functionality for our product
    • Web front end server- In this server we are going to add this server to Sharepoint farm which we have created in application server. Here we are going to create web applications and site collections for all the clients.
    In this scenario how to manage multiple versions of same wsp solution?
    Another major issue w.r.t the architecture of the product and new approach for client deployment as follow.We have CSS, jquery files for serving the functionality.These files have been mapped to 14 hive folder.If any changes we do one of the jquery file or
    css file which is meant for latest version and not for old version, then how to manage this new functionality for that particular css or jquery file in 14 hive folder, since there is only one 14 hive folder. What is the best practice to make this happen? Another
    thing is, how to manage dll files for individual client?

    It sounds like you have a farm scoped solution at work. In that case you can only have a single instance of it per farm, you'd have to branch each version so they appear to be seperate solutions entirely (thus ruining your clients upgrade process).
    Bluntly i don't think a single farm can manage all your user environments.

  • How to port database changes from development to a production environment

    How do I port database changes from the development to the production environment?
    I am using v8 and have always had to redo everything using the schema manager all over in the production environment. Is there an easy way to generate a script, for example to dump the database changes on the development machine to be executed later on the production machine?

    This should already be a clearly defined change control process. Once a procedure, function, package, trigger, or whatever completes the testing rounds, it should be promoted to production.
    Forgive me if it seems I'm trivializing, but I don't see the problem, just copy the object(s) from your software library (or development) into production using whatever tool works best or has been chosen. If you are doing data copies then you have various options again including good old export/import.

  • How to transport the connection in production system

    hi
    I have a doubt releaated to connection between SAP BI and Xcelsius.
    We have a development server on which i have created universe and then on it Qaaws and finally Xcelsius dashboard.
    My doubt is in future they will transport the SAP BI system from Development system to Production system.
    In this case  Universe ,Qaaws,Xcelsius will work?
    will i have to develop this again in production system, or any how it will work with production system?
    How excetly development work here when we have connection between SAP BI and Xcelsius in different system from development to quality and then in Production?
    Thanks,
    Piyush

    Hi
    assuming that the objects (keyfigures, characteristics, multiprovider) of the underlying query are available in your production system you do not have to create your universe again, rather change the connection data to your SAP server (like SYSID, client number etc) in the universe connection.
    Additionally if you are working ith BO XI 3.1 I would suggest to take a look to the LifeCycleManager, a tool which can simplify the transport process from your development to your production environment.
    Regards,
    Stratos

  • How to I connect to a custom CMS from FrameMaker Connenction Manager?

    Hello,
    I am using the Adobe Technical Communication Suite 5 and was wondering how
    I can connect to a custom CMS, using the Connection Manager in FrameMaker 12.
    Is there a write-up on  making custom connections anywhere?
    Thanks,
    Jim

    See:
    http://blogs.adobe.com/techcomm/2012/09/open-source-sample-connector-between-framemaker-11 -and-adobe-cq-now-available.html
    How to build a connector between your CMS and FrameMaker 11? New CMS API documentation now available! « Technical Commun…
    Framemaker Developer Center | Adobe Developer Connection [See third section down (CMS Connector)]

  • How to download run time ABAP dump in production environment

    Hello,
    I am getting run time ABAP dump in production environment. Please guide me onHow to download run time ABAP dump in production environment?
    Also, please tell me how best can analyze that dump. Like there are tools like gdb, purify etc. to analyze problems in other languages.
    Regards,
    Sameer.

    Hi,
    Go to ST22, and Double click on the error line, It will show you the detailed analysis.
    See the section How to correct the error for details on error correction and the instructions to download the log( you can download in the format you want - HTML would be a nice option).
    And there are no tools to analyze errors but ST22 has a large data regarding the location of the error, the reason and the source code which caused. So you need to use the debugger to reproduce the error and check the source code,
    Regards
    Karthik D

  • How to manage work center in Production order

    Hi,
    I am producing a material having one operation (suppose cutting), which I have mentioned in the routing. I have also mentioned the work center in routing on which cutting operation will be performed. When I make the Production order of 1000 pcs there comes only one work center. But practically, they are producing these 1000 pcs on two different work centers ( 500 on one and 500 on second). How to manage this in SAP.
    Kindly help me.
    Thanks and Regards,
    Yogesh Singla

    Dear ,
    What is the individual capacacity of the Work Centre -CR02-Header -No of Individual Capacity ?
    I think you must be using similar kind of work centre of 2 no 1000 pc .Now , when you are creating routing for this , you should hit Required Spilliting in Routing Operation -Select Operation line item  and then Double click -Select Spilitting and enter splitting No 2.
    At the same time in CR02-Work Center -Capacity Tab -Hit the Header -In the Bottom of the Detail Capacity Header -Avaialabile Capacity -Include 2 as Number of Inidvidaul Capacity  and SAVE.
    Now based on thr required spilittinga and invidual caapcity , it will consider the Work Centre Load .
    Other wise , you can enter one more operation line in routing with similar Labor hrs , work center and control key in routung for production of 1000 pc  .
    Hope it clarifies
    Regards
    JH

  • How to manage database connections

    Hi, I have been trying to find the best way of doing database connections, My application will not be used by many users since its an intranet application used by administrators only to change settings.
    I want to be able to connect to db from a servlet but not have to make the connection all the time, I was thinking of creating my own ContinuousConnection class which basically keeps the connection and all you do is getConnection which checks if the connection is "up" or not, if it is up then just give it as the return value else, just create a new connection since the driver class has already been loaded...if it is null then just load the driver and make the connection.
    this way in differenet functions that i have in the servlet dont have to make connections all the time.
    Is there a better way of doing this?
    I was thinking of putting the connection object in the data section of the servlet, but then it is more or less like static data amongst all threads created to run the servlet and I dont know what would happen if 2 querries are run from the same connection by different serving threads...can someone please explain me this..
    I know a good way of managing connections is using a pool..but i dont know how useful is that here...also i am not very familiar with a pool..can someone please explain me the idea behind it..and how it works...that would be just perfect.
    Thank you very much.
    Ankur

    IIRC to setup tomcat connection pooling when using an Oracle database (for example):
    Add something like this to the server.xml file:
            <Context path="/myProject" docBase="myProject" debug="0"
                     reloadable="true" crossContext="true">                
                    <Resource name="jdbc/ORAC" auth="Container" type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/ORAC">
                <parameter>
                  <name>factory</name>
                  <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                </parameter>
                <parameter>
                  <name>driverClassName</name>
                  <value>oracle.jdbc.driver.OracleDriver</value>
                  </parameter>
                <parameter>
                  <name>url</name>
                  <value>jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:XXXX</value>
                </parameter>
                <parameter>
                  <name>username</name>
                  <value>xxxxx</value>
                </parameter>
                <parameter>
                  <name>password</name>
                  <value>xxxxx</value>
                </parameter>
                <parameter>
                  <name>removeAbandoned</name>
                  <value>true</value>
                </parameter>
                <parameter>
                  <name>logAbandoned</name>
                  <value>true</value>
                </parameter>
                <parameter>
                  <name>maxActive</name>
                  <value>20</value>
                </parameter>
                <parameter>
                  <name>maxIdle</name>
                  <value>10</value>
                </parameter>
                <parameter>
                  <name>maxWait</name>
                  <value>-1</value>
                </parameter>
              </ResourceParams>                       
            </Context>  This needs to go in between the <Host> ... </Host> tags (probably at the bottom) in the server.xml file (${CATALINA_HOME}/conf). You must put this in the correct place in the xml file or you'll get errors.
    Then you need to add this to your web.xml file:
        <resource-ref>
             <description>Oracle Datasource</description>
             <res-ref-name>jdbc/ORAC</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
        </resource-ref>Again this needs to go in the correct place (as per the dtd)
    Then to get a connection:
    final Context initContext = new InitialContext();               
    final DataSource ds = (DataSource) initContext.lookup("java:/comp/env/jdbc/ORAC");                              
    final Connection conn = ds.getConnection();You probably want to wrap getting these connections in a class (i.e. with a getConnection method). And remember to close the connections when you've finished with them.

  • How Transaction Manager work with Resource Manager, like Connection pool?

    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!

    Xin Zhuang wrote:
    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!Hi. If you configure your WLS DataSource to use keep a connection for
    the duration of a tx, it will do that, and in any case there can be
    no deadlock however many connections operate for a given XA transaction.
    Here is the best coding form for DAOs or any other user-written code
    for using WebLogic DataSources. This is important for two reasons:
    1 - Thread-safety is maintained as long as the connection is a
    method-level object.
    2 - It is crucial to notify WebLogic that you are done with a connection
    ASAP, by your calling close() on it. We will then put it back in the
    pool, or keep it under the covers for your next request if it's in a
    transaction etc. The pool is optimized for quick get-use-close scenarios.
    public void one_of_my_main_JDBC_Methods()
    Connection con=null; // Must be a method level object for thread-safety
    // It will be closed by the end of the method.
    try {
    con = myDataSource.getConnection(); // Get the connection in the try
    // block, directly from the WebLogic
    // datasource
    // do all the JDBC within this try block. You can pass the
    // connection to subordinate methods, but not to anywhere
    // that thinks it can use the connection later.
    rs.close(); // close any result set asap
    stmt.close(); // then close any statement asap
    // When you're done with JDBC
    con.close(); // close the connection asap
    con = null; // nullify it so the finally knows it's done
    catch (Exception e) {
    // do whatever catch stuff you want. You don't
    // need a catch block if you don't want one...
    finally {
    // It is important to close a JDBC connection ASAP when it's not needed.
    // without fail, and regardless of exit path. Do everything in your
    // finally block in it's own try-catch-ignore so everything is done.
    try { if (con != null) con.close();} catch (Exception ignore){}
    return ret;
    }

Maybe you are looking for

  • Progress Analysis, Plan/actual % comparision based on activity confirmation

    hello guyz, I have to monitor the project progress based on activtiy confirmation, can anyone guide how can i see progress of project based on percentage with plan/actual dates comparison. The business scenario is: One top level WBS under which 2 WBS

  • Change print dimensions and resolution without resampling

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1fef992ca12e28aa8015-7 ff0.html

  • How to fix extremely slow render in AE CS6?

    Hi, we've just upgraded from CS4 to CS6. A composition that used to need 9 minutes to render, needs 2 hours now. AE is updated and we don´t use the option "Render Multiple Frame Simultaneosly" We've tried to delete different layers from the compositi

  • ADOBE CREATIVE SUITE 4 MASTER COLLECTION

    Is ADOBE CREATIVE SUITE 4 MASTER COLLECTION the best Web design solfware you can buy for making Web Sites? Whit

  • Missing Hardware Acceleration

    When I open existing Premiere Pro Project i get the message this project was last used  with Mercury Playback Engine GPU Acceleration (Open CL).which is either not available or not certified on this system. Mercury Engine Playback Only will be used.