I want to know, โhow many users can my site use?โ, When I tested 50 threads, the processor on my server increased, but not the connection log (it showed only 2 connections). Also the use of bandwidth is not much
First, what compounds do you mean? Apache, DB, etc.
Secondly, if you want to find out how many users your current setup can help you, you need to create a profile or traffic model that the average user will do on your site.
For instance:
Say 90% of the time they will search for something 5% of the time they will purchase x 5% of the time they login.
After you have defined your "Traffic Model", implement it in jMeter, then start increasing your load in increments of several times, i.e. run your load test for 10 minutes with x users, after 10 minutes increase that number and so on until you find your breakpoint.
If you draw your answers, you will see two main things:
1) The optimal response time / number of users before service degradation 2) The roll-over point, that is, at what point do you start returning 503, etc.
You will now have enough data to scale your site or to improve performance in terms of code.
source share