General developer forum

Dev server performance tips (Windows)

 
Picture of Ole Frank Jensen
Dev server performance tips (Windows)
 

I'm running moodle 3.0.9 on WAMP64 (win 7, i7, 8gb ram) and it's veeeery slow!

I would much appreciate tips on how to improve speed. What can I do?

  • more ram?
  • install ubuntu?
  • external dev server node?
  • other...?


How are you guys working? Please share your tips here smiler


PS. I also made a thread in "Hardware and performance" but the topic seems just as relevant in this devlopment forum.


 
Average of ratings: -
Picture of Ole Frank Jensen
Ang: Dev server performance tips (Windows)
 

For starters I found this link which describes how to configure OP Cache in PHP:

https://docs.moodle.org/32/en/OPcache


It doesn't seem to affect performance though...

 
Average of ratings: -
Brian
Re: Dev server performance tips (Windows)
Group Particularly helpful Moodlers
My home dev environment is i7 quad core, 16gb, Windows 10, and it will happily run multiple ubuntu servers with wordpress, laravel and moodle.


Vagrant is probably the best starting point.  Install virtualbox and vagrant, and then "borrow" someone else's server environment such as https://github.com/michael-milette/vagrant-moodle-development

Personally I would double your memory if you also use the pc for office work, but if you can give 2 cores and 4GB of ram that should be enough to see what the performance is on your pc.

Vagrant makes the setting up of shared folders (e.g. do your code editing on the windows pc, run the code on the vagrant server)


Another alternative is to use docker, which is less resource hungry but might be a step too far and isn't necessary if vagrant is fast enough.  Here are a couple of docker environments: https://github.com/lucisgit/docker-moodle-dev  and https://github.com/playlyfe/docker-moodle.

At work I do all my development on a quad core i5, and it happily runs multiple servers at the same time (Ubuntu 16.04 Desktop rather than Windows) using docker.  


Note: at the moment docker seems to have serious file and performance issues on Mac OS X.  If you do go the docker route it's probably best to avoid Macs until the new file system is out this autumn.

 
Average of ratings: -
Brian
Re: Dev server performance tips (Windows)
Group Particularly helpful Moodlers

In terms of tuning the vagrant / docker environment, make sure you are running php 7.0.x if possible, or at least 5.6.  


If you are also supporting old versions of Moodle, run those under separate vagrant / docker instances / containers so you don't get compatibility issues but also get the best performance for newer versions of Moodle.

 
Average of ratings: -
Picture of Ole Frank Jensen
Ang: Re: Dev server performance tips (Windows)
 

Thanks a lot Brian. Ill try your suggestions right away smile

 
Average of ratings: -