Stress Test

Meckat och trixat med apache2 och php7.2 varit skoj 🙂 Slängt upp sajten lite snabbt fortfarande lite småproblem.  måste fixa till .htaccess så permalänkarna funkar grrrr!!
[email protected]:~# python ps_mem.py
 Private  +   Shared  =  RAM used       Program

232.0 KiB +  47.5 KiB = 279.5 KiB       atd
212.0 KiB +  86.5 KiB = 298.5 KiB       htcacheclean
264.0 KiB +  34.5 KiB = 298.5 KiB       sftp-server
308.0 KiB +  32.5 KiB = 340.5 KiB       agetty
340.0 KiB +  96.5 KiB = 436.5 KiB       cron
504.0 KiB +  92.5 KiB = 596.5 KiB       lvmetad
620.0 KiB +  29.5 KiB = 649.5 KiB       lxcfs
524.0 KiB + 193.5 KiB = 717.5 KiB       irqbalance
652.0 KiB + 361.5 KiB =   1.0 MiB       systemd-timesyncd
  1.0 MiB + 444.5 KiB =   1.4 MiB       systemd-logind
  1.0 MiB + 419.5 KiB =   1.4 MiB       systemd-resolved
  1.3 MiB + 246.5 KiB =   1.5 MiB       dbus-daemon
980.0 KiB + 741.0 KiB =   1.7 MiB       sudo (2)
  1.1 MiB + 976.5 KiB =   2.1 MiB       accounts-daemon
  2.1 MiB + 193.5 KiB =   2.3 MiB       systemd-networkd
  2.4 MiB + 146.5 KiB =   2.5 MiB       rsyslogd
  1.5 MiB +   1.1 MiB =   2.6 MiB       polkitd
  3.2 MiB +  83.5 KiB =   3.3 MiB       systemd-udevd
  3.7 MiB + 124.5 KiB =   3.8 MiB       redis-server
  2.4 MiB +   5.6 MiB =   8.0 MiB       sshd (7)
  5.3 MiB +   3.1 MiB =   8.5 MiB       systemd (3)
  7.7 MiB + 826.5 KiB =   8.5 MiB       networkd-dispat
  7.7 MiB +   1.4 MiB =   9.1 MiB       bash (4)
  9.2 MiB + 844.5 KiB =  10.0 MiB       unattended-upgr
 21.2 MiB +  24.5 KiB =  21.2 MiB       snapd
 20.6 MiB +   4.6 MiB =  25.2 MiB       apache2 (3)
 14.7 MiB +  12.2 MiB =  26.9 MiB       systemd-journald
135.9 MiB + 318.5 KiB = 136.3 MiB       mysqld
392.7 MiB +  59.3 MiB = 452.0 MiB       php-fpm7.2 (21)
---------------------------------
                        732.7 MiB
=================================
[email protected]:~#
[email protected]:/etc/apache2/sites-available# ab -n 15000 -c 20 http://libu.se/index.php
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking libu.se (be patient)
Completed 1500 requests
Completed 3000 requests
Completed 4500 requests
Completed 6000 requests
Completed 7500 requests
Completed 9000 requests
Completed 10500 requests
Completed 12000 requests
Completed 13500 requests
Completed 15000 requests
Finished 15000 requests


Server Software:        Apache/2.4.29
Server Hostname:        libu.se
Server Port:            80

Document Path:          /index.php
Document Length:        0 bytes

Concurrency Level:      20
Time taken for tests:   89.559 seconds
Complete requests:      15000
Failed requests:        0
Non-2xx responses:      15000
Total transferred:      4380000 bytes
HTML transferred:       0 bytes
Requests per second:    167.49 [#/sec] (mean)
Time per request:       119.412 [ms] (mean)
Time per request:       5.971 [ms] (mean, across all concurrent requests)
Transfer rate:          47.76 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    7   5.9      6      57
Processing:    73  112  14.1    110     263
Waiting:       72  112  14.1    110     263
Total:         80  119  14.5    118     264

Percentage of the requests served within a certain time (ms)
  50%    118
  66%    123
  75%    126
  80%    129
  90%    137
  95%    146
  98%    156
  99%    164
 100%    264 (longest request)