3 Replies Latest reply on Aug 20, 2003 10:49 AM by _scottwilliams_

    Using mssql-xa-ds.xml configured connection is 3 times slowe

    j8055

      We have just upgraded to JBoss 3.2.1 and have also installed the latest MS JDBC drivers (v2.2) so as to use JTA for distributed transactions.

      We have a regression test which we run to ensure the database has been set up correctly post deployment. In running these tests with different database configuration settings we have seen a substantial decrease in performance when using the mssql-xa-ds configuration file.

      With the new JDBC drivers alone we can see a slight improvement (over previous driver version) when using the standard mssql-ds configuration file but when switching to the XA version the tests take 3-4 times as long (e.g. 3955 sec as apposed to 860 seconds!!).

      We have installed the JDBC XA procedures and sqljdbc.dll file on the SQL Database so it is not a case of it not working. It works - it's just VERY slow. I've heard mention of adjusting the FetchSize but have been unable to work out where this should be done.
      Adding <xa-datasource-property name="FetchSize">50</xa-datasource-property> in the mssql-xa-ds file simply results in an NoSuchMethodException.

      Is there something we're missing? Has anyone else come across this problem with performance using XA transactions?

        • 1. Re: Using mssql-xa-ds.xml configured connection is 3 times s
          wolfie

          I have also experienced this. Have you found any solutions?

          • 2. Re: Using mssql-xa-ds.xml configured connection is 3 times s
            j8055

            Not at this stage. We don't actually need XA transaction support yet so have decided to stick with the standard config until we have more time to look into the possible casues of the performance issue. We're also hoping there will be more people using it by then which should provide more knowlegable support.

            On a side note (posted for general audience) - if you're using 3.2.1 (non-XA) with optimistic locking you will also notice a drastic decrease in performance. 3.2.2 fixes this problem. Unfortuanately, currently it's only a release candidate ... we are eagerly awaiting the official release :-)

            • 3. Re: Using mssql-xa-ds.xml configured connection is 3 times s
              _scottwilliams_

              I noticed that switching from jdk1.3 to jdk1.4 caused a 100% performance degredation using the ms jdbc driver.

              Have either of you experienced this? Is this a configuration issue?

              Perhaps it is related to the XA performance problem you have.