Slow first bit 8.0.3 + nginx + php7-fpm + mariadb

Permalink
Hi,

I Decided to try out concrete5 (v 8.0.3) after some time. I wanted to see how well the new version runs with all the latest related technologies. I have php 7.1.0, mariadb 10.1.20, nginx 1.10.2 installed on my macbook-pro. I don't think there is anything unusual with my setup. Everything installed with homebrew and not tweaked too much as this is the dev machine.

However, I am experiencing some serious lag with the page load with c5 applications. It takes around 3 to 10 seconds for any page to load. eEspecially the time between the request and the first received bit seems to be always at least 3 seconds. For example, if I am logged in as an admin and I click the dashboard-menu button, it takes around 3 seconds to load. It's one request to /index.php/ccm/system/panels/dashboard?cID=1 The test site is just blank install of concrete5.

On the other hand, I made a simple test-script which uses php to connect to mariadb and do simple select from my c5 site's database and that loaded super fast.

Just in case I also tried with the legacy c5 version 5.7.5.13 and apparently it has the same 3 second lag problem.

Here is my nginx conf related to the test site:
server {
  listen        80;
  server_name   <server_name_which_points_to_localhost>;
  root <web_root_of_the_project>;
  index index.php;
  location / {
    try_files $uri $uri/ /index.php$request_uri;
  }
  location ~ \.php($|/) {
      set $script $uri;
      if ($uri ~ "^(.+\.php)(/.+)") {
        set $script $1;
      }
      include fastcgi_params;
      fastcgi_read_timeout 120;


Anyone had similar problems? Any ideas where to start solving the problem?