Last post Nov 30, 2009 07:44 AM by integrasol
Nov 29, 2009 10:40 PMfirstname.lastname@example.org|LINK
I use JMeter to test my web application. and my test case is to add a record in database. and then I set the "number of thread user" to 20, it means that it will simulate 20 users work at the same time. and then I run the test case. But finally i found the
system didn't create 20 records in database, but instead just create 13 records in database. I want to know why this happened ? Is it possible that because in my web application i didn't add a "synchronized" in front of the add records method ? I used linq,
If two user post a request to create a record to server at the same time, what will happen? Just create a record or can successfully create two records, or unknown ?
yeah, but I would like to know, if i need to apply synchronized mechanism in my web application? for example, there is a function to create a record in database, let's say CreateRecord(). and if two internet user post a form to call this function at the
same time, if i didn't implement "synchronized" mechanism, then what will happen ?
jmeter performance c# database duplicate
Nov 30, 2009 07:44 AM|integrasol|LINK
It really depends on your code and how much load is on the database server. It seems to me that 7 records got dropped, possibly because of timeouts when trying to add the records.