Академический Документы
Профессиональный Документы
Культура Документы
- Simple Talk
54932 views 43 5
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 1/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
Network problems
Network performance issues broadly break down into
problems relating to the speed of responses across
the network (latency) or to the capacity of the network
(bandwidth) i.e. how much data it can transmit in a
set time.
Latency
Latency is the time it takes to send a TCP packet
between the app and the SQL Server. You incur
latency on the way up to the DB and on the way down.
People generally talk about latency in terms of round
trip times: i.e. the time to get there and back
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 2/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
Figure 1
Bandwidth
The amount of data that can be sent or received in an
amount of time, normally measured in kb/s or Mb/s
(megabits per second).
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 3/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
Figure 2
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 4/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
Figure 3
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 5/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
Using Wireshark
We can use Wireshark to capture the network tra c
while the work ow is executing. Using Wireshark
allows us to lter out non-application tra c and look
at the time difference between all the packets in the
work ow.
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 6/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 7/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 8/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 9/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 11/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 12/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
In Conclusion
Make sure you work out where your problem is before
you spend a lot of time and money on a possible
solution. We’ve seen companies spend vast amounts
of money and man hours optimizing SQL queries,
when their biggest problems have been application
performance issues. Conversely, we’ve seen
companies putting more and more RAM or CPUs into
a SQL server when this will never make up for the
extra time the network latency is adding. If you can
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 13/14
10/10/2019 Why is My Database Application so Slow? - Simple Talk
https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 14/14