Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test your website against multiple users(extended)

There is similar question on this topic I participated in it, but it doesn't really answer what I need at this moment.

How to rigorously test a site?

I noticed java.util.ConcurrentModificationException in my server log, so I fixed that one, but I still don't know if this or some other concurrency will ever occur without testing it.

I've tried to create test in jmeter which just does simple GET and simulates 100 users.

The problem :

I retrieve some information from server when page is done loading, so I'm interested in that part(because that part cause this exception before).

But jmeter gets only the page when its loaded, and all ajax pending requests if any are not displayed in the logs. Actually I can't see anything in logs because, jmeter never reaches these ajax calls when document is ready, it exits just before that.

Naturally when I refresh page from browser I can see logs, what exactly is going on on the server side. Is there a some kind of tool, that waits for all pending requests or can stay on the website for n amount of time, or is there a smarter way to test this to avoid further concurrency exceptions.

like image 660
ant Avatar asked Nov 29 '25 03:11

ant


1 Answers

AJAX requests are simple GET requests as well, so you just need to configure JMeter to directly call the servlets which serve them.

like image 95
Aaron Digulla Avatar answered Nov 30 '25 16:11

Aaron Digulla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!