Hey there!
My forum experiences some slow-down on pages load since several weeks (only on XHR GET requests). We have a self-hosted server and we know very well its specs. I already began to investigate on the engines side (php-fpm, mariaDB, nginx) but nothing relevant for the moment, although I suspect mysql to be the culprint.
The only aspect I don't really master is the Flarum API requests themselves, which have a really bad response time (>1000ms). So I'd like to figure out how to test those requests directly within our VM, to verify if it's totally a backend problem or not.
For example, how could I benchmark something like GET localhost/api/discussions/346-blablabla?bySlug=true&page[near]=9 in a CLI way?
Thanks!
Flarum core 1.1.1
PHP version: 7.3.31-1~deb10u1
MySQL version: 5.5.5-10.3.31-MariaDB-0+deb10u1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, sodium, session, standard, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, json, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+-------------------------------+---------+--------+
| Flarum Extensions | | |
+-------------------------------+---------+--------+
| ID | Version | Commit |
+-------------------------------+---------+--------+
| flarum-tags | v1.1.0 | |
| flarum-markdown | v1.1.0 | |
| the-turk-flamoji | 1.0.2 | |
| kyrne-websocket | 3.3.0 | |
| fof-user-directory | 1.1.0 | |
| fof-user-bio | 1.0.1 | |
| fof-upload | 1.0.7 | |
| fof-terms | 1.1.2 | |
| fof-split | 1.0.1 | |
| fof-reactions | 1.0.2 | |
| fof-nightmode | 1.1.1 | |
| fof-merge-discussions | 1.0.0 | |
| fof-links | 1.0.3 | |
| fof-linguist | 1.0.3 | |
| fof-formatting | 1.0.2 | |
| fof-drafts | 1.0.3 | |
| fof-doorman | 1.0.1 | |
| fof-byobu | 1.0.2 | |
| flarum-subscriptions | v1.1.0 | |
| flarum-sticky | v1.1.0 | |
| flarum-statistics | v1.1.0 | |
| flarum-nicknames | v1.1.0 | |
| flarum-mentions | v1.1.3 | |
| flarum-lock | v1.1.0 | |
| flarum-lang-french | v3.3.0 | |
| flarum-lang-english | v1.1.0 | |
| flarum-emoji | v1.1.1 | |
| clarkwinkelmann-circle-groups | 1.0.0 | |
| askvortsov-saml | v2.4.0 | |
| askvortsov-rich-text | v2.1.0 | |
| askvortsov-markdown-tables | v1.2.1 | |
| askvortsov-checklist | v1.3.1 | |
+-------------------------------+---------+--------+
Base URL: https://<private>
Installation path: /var/www/flarum
Queue driver: redis
Mail driver: smtp
Debug mode: off