CODit

BTS and SQL 2005 SP2

by sam 9. December 2009 08:18

At my customer, we had a very strange behavior of the BizTalk environment (2 BTS 2006 R2’s running on a SQL 2005 SP2 cluster).

 

We had an orchestration that took about 1000 milliseconds to execute at the beginning of our performance test (20000 executions per hour of this orchestration).

After many hours of testing, we started noticing a performance degrade.

After 2-3 hours the orchestration took an average of 2000 milliseconds to execute, after 8 hours already 5000 milliseconds!!! This continued without getting better again.

 

I did very detailed monitoring of this environment and finally found the problem…

 

The problem is related to SQL 2005 SP2.  This version of SQL contains a bug, having the TokenAndPerUserStore cache not cleared… As this cache gets bigger and bigger queries take longer and longer to complete (These cache entries are used for cumulative permission checks for queries).

When the response times became high (> 5000 milliseconds after hours of testing), I cleared this cache.  The result was immediate: performance went back to normal!!!

 

This bug is fixed with a cumulative update package or by installing SP3 of SQL Server.

Tags: , ,

BizTalk | Performance

Permalink | Comments (7)

BizTalk and SQL network optimization

by Peter Borremans 30. November 2009 19:28

This article http://msdn.microsoft.com/en-us/library/cc558565(BTS.10).aspx explains how to optimize network performance for BizTalk servers.

I tested this BizTalk network optimization on a SQL Server cluster.
The result was that the SQL server was significantly faster than 3 other reference servers!
After removing the optimization, the SQL server (that was faster before) performed exactly the same as the other 3 reference servers.
The performance gain was most visible in response times (30% faster on our test environment, for small queries). If you have to setup a low latency environment, this network optimization can help lowering latencies.

Peter Borremans

Tags: , , ,

BizTalk

Permalink | Comments (5)