Number of connections with JSP pool cache

I'm using a Bean from examples, its name: "ods", this is Pool Connection Cache, when a user start connection, this open 10 connections. In my project works 20 users, the DBA prefers don't use too many connections. The version of DB is 8.1.7 and web server 9iAS.
How do I do?
Can I use other number of connections by session?
What is the most rapid connection for work?
The instruction used is:
<jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
Thanks
MIGUEL ANGEL CARO
[email protected]

Hi,
Please repost your question in the J2EE forum. This forum is for Web Cache issues only. Sorry about the confusion.
We'll be changing the title of this forum soon to avoid mispostings.

Similar Messages

  • Number of connections with JSP

    I'm using a Bean from examples, its name: "ods", this is Pool Connection Cache, when a user start connection, this open 10 connections. In my project works 20 users, the DBA prefers don't use too many connections. The version of DB is 8.1.7 and web server 9iAS.
    How do I do?
    Can I use other number of connections by session?
    What is the most rapid connection for work?
    The instruction used is:
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
    Thanks
    MIGUEL ANGEL CARO
    [email protected]

    Hi,
    Please repost your question in the J2EE forum. This forum is for Web Cache issues only. Sorry about the confusion.
    We'll be changing the title of this forum soon to avoid mispostings.

  • How do I configure the number of connection in the pool for webservice axis

    Hi
    How do I configure the number of connection in the pool using xml.
    We are using axis 1.4 and commons-httpclient-3.0.1Is there any way we can do it using the client-config.wsdd file.
    We do not want to do any modification in the code for this.
    Is it possible to set socket timeout also in the wsdd file.
    Your resolution will be really helpful for us.
    Thank You
    Ottran

    Export them at a smaller size:
    File -> Export - not the options at 'Size'
    Regards
    TD

  • Number of connections in JSP with pool cache connection

    I'm using a Bean from examples, its name: "ods", this is Pool Connection Cache, when a user start connection, this open 10 connections. In my project works 20 users, the DBA prefers don't use too many connections. The version of DB is 8.1.7 and web server 9iAS.
    How do I do?
    Can I use other number of connections by session?
    What is the most rapid connection for work?
    The instruction used is:
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
    Thanks
    MIGUEL ANGEL CARO
    [email protected]

    Hi,
    Please repost your question in the J2EE forum. This forum is for Web Cache issues only. Sorry about the confusion.
    We'll be changing the title of this forum soon to avoid mispostings.

  • Connection with a remote cache

    Hi,
    I have an option to connect to cohernace clustre by
    1) Connect as an Extends node
    2) Connect as a non storage node
    out of the 2 options which one is better and why ?
    I think conncetion as a non storage node is a better option, I have to connect to a remote cache, so I am tempted to use Extend node connectvity, so I am interested to know the limitation of Extnds node over non storage node (if any) .
    Thanks

    Hi,
    Every option will be better or not depending on your requirements.
    If the client application that you are going to connect to the Coherence cluster is written in Java then you have the option of connect as storage-disabled node. This is what you would likely do for a long-running, web-based application that is collocated with the data grid.
    If your application will probably be getting connected and disconnected from the Coherence cluster several times (i.e. many times a day) then even if it's storage disabled it may result in some overhead, as cluster membership information needs to be maintained. This could be aggravated if your client access the cluster across an unreliable, high-latency WAN link. For this kinds of clients, Coherence*Extend allows you to keep cluster membership as stable as possible, and the amount of network traffic caused by repartitioning to a minimum.
    Also, consider that Coherence*Extend is your only option when you need to access the Coherence cluster from a non-Java application, such as .NET or C++ clients.
    Regarding limitations of extend nodes, the "Best practices for coherence Extend" document could be useful for you. it is available at http://coherence.oracle.com/display/COH35UG/Best+Practices+for+Coherence+Extend
    -Cris

  • 'Connection has already been closed'. Random error connecting with a pool

    Hi all,
    I've got a problem I cannot solve, and really hope in someone's help...
    The fact is: I'm working on a webapp which doesn't made use of frameworks or patterns or similars. I introduced the DAO pattern in order to organize and speed up the work. At the core of the new classes there is the DBDAO, and this is the way it obtains the connection:
          protected Connection conn = null;           ...             protected Connection getConnection()       {           try           {             if (conn == null || conn.isClosed())             {                     Context ctx = new InitialContext();                 javax.sql.DataSource ds=null;                     ds =(javax.sql.DataSource) ctx.lookup( "agespPool" );                     conn = ds.getConnection();                 conn.setAutoCommit(false);             }           }           catch (Exception ne)     ...
    Every new class that needs to access the db extends DBDAO and retrieves the conn with this method. In order to make things work without changing all the code, I modified the old class named 'Connessione' and made it extend DBDAO. Here is its method:
        public class Connessione extends DBDAO{     ...             public static synchronized Connection getConnessione() throws Exception {             return new Connessione().getConnection();         }
    That's all. Finished with the code.
    Now, if someone uses the new classes extending DBDAO, all goes well. But for some old function that still work with Connessione.getConnessione(), connection closes suddenly with no reason.
    For example, calling a page with some combo box populated with a db connection, you catch a:
        java.sql.SQLException: Connection has already been closed.             at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:63)             at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37)             at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnType(Unknown Source)             at it.praxis.tim.agesp.pub.sql.PagingList.populate(PagingList.java:98)             at it.praxis.tim.agesp.pub.sql.PagingList.executeSQL(PagingList.java:53)             at jsp_servlet._jsp._todolist_new._richiesta.__listarichieste._jspService(__listarichieste.java:353)             at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    or sometimes:
        - 20080417141147: <E> HtmlSelect.createHtmlSelect(4) - Errore!     java.sql.SQLException: Result set already closed     - 20080417141147: <E> HtmlSelect.createHtmlSelect(7) - Errore!     java.sql.SQLException: Connection has already been closed.     - 20080417141147: <E> ERRORE:  ricercaRichieste :     java.sql.SQLException: Statement has already been closed
    That is, the conn is closed while used to populate the combo box. I don't understand who closes it.
    Moreover, that happens randomly: 1 or 2 times over 4 hits on the page. The other times, all goes well. Most of the other pages, all goes well. So I don't think I have to search for a bug in the code.
    Now, I'm working with BEA WL 8.1 sp 5 and Oracle 9.2.0.1.0 .
    The error turns out even if I work locally (with Tomcat 5.5.23).
    The webapp made use of a custom driver beforehand, and I replaced it with oracle's driver.
    I tried to set the Connection Pool with oracle.jdbc.driver.OracleDriver and oracle.jdbc.OracleDriver .
    I left the default for the connection pool, and then tried to set (BEA):
    Connection Reserve Timeout: -1
    Test Created Connections: On
    with no changes.
    The connection suddenly and randomly closes.
    Any help would be appreciated...
    Many thanks

    the thing that you are instantiating isn't a Connection object, it's a Connessione object. That's returning one that's either been stashed from a previous call, or
    acquires one from the data sourcea new Connessione object means a call to getConnection that means a new Connection object. That code is synchronized, it has to be a new object.
    It is entirely possible that conn is not null if other actions have taken place in your constructor. Even assuming it is null, we don't know anything about the
    connection pool you're trying to use, though it looks like it's probably weblogic's one.The contructor doesn't know of the connection. As for the pool, it is weblogic's one.
    And even assuming both of these cases, we have no particular reason to believe that you're calling the getConnessione() method instead of accidentally calling
    getConnection() and thus no reason to believe that you're definitely carrying out the actions that you believe you're carrying out.I wrote that the problem comes out in the old code that once worked fine. That code only uses Connessione.getConnessione() .
    Conversely we have an error message that says you're closing connections elsewhere. Clearly there's a bug. It's presumably in your assumptions. You're
    arguing instead of checking them.If I have a wrapper logging the close() calls, I have to see every call logged. Even if there's a bug (but remember that the code worked fine with a previous custom datasource), why do you think I shouldn't see that close() logged?
    I may be wrong, but I already searched in that code. I'm arguing after all the checks.
    There is no other thread that can see that connHow do you know? I have that Connessione.getConnessione() in a jsp. It's synchronized. That gives a new connection. I see it passed only to an utility class that queries the db and reads the resultset.
    Who do you think can access that connection?

  • Sharing Portal database connection with JSP page

    Hi out there,
    I implemented a JSP page as a selection form to be integrated into Oracle Portal. This JSP page contains a 'dynamic' form which needs to send queries to the database also integrated in the Portal.
    For this I am currently using a JDBC connection but I would prefer to use the internal db connection of the Portal System.
    Explanation: The user has to log in to the Portal and after that can call the JSP form. To poulate some comboboxes within this form I need some data from the database and the user does have READING privileges on that database.
    Can anybody tell me how to use the user's login and password (or the established connection) to fetch the needed data from the database OTHER than with a jdbc connection?
    Thanx in advance!
    Cheers,
    Thomas

    sorry. not going to happen. you're running in a completely different environment when running Java on Portal. Portal is running in the database; your Java is running on the application server. your Java code must use JDBC to access any database resources, even if Portal related.
    it is essential that you implement a connection pool on the application server to optimize your database traffic. check out bitmechanic for a very good open source option.
    good luck,
    rich

  • Sybase Connectivity with JSP

    Can someone gimme the code for Sybase-JSP database connectivity ?
    Thanx
    Rams

    you can get the connection within your JSP or out the code in an external bean which can be shared among many applications.
    Here is the external version, assuming Sybase JConnect.
    jConnect should be in your classpath,
    e.g. CLASSPATH=.;D:\jConnect-5_5\classes\jconn2.jar;
    import java.util.* ;
    import java.io.* ;
    import java.sql.* ;
    import java.text.* ;
    public class Util {
    java.sql.Connection conn = null ;
    public java.sql.Connection getConnection(String serverUrl, String userId, String password) {
    // serverUrl = server and port in the format "servername:port"
    try {
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    conn = DriverManager.getConnection("jdbc:sybase:Tds:" + serverUrl, userId, password);
    catch (java.sql.SQLException e) {
    System.err.println(e);
    catch (Exception e) {
    System.err.println(e);
    return conn;
    public void closeConnection() {
    try {
    if ( conn != null ) {
    conn.close() ;
    catch (java.sql.SQLException e) {
    System.err.println(e);
    }

  • Problem with great number of  connections with jolt

    My application connects to Jolt using the java API. The two kind of object i am using
    are JoltSesion and JoltService. i tried
    to use several service within the same session and tried one service per session.
    The two solutions gave me the same result in case of a great number of simultaneous
    connections: Jolt
    doesn't accept any more connections and my java program receive
    errors like RESCON FAILED, CHALLENGE FAILED...
    can Jolt support more than 20 connexion per sec ?? and if this
    the case, what are the parameters to fix to allow this ?
    Thanks in advance,
    Pierre

    Hi Ali,
    please check whether you have unchecked the  "Use Default Settings"  checkbox in the display property.
    BR
    adlin

  • Large number of connections with AMS

    Hi,
    I  need to display multiple view in a application. Multiple camera view up  to 16 are displaying in the interface. But some of the connections are  rejected.
    NetConnection.Connect.Rejected
    NetConnection.Connect.Closed
    protocol is : RMTP
    I am unable to identify the error. Is there any limitation in it. please help.

    Here's the limits in the comparison guide of Adobe Media Server:
    http://www.adobe.com/hk_en/products/adobe-media-server-family/buying-guide-comparison.html
    In Pro and Extended IP multicast is unlimited, otherwise limited to 10 minutes in the trial.

  • Database connection with jsp?

    any database (access preferred)

    kajbj wrote:
    What's the question?"give me teh codez", of course. ;-)

  • GetPooledConn: No more connections in the pool for Host

    We are receiving these types of errors in our NSAPI plugin debug logs:
    Mon Dec 15 09:29:29 2008 <267131229354969494> trying connect to PRIMARY '172.16.81.45'/7141/7142
    Mon Dec 15 09:29:29 2008 <267131229354969494> getPooledConn: No more connections in the pool for Host[172.16.81.45] Port[7141] SecurePort[7142]
    Mon Dec 15 09:29:29 2008 <267131229354969494> Connect returns -1, and error no set to 150, msg 'Operation now in progress'
    Mon Dec 15 09:29:29 2008 <267131229354969494> EINPROGRESS in connect() - selecting
    How can we increase the number of connections in the pool so that these don't happen?

    We are seeing a similar connection pool error captured in the WL proxy log doing load testing. Is there an answer to this question of how to increase this pool size?
    Fri Jan 16 14:59:02 2009 <535212321359422334> Trying a pooled connection for '191.228.175.226/7003/0'
    Fri Jan 16 14:59:02 2009 <535212321359422334> getPooledConn: No more connections in the pool for Host[191.228.175.226] Port[7003] SecurePort[0]
    Fri Jan 16 14:59:02 2009 <535212321359422334> general list: trying connect to '191.228.175.226'/7003/0 at line 1319 for '/SIT-cccpol/PTGadget/SetCookies.jsp'
    Fri Jan 16 14:59:02 2009 <535212321359422334> INFO: New NON-SSL URL
    Fri Jan 16 14:59:02 2009 <535212321359422334> Connect returns -1, and error no set to 10035, msg 'Unknown error'
    Fri Jan 16 14:59:02 2009 <535212321359422334> EINPROGRESS in connect() - selecting
    Fri Jan 16 14:59:02 2009 <535212321359422334> Local Port of the socket is 2097
    Fri Jan 16 14:59:02 2009 <535212321359422334> Remote Host 191.228.175.226 Remote Port 7003

  • Maximum number of connection supported by weblogic

    Hello,
    In our current applicatin we are using weblogic 7.0 as the app server and Oracle 9i as the db server.
    The problem is the system is running out of connection frmo the connection pool very frequently, it is because of increase in the number of users,So far we have the maximum number of connectin capacity in the weblogic connection pool is 159default value). We thought of increasing the connection as an immediate solution.
    Would like to know what is the maximum value that can be set as max connection attirubute.Does weblogic gives any restriction about max number of connection in the pool or the db server decides?
    Can any you please provide maximum what value we can set for both weblogic as well as oracle.
    Any help would be appreciated.
    Thanks
    Viswa

    Please go through the below link:
    https://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx#SSAS
    Support for Windows Server 2012 was added in a cumulative update for SQL Server 2008 SP3. Although Windows Server 2012 supports 64
    physical processors and 640 logical processors, not all of the SQL Server 2008 or 2008 R2 services were retrofitted to support the additional processing capability of Windows Server 2012. Specifically, Analysis Services does not support more than 64 logical
    processors in either SQL Server 2008 or SQL Server 2008 R2.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
     [Blog]

  • Number of connections unused in a weblogic pool ?

    Here is my question :
    Do you know a way to know the number of connections unused (or the number of connections in use) at a particular moment in a weblogic connection pool ?
    Thanks a lot !
    And sorry for my poor english...
    Jerome.

    Presumably this is for server monitoring rather than because you are going to do anything with it in the server itself.
    If it was mea I would look in the management interface. You might have to drill down a bit and just plain guess.

  • Number of connections in a JDBC pool

    Hi,
    I am running Sun One Webserver 6.1SP4 on Solaris 8 on sparc machines. My web app interacts with Oracle 9.2 using the web server's jdbc pooling mechanism. Everything works fine, but what worries me is the number of connections always goes up even during nights when the traffic is considerably low compared to day time. Here is part of my server.xml relevant to the pool.
    <JDBCCONNECTIONPOOL name="spfc-dbp1" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoo
    lsize="80" poolresizequantity="8" idletimeout="300" maxwaittime="10000" connectionvalidationrequired="on" connectionvalidati
    onmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-committed" isolationl
    evelguaranteed="on">
    I checked all my code to make sure I am calling close() on result sets, statements and the connection itself both immediately after completing work as well as in the finally blocks.
    The only mechanism I have to bring down the number of connections is to restart the web server. I played around with the poolresizequantity, idletimeout properties, but it didn't help much.
    I thank all of you in advance for any insights.
    -Sharma

    Hi Sharma,
    I have a similar problem.
    Starting my portal and it works for about ten minutes. Then it is unreachable, because of an ProfileException error. I guess it is too many DB Connections.
    I can do 2 things:
    - wait for about 20minutes and it works again for ten minutes, or
    - restart tomcat.
    Currently I am setting up a new Connection Pool, Jdbc2Pool.
    Did you find a solution to your problem?
    Ciao,
    Axel

Maybe you are looking for