I have an ASP .Net website hosted on azure cloud (previously in godaddy shared hosting) The site is basically a multi user test website where users login and take online tests.
The site loads all the questions(40 numbers) of the test at once and shows one after one to the user using javascript show/hide. And every selected answer should be confirmed immediately using a confirm button which makes an ajax call to save the answer to the server.
Now both the hosting providers give me the same kind of problem. When there are so many concurrent users (I think) the answers do not get saved(ajax calls) and when the final submit button is clicked (postback) the page just hangs. So it must be an issue with my code.
I created a new instance of the web role yesterday and the first 60+ tests ran without any issues and few users reported errors in the evening. So I'm guessing some memory leak or some accumulation of some sort.
I use LINQ to SQL for database operations.
The real problem is I do not know how to replicate this (Load testing?) in our development machines.
Any advice or hint of any sort is appreciated.
(Please let me know if you need further information on the code or other details)