Is there PHP script to test how many users hosting can handle

Alex D.

Supreme Member
Joined
Sep 22, 2017
Messages
1,350
Reaction score
705
I want to test how many users my hosting can handle at one time. Is it possible with PHP?
Currently I use namecheap and hostgator. I want to know their limits.
 
There is no general tool that will measure how much users you can host.

It depends on many variables. What scripts will the users host, what kind of websites and content, how much traffic will they have etc...

For example if your customers have only static company websites you can host maybe 100+, but it can also happen that 1 user with heavy scripting to take all server resources.
 
Apache do a free load testing tool thats probably what you are looking for?
 
See the mothly bandwich in the host e.g. 10gb.

See how big the page is - you can use speed checker tool as gtmetrix. e.g. 7mb

Divide 10240 on 7.

For how many users it can handle together lol. Try with 100 (100 threads on any traffic bot with good proxies) and check processor time in the hosting control panel - if go in red = above the limit and it eating from processor time quota wich is not good. But the host may block over some number of requests together so first ask them if there have such limit.

Making multithread bot in php is hard task. As I read in the past it is possible with batches.
 
You mean jmeter? Looks complicated, any tutorial for it?

Yep. It pretty easy. Probably loads of YouTube stuff about it. Although keep in mind unless you go through loads of proxies it will never be an accurate test as your host / Apache probably limits X amount of connections from an IP address
 
Yep. It pretty easy. Probably loads of YouTube stuff about it. Although keep in mind unless you go through loads of proxies it will never be an accurate test as your host / Apache probably limits X amount of connections from an IP address
Yes it can be done this way, but still is not an accurate method by any means.
 
On a shared web hosting it would be hard to get the accurate metric you are after.
Benchmarking comes handy when you are on a VPS / dedicated with a specific application / website.

Jmeter is indeed one of the best solution to test it out but there is a learning curve. (it is Java built and can run on all OS).

On mac you have Throng which is rather handy to get a quick grasp while monitoring server load, to get an idea on how the website will behave prior to the production environment.
 
Back
Top