开发者

How many requests can SQL Server handle per second?

开发者 https://www.devze.com 2022-12-13 09:45 出处:网络
I am using JMeter to test our application \'s performance. but I found when I send 20 requests from JMeter, with this the reason result should be add 20 new records into the sql server, but I just fin

I am using JMeter to test our application 's performance. but I found when I send 20 requests from JMeter, with this the reason result should be add 20 new records into the sql server, but I just find 5 new records, which means that SQL server discard the other requests(because I took a log, and make sure that the insert new records are sent out to sql server.)

开发者_运维知识库

Do anyone have ideas ? What's the threshold number of request can SQL server handle per second ? Or do i need to do some configuration ?

Yeah, in my application, I tried, but it seems that only 5 requests are accepted, I don't know how to config , then it can accept more.


I'm not convinced the nr of requests per seconds are directly releated to SQL server throwing away your inserts. Perhaps there's an application logic error that rolls back or fails to commit the inserts. Or the application fails to handle concurrency and inserts data violating the constraints. I'd check the server logs for deadlocks as well.


Use either SQL Profiler or the LINQ data context for logging to see what has actually been sent to the server and then determine what the problem is.

Enable the data context log like this:

datacontext.Log = Console.Out;

As a side note, I've been processing 10 000 transactions per second in SQL Server, so I don't think that is the problem.


This is very dependent on what type of queries you are doing. You can have many queries requesting data which is already in a buffer, so that no disk read access is required or you can have reads, which actually require disk access. If you database is small and you have enough memory, you might have all the data in memory at all times - access would be very fast then, you might get 100+ queries/second. If you need to read a disk, you are dependant an you hardware. I have opted for an UltraSCSI-160 controller with UltraSCSI-160 drives, the fastest option you can get on a PC type platform. I process about 75'000 records every night (they get downloaded from another server). For each record I process, the program makes about 4 - 10 queries to put the new record into the correct 'slot'. The entire process takes about 3 minutes. I'm running this on an 850 MHz AMD Athlon machine with 768 MB of RAM. Hope this gives you a little indication about the speed.


This is an old case of study, now there is 2017, and 2019 I am waiting to see what will happens

https://blogs.msdn.microsoft.com/sqlcat/2016/10/26/how-bwin-is-using-sql-server-2016-in-memory-oltp-to-achieve-unprecedented-performance-and-scale/

SQL Server 2016 1 200 000 batch requests/sec Memory-Optimized Table with LOB support, Natively Compiled stored procedures



How many requests can SQL Server handle per second?


To get benchmark tests for SQL Server and other RDBMS, visit the Processing Performance Council Web


You can also use Sql Server profile to check how your querys are executed

0

精彩评论

暂无评论...
验证码 换一张
取 消