Recently we get a lot more traffic to our webserver and sometimes it doesn't respond anymore. We have changed some settings and to get an idea of what our server can handle I've run some ab tests.
We changed the my.cnf to the my-large.cnf (http://fts.ifac.cnr.it/cgi-bin/dwww/usr/share/doc/mysql-server-5.0/examples/my-large.cnf.gz) and set the maximum connections to 350
The problem is that I'm not sure if the results mean that it can handle a lot (a 1000 simultanious users) or not?
if run a test like this:
ab -n 10000 -c 100 www.mysite.com
I get a result like this
Server Software: Apache/2
Server Hostname: www.mysite.com
Server Port: 80
Document Path: /
Document Length: 29311 bytes
Concurrency Level: 100
Time taken for tests: 704.062 seconds
Complete requests: 10000
Failed requests: 1634
(Connect: 0, Receive: 0, Length: 1634, Exceptions: 0)
Write errors: 0
Non-2xx responses: 1634
Total transferred: 255952902 bytes
HTML transferred: 251613362 bytes
Requests per second: 14.20 [#/sec] (mean)
Time per request: 7040.615 [ms] (mean)
Time per request: 70.406 [ms] (mean, across all concurrent requests)
Transfer rate: 355.02 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 11 16 3.1 15 105
Processing: 91 6998 16245.3 5384 237924
Waiting: 90 6814 15642.3 5296 237923
Total: 105 7014 16245.3 5399 237939
Does this mean the server should be able to handle 10000 user?
Our server specs:
- Intel Xeon Quad Core
- 1GB Dedicated RAM
- 2GB SWAP RAM
I would think this should be able to handle some traffic?