Skip to main content ↑ ↓
Recent Posts
31
Bug Reports / Re: Slow Page Load time
Last post by Hj Ahmad Rasyid Hj Ismail -
Edited: Only some like redis didn't show status. I'll test more later.

In the meantime, I think "memcache" is broken / wrongly detected, as setting it breaks the forum. Others seemed fine but Redis is not showing status as mentioned above.
32
Bug Reports / Re: Slow Page Load time
Last post by Spuds -
In the Admin area where you set the cache engine check the "cache status" section (new in 2.0) it will show you some details of what the cache is doing and most importantly if its working.  The miss rate will be high on a test site with no real traffic, but it will show that it connected and using the cache.
34
Bug Reports / Re: Slow Page Load time
Last post by Spuds -
Interesting finding on the cache, I'll have a second look at the cache off code. 

Definitely worth the time setting up Gzip for your static (txt based) assets, it will make a nice improvement to your sites.

Elk20 does have support for Redis cache I've not used it myself other than some basic tests.
35
Bug Reports / Re: Slow Page Load time
Last post by Hj Ahmad Rasyid Hj Ismail -
Sighed. It was server settings for caching. Simply setting it to 1st level file based caching fixed the problem. Minor 0.015-0.020 delay from 1.1 but that is negligible.

It was Firefox default Google Ai that pointed the possible "caching" issue, in cross reference to our old topic:
https://www.elkarte.net/community/index.php?t/Problem-with-all-posts-timing-out---resolved-by-editing-Settings.php-2079

Also, just to note, I researched back and I found out that I didn't use gzip setup for quite sometimes, but I will definitely will study it back later.

My plan is to setup Redis and all out using it, for my project.
36
Bug Reports / Re: Slow Page Load time
Last post by Hj Ahmad Rasyid Hj Ismail -
Ok. I think the static files could be the issue too, and I will dig deeper on that.

Internally, mysql connections, they are both very fast:
time mysql -h 127.0.0.1 -u USER -p'PASS' -e "SELECT 1;"
Quotereal    0m0.068s
user    0m0.036s
sys     0m0.018s
time mysql -h localhost -u USER -p'PASS' -e "SELECT 1;"
Quotereal    0m0.066s
user    0m0.037s
sys     0m0.013s
37
Bug Reports / Re: Slow Page Load time
Last post by Spuds -
I was using curl to grab one of the hive css files and I did notice that nginx does not seem to be compressing the files, so check if your nginx.conf file has something like:
Code: [Copy]
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_vary on;
gzip_proxied any;
gzip_types
  text/css
  application/javascript
  text/javascript
  application/json
  image/svg+xml
  font/ttf
  application/vnd.ms-fontobject;
Just getting a static file from the server was slow and that has nothing to do with the ElkArte front end.  Some of that is also having a lot of network to traverse between me and you.

Other than that seeing 3-5 seconds on 17 queries maybe a slow connection to your db?  If the db server setting is a hostname that may cause a DNS lookup for each connection which would be slow.  You can try to measure it with:
Code: [Copy]
time mysql -h localhost -u USER -p'PASS' -e "SELECT 1;"
time mysql -h 127.0.0.1 -u USER -p'PASS' -e "SELECT 1;"

Can also check if the db is doing rDNS lookups, at least for MariaDb it should have skip-name-resolve in its conf file (assuming everything is on the same server)
38
Bug Reports / Re: Slow Page Load time
Last post by Hj Ahmad Rasyid Hj Ismail -
Yeah. Weirdly slow. Even when refreshed. I can see this site is way faster. You will be shocked if you know how much vrams and vcpus I have assigned for this server vm, even its storage is on enterprise nvme, so yes, I should finished restructuring to see whether something else are bothering / disturbing.