Magento 2的运行速度非常慢(开发人员模式) [英] Magento 2 goes terribly slow (Developer mode)

查看:820
本文介绍了Magento 2的运行速度非常慢(开发人员模式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始开发magento 2项目.

Recently I started developing magento 2 projects.

首先,我在Windows上使用xampp进行了尝试,这真是一团糟...每个刷新页面都是一场噩梦,加载该页面大约需要30-40秒.我了解到,Windows系统文件使用magento的速度非常慢,因为它具有较大的结构,而这篇文章几乎是在强迫您使用linux在magento项目上进行开发.

First I tried on Windows with xampp and it was a mess... every refresh page was a nightmare, about 30-40sec to load the page. I read about it, that Windows system files is so slow working with magento because the large structure it has, and the article almmost was forcing you to use linux for developing on magento projects.

问题是我需要仅适用于Windows的其他公司应用程序的Windows,我尝试使用Virtualbox安装虚拟机,但性能有所改善...但是我在虚拟机上工作的事实让我很生气...

The problem is I need Windows for another company apps that only works on Windows, I tried to install a virtual machine with Virtualbox, it improved a bit... but the fact I'm working on a virtual machine pissed me off...

我正在使用的下一个解决方案是使用流浪汉.好的,我以这种方式发展感觉很好,但是一直进展缓慢... 15到20秒...

The next solution and I'm working currently, is using vagrant. Okay, I feel good developing on this way but it keeps going slow... 15-20s...

我在Vagrant上的配置是5120MB(个人电脑有8GB),并使用了我所有的个人电脑4核.

我在这样的工作中感觉很糟糕...当我在以前的项目中使用symfony/Laravel/Codeigniter时,感觉就像是

I'm feeling so bad working like this... when I was working on my previous projects, with symfony/Laravel/Codeigniter, was like:

编写一些代码行,在浏览器中使用Tab键,然后按F5,立即查看更改.

write some lines of code, tab to browser, F5, INSTANTLY see changes.

在M2上:写一些代码行,在浏览器中按Tab键,F5,等待...等等...好吧,现在它刷新页面,但是它没有加载,等待...等等... hmmm差不多. . 好的.没有任何变化,但我清除了缓存...哦,我猜我也必须删除静态文件.去吧...再等一次...

On M2: write some lines of code, tab to browser, F5, wait... wait... okay now it refreshes the page, but it's not loaded, wait... wait... hmmm almost... okay. No changes but I cleaned the cache... ohhh I guess I had to remove static files too. Go for it... wait again...

上帝... M2前进得更快吗?我只问5s或类似的东西...只是我一直呆呆地看着屏幕一直在等待...

God... There's no way M2 goes faster? I'm only asking 5s or something like that... it's just I'm feeling so dumb looking the screen waiting all the time...

为了声明,我只要求开发模式,我尝试不得不在生产模式下安装另一个magento项目以更快地测试事物,然后与地狱相比还可以开发人员模式...因为... omg ...只需尝试一次又一次地执行订单工作流程...

For aclarations, I'm only asking for development mode, I tried had to install another project of magento on production mode for testing things faster and then it's okay fluid as hell compared with developer mode... because... omg... just try to do an order workflow again and again...

仅此而已...我唯一没有尝试过的就是在计算机上使用Linux环境...但这与使用流浪汉一样...我不明白...您如何发展M2开发人员?在特殊的前端开发人员中...我不认为他们的工作方式与我相同...等待20秒以加载页面+清理缓存+删除静态文件等.

Well that's all... The only thing I didn't try is using Linux environment on the computer... but it's just the same as using vagrant... I don't understand... how are you developing M2 developers? in special frontend developers... I don't believe they are working the same way as me... waiting 20sec for loading the pages + cleaning cache + removing static files, etc.

详细信息:我尝试了流浪汉的所有操作,但并没有得到改善,我目前使用的是Ubuntu 15.04,Apache 2.4,PHP 5.6(我尝试过7,但仍然相同)mysql 5.6

Details: I tried everything with vagrant but don't improve, I'm currently on Ubuntu 15.04, Apache 2.4, PHP 5.6 (I tried 7 but still the same) mysql 5.6

这是网络"标签: http://i.imgur.com/HG7mbeX.png

This is the network tab: http://i.imgur.com/HG7mbeX.png

推荐答案

我尝试了所有操作,唯一起作用的是提供bitnami的虚拟机. https://bitnami.com/stack/magento/virtual-machine

I tried everything and the only thing it works is the virtual machine that provides bitnami. https://bitnami.com/stack/magento/virtual-machine

严重的是,我不知道这个虚拟机有什么,但是运行的非常快.我尝试使用全新安装的Ubuntu,CentOS等创建虚拟机.但这种虚拟机无法正常工作.

Seriously, I don't know what has this vm, but goes really fast. I tried creating my VM using a fresh installation of Ubuntu, CentOS, etc. But doesn't work so fine like this VM.

这篇关于Magento 2的运行速度非常慢(开发人员模式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆