Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

PHP Anyone use Scotch box. Do you know how to speed up the VM?

TopSilver

Bronze Coder
Just setup scotch box for Xenforo 2 development just last night into this morning. I put the RAM on the virtualbox at 4 gb and 4 cores but it still runs slow. There was also a line your supposed to comment out in the vagrant file and I also did that. But it still runs fairly slow.

Any tweaking techniques for virtual box VM you have in mind?
 
I don't personally use Scotch Box or any virtualbox machine for development anymore so this is a bit of a shot in the dark. Have you tried changing the sync type of the folder to NFS if it isn't already?

Edit: It might help if you let us know things about your host machine like OS.
 
I don't personally use Scotch Box or any virtualbox machine for development anymore so this is a bit of a shot in the dark. Have you tried changing the sync type of the folder to NFS if it isn't already?

Edit: It might help if you let us know things about your host machine like OS.

Yeah that was the line I mentioned you should comment out in the vagrant file to speed it up. I did and commented the other one out like I was supposed to but it still runs slow. My operating system is Windows 10. My computer has 8 GB of ram and to keep it from going into the red area I set it to 4 gb. I honestly feel like that should be enough and something else is going on here but I'm not 100% sure. It shouldn't be as slow as it currently is for that much RAM.

I was thinking there were other settings for the VM I could use to make it faster.
 
Any tweaking techniques for virtual box VM you have in mind?

THE GOLDEN RULE:
Use Linux, not Windows - for all servers :)
That's the best speed improvement you will ever, ever achieve. All other recommendations are secondary :)

One thing to keep in mind is that a good VM needs a great computer, and a great VM needs an even better computer.
You can take this logic and apply it to RAM - If your computer has 16GB of RAM, you should probably limit your VM to 4GB or less, and if your computer has 8GB of RAM then give your VM 2GB. This is a general rule and not precise - but basically if your VM has too much memory or even an equal amount, there are times where your normal computer can't properly run anything because it isn't able to access enough resources. On the other side if your VM has too little memory your computer will function fine but your VM might not have enough to do anything.

Remember - 4GB of RAM is hardly anything. Most modern day computers are running 8GB as the new minimum for a lot of software and games, with 16GB being the recommended amount. I have 16GB of RAM on this laptop with an i7 processor, but even this will be outdated in another 4-6 years. Computers are always changing and hardware requirements are always going up.

You can try reducing the disk space given to the VM because sometimes a large VM, even when not fully used can get slow and buggy when it's given too many resources. This is especially true with older VM systems, older hardware, etc.

You said you're on windows, so you can try defragging your HD - if you haven't done this in a while, you definitely should.

You can try pausing or fully stopping anti-virus, file scanners, and other "in the background" software that hogs resources.

I also recommend upgrading your hard drive to SSD if you are using an older disk drive. SSD loads up in the blink of an eye and can run a LOT faster.
 
Thanks for the tips guys but I decide on continuing to use XAMPP. It's much better in my opinion and runs much faster when you change the local host in the host file from local host to 127.0.0.1

This seems to be the best I can get. If anyone has any idea to get it running as fast as it does on an actual live website please do share and let me know it's much appreciated. Thanks.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom