1 Reply Latest reply on Dec 23, 2009 2:22 PM by peterj

    Connection created and destroyed count more on newer version of jboss

      Hello: I am in the process of upgrading the jboss version from 4.0.3.SP1 to 4.2.3.GA. We have a major problem with connection pooling in jboss 4.0.3.SP1, so I am doing some benchmarking to collect data for connection pooling for both the version. And, I have found that there are more connections created and destroyed on jboss 4.2.3.GA than on 4.0.3.SP1. Has anyone encountered this behavior on their testing/development before? Or are there any changes on the newer version of jboss 4.2.3.GA that is causing it? Both the jboss has same environment and same data source/database configurations.

       

      On jboss 4.0.3.SP1 connection created count and connection destroyed count is 52 and 32 respectively, but for the same test cases on jboss 4.2.3.GA it is 122 and 112.

       

      Thanks.

        • 1. Re: Connection created and destroyed count more on newer version of jboss
          peterj

          Taking a snapshot of one set of statistics at one point in time is usually useless.

           

          One of quirks of the database connection pool mechanism is that is the connections are idle for longer that the idle timeout time, then JBoss AS will close the idle connections and then reestablish them. This can explain why the connection created count increases. One way to reduce this reconnecting is to increase the idle timeout time.