-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Meteor when AVG Antivirus is installed cause 20-30 seconds between refreshes #5691
Comments
I would imagine this is not unique to AVG. Most avs will hook JavaScript execution and will rescan every of the thousands of files that gets created when meteor compiles. One should be able to avoid this by whitelisting the meteor exe / the projects directory. |
@running-coder Are you saying that you work with Meteor (at work) on Windows and you get ~1 sec refresh times? Because I've been having problems with extremely slow refresh times on Windows without having any kind of antivirus installed. And from what I've seen, everyone else has. |
Yes, ~1 sec refreshes at work (always been super fast on that environment) using Windows7. My issue was at home on Windows 7 also. I've tried to update to Windows 10 thinking it was maybe a firmware issue with some version I was running but even after the update I was getting the same issue. Finally found out after having the Task Manager opened by accident... The nodejs application was increasing in % (which is expected) but that AVG software was going through the roof. Perhaps that could also be a way to debug your refresh rate issue. As rozzzly mentionnend and kind of software that re-scan your files may have caused it. |
Does anyone have any ideas about how we can address this? I'm not sure what we could do to stop an antivirus program from slowing down Meteor. |
I don't think it's an antivirus. I don't have any installed and it still happens to me. I opened task manager and noticed that the "Evented I/O for V8 JavaScript" task went up to like 15% in CPU use from 0.3% after saving a file. And this is with a freshly created project with the default files. I'm not sure if that's normal. I have an i7 CPU with 8GB of RAM and I'm writing the files on an SSD so it's definitely not the hardware's fault. I had to install a Linux distro AND make a Hackintosh just because of Meteor's poor build times on Windows. |
@stubailo do you know if meteor writes temp files (if any) during compilation on Windows? Most major AVs with runtime protection hook into the kernel and intercept system calls so they monitor every file creation, process created, etc. They treat certain files differently; one facet of that is based on the directory and file type. For instance the Edit: @running-coder what versions of node are you using at work/home? and are you using CMD, mingw, cgywin, etc to run your |
I'm launching Meteor from the CMD prompt without admin privileges on both Work/Home setups. Both have the project directory located on Let me know if you need more info |
@running-coder First off, thanks for the detailed response. 👍
|
@rozzzly Meteor on Windows, just like Meteor on Linux and Mac, has its own hidden version of Node, so it doesn't interact with the globally installed Node at all. The version of Node installed on the system shouldn't affect anything related to Meteor. |
Wait, this 1 second is for a browser refresh or a Meteor recompilation after some file edit @running-coder? |
A temporary solution I added http://localhost:3000/ to the exceptions list in AVG (advanced settings). It reduced the the refreshing time from 10~ seconds to 1~ second. |
I tried everything... but it is far from ~3 seconds. Can someone post the output of the command below on a new Meteor project or Wekan, just for comparison? @running-coder @ozsay set METEOR_PROFILE=50 & meteor Here are my timings for a new project, editing the .js file in Win 8.1 64bits / i7 950 3Ghz / 6Gb RAM / SSD: => App running at: http://localhost:3000/ | Selecting package versions | sqlite seems too slow.. Thanks |
I profiled the server initial startup, client modified and server modified. Win 7 64bit SP1 | meteor 1.2.1 | i5 750 2.6Ghz | 8gb RAM | HDD => Started proxy. => App running at: http://localhost:3000/ | => Client modified -- refreshing |
@fabiodr I've created a new app using meteor create myapp ran from windows cmd without admin privileges, here is the dump (the first is from the initial build, the second is from the subsequents):
=> Started proxy. => App running at: http://localhost:3000/ Terminate batch job (Y/N)?
=> Started proxy. |
Thanks!! But from the outputs you sent, it is getting more than 5 seconds at least. Not counting the browser refresh. I installed Ubuntu with dual boot just to see the timing there and i couldn't get less than 6 seconds. I don't know if anyone can, sqlite takes more than 1.5 sec for each operation no matter how powerfull the computer is, based on the outputs people have sent out there. |
This is a duplicate of #5644. Closing in favour of that. |
Just wanna throw it out there...
So I've been using Meteor for quite some time now (just updated to 1.2.1) and I couldn't figure out why it was refreshing fast (~1 sec) at work and slow at home (~20-30 seconds). I just happened to have windows task manager opened while working on my app to see that AVG was taking up to 40% of my CPU upon Meteor refreshes. I silenced the AVG program and now the application loads just as fast as it should be. This is really a game changer since it was painful to refresh every time and I was quickly loosing interest for developing at home!
Perhaps this will help other people that still have the problem.
Thanks
The text was updated successfully, but these errors were encountered: