Customer Portal

Getting weblogic.jdbc.extensions.PoolLimitSQLException

Comments 3

  • Avatar
    admin
    0
    Comment actions Permalink
    Hi,

    It may be that some of your connections in pool are broken - e.g. by timeout, lost connection, ... So it makes a sense to setup validations on connection. Not working connections are then released and does not stuck in pool.

    How does your JNDI connection definition look like? I am not sure about DB engine you use, but for example for MySQL it make sense to switch on following properties:

    * validationQuery="/* ping */ SELECT 1"
    * testOnBorrow="true"
    * validationInterval="30000"
    * timeBetweenEvictionRunsMillis="30000"
    * minEvictableIdleTimeMillis="60000"

    and in JDBC url use parameter "autoReconnectForPools=true"

    I hope this helps.
  • Avatar
    chaitanya_r
    0
    Comment actions Permalink
    Thanks a lot for replying. I am using Oracle 11g as my database, so can you please tell me if I need to do the same settings if I use Oracle DB instead of MySQL?

    Also can you please guide me on where I need to set the properties while defining my JNDI in Weblogic server? I have gone through the list of properties under connection pool tab of my JNDI data-source but I don't see these parameters defined in Weblogic.

    Is there a way to find out what happened to these connections like whether they timed-out, lost connection as you have explained?

    Also can you please tell me if the details are available in clover documentation or anywhere else?

    Thanks in advance.
  • Avatar
    imriskal
    0
    Comment actions Permalink
    Hi,

    settings for Oracle should be the same and the described location is the correct one. If you want to see all the configuration options, open Advanced section. You can cross check names of the properties, for example validationInterval in Tomcat is obviously Test Frequency in Weblogic and so on. Here is a list of properties with their description for Tomcat: https://tomcat.apache.org/tomcat-5.5-do ... howto.html (chapter named JDBC Data Sources, subchapter 4. Configure Tomcat's Resource Factory) and there is quite a nice description directly next to the setting in Weblogic console, even with the option "More Info".

    Regarding your other question, myDataSource -> Monitoring -> Statistics seems like something you might find useful. The documentation is here: http://docs.oracle.com/cd/E23943_01/web ... onitor.htm

    Regards,

Please sign in to leave a comment.