Hello,

I have a Drupal 8.6.x running on a VirtualBox with Ubuntu 16.06 (8GB RAM, 2CPU) PHP7.1 and MYSQL 5.7.x running very very slow, every page load takes around 10-15s. I have all caches disabled and debug enabled in settings.local.php

This is making development terribly slow :(

Please help!

Comments

lluisandreu created an issue. See original summary.

cilefen’s picture

Title: Drupal 8 development terribly slow » How to troubleshoot Drupal 8 performance on VirtualBox

Is the source code in the VM or on the host system?

lluisandreu’s picture

The source code is in the VB but is a shared folder with the host:

Guest: /media/sf_data with symlink to /var/www/data/drupal
Host: Users/xxx/data/drupal

cilefen’s picture

Status: Active » Fixed

So we are getting out of scope for this issue queue.

On the assumption this setup is using VB’s default file sharing: it performs horribly for apps with many files, such as Drupal 8. The usual cure is NFS. There are many posts out there about it. 9 times out of 10 devs use VB with Vagrant. It’s a simple 2-line fix in that case: https://stackoverflow.com/questions/12161425/why-is-my-symfony-2-0-site-...

In any case I am marking this one fixed. If more support is needed: try asking in Slack or in IRC in the #drupal or #drupal-support channels. Also, the Support forum and Drupal Answers on StackExchange can be helpful.

Good luck!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

leisurman’s picture

I started to get slow performance on a drupal site once I installed nodejs and gulp. I had to do this because the drupal bootstrap 4 barrio sass subtheme requires nodejs/gulp. Then I ran into issues with vagrant on Windows and npm install commands. All npm install commands fail because they create sym links and Windows OS does not recognize these links. I had to create a sym link to the sites node_modules folder over to my vagrant home directory. npm install comands work after doing this. But then I started noticed the very slow response on this website. My other site run fast.