meteor / meteor

Meteor, the JavaScript App Platform
https://meteor.com
Other
44.45k stars 5.2k forks source link

Meteor for windows is very-very slow #5091

Closed JWo1F closed 7 years ago

JWo1F commented 9 years ago

_2 Upvotes_ Hi all! Meteor for Windows is very-very slow. When I make a change I should wait for 20-30 seconds while a page reloading..

stubailo commented 9 years ago

Please provide a full reproduction as described in: https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor Without a way to replicate your problem, we can't debug and fix it.

JWo1F commented 9 years ago

Way to replicate my problem:

  1. download meteor from here: https://install.meteor.com/windows
  2. install meteor
  3. run cmd
  4. type: meteor create test
  5. type: cd test && meteor
  6. change one file in this dir
  7. waiting from 20 to 30 seconds while page is reloading..
stubailo commented 9 years ago

OK, we'll look into this! Thanks for the reproduction recipe, it's good to know that you are encountering this issue with a newly created app.

JWo1F commented 9 years ago

image

For example. The same issue in all popular browsers.

stubailo commented 9 years ago

What Windows version are you running?

JWo1F commented 9 years ago

Windows 10 x64 just now, but I had the same issue in windows 8.1

In linux (Ubuntu 15.04 x64 and ArchLinux x64 + KDE) all working perfectly.

Slava commented 9 years ago

Note that the screenshot is featuring a browser that we don't normally test (Yandex Browser). It is supposed to be the same as Google Chrome, but it could be an issue specific to Y.Browser too.

stubailo commented 9 years ago

@JWo1F did say "The same issue in all popular browsers." Hopefully that includes browsers that aren't from Yandex.

JWo1F commented 9 years ago

Yea, @stubailo are right. I have the same issue in Chrome and Firefox (and IE / Edge).

If you need more technical data about this issue, I'll give them.

4thlaurocruz commented 9 years ago

this is a meteor issue, it downloading sources one at a time in debug mode. to fix this add a --production flag

JWo1F commented 9 years ago

@4thlaurocruz in production mode I can't see a full debug information about my files because they will be merged into a single file. It's a bad idea.

bjconlan commented 9 years ago

Yeah, I too am having this issue on meteor 1.2.0.1 using windows 10 (32 bit). Looks like on every js(x) code change the server is verifying the state of the project by doing the entire restart flow.

Selecting package versions
Downloading ... 
Building...
Meteor server restarted

While modifying just the html seems to just show a => Client modified -- refreshing (xX) (while also being very slow)

4thlaurocruz commented 9 years ago

yes and the git version of meteor, minification isnt working at all.

4thlaurocruz commented 9 years ago

linux has this issue as well

stubailo commented 9 years ago

You need to add the package standard-minifiers to get minification, @4thlaurocruz. If you are running from installed Meteor, you get this automatically when upgrading, but not from the checkout.

Please read the notes here: https://github.com/meteor/meteor/wiki/Breaking-changes-in-Meteor-1.2

4thlaurocruz commented 9 years ago

try opening the chrome properties and disable cache. each refresh takes at least 30 to 40 seconds to complete

stubailo commented 9 years ago

@4thlaurocruz what are you talking about when you mean "refresh"? And is this in production or development?

4thlaurocruz commented 9 years ago

this for development, refresh in chrome browser with cache off.

standard minifiers also removed.

in the git master version, js is minified even no --production flag

and meteor only uses one core 100% other cores are not used.

On Fri, Sep 25, 2015 at 12:20 AM, Sashko Stubailo notifications@github.com wrote:

@4thlaurocruz https://github.com/4thlaurocruz what are you talking about when you mean "refresh"? And is this in production or development?

— Reply to this email directly or view it on GitHub https://github.com/meteor/meteor/issues/5091#issuecomment-142977372.

4thlaurocruz commented 9 years ago

and i also seen that when have multiple meteor application with different ports, the first one will be minified, but the rest wont have a one minified js file like the first.

stubailo commented 9 years ago

You should add the standard-minifiers package, maybe that will help?

4thlaurocruz commented 9 years ago

css is okay here, my problem is javascript, it is downloaded one at a time. and it really took ages.

On Tue, Sep 29, 2015 at 8:35 AM, Sashko Stubailo notifications@github.com wrote:

You should add the standard-minifiers package, maybe that will help?

— Reply to this email directly or view it on GitHub https://github.com/meteor/meteor/issues/5091#issuecomment-143910902.

stubailo commented 9 years ago

Since you are developing locally, the network speed between your browser and your local web server should be pretty much instant. I don't see how the network speed could be the issue.

4thlaurocruz commented 9 years ago

im developing remote from google cloud that is why this is a blocker

On Wed, Sep 30, 2015 at 12:42 AM, Sashko Stubailo notifications@github.com wrote:

Since you are developing locally, the network speed between your browser and your local web server should be pretty much instant. I don't see how the network speed could be the issue.

— Reply to this email directly or view it on GitHub https://github.com/meteor/meteor/issues/5091#issuecomment-144114823.

4thlaurocruz commented 9 years ago

this is fixed on top of nginx. but when using meteor binary alone, downloading javascript is a blocker.

On Wed, Sep 30, 2015 at 1:09 PM, Lauro Cruz lauro.cruz@the4thshift.com wrote:

im developing remote from google cloud that is why this is a blocker

On Wed, Sep 30, 2015 at 12:42 AM, Sashko Stubailo < notifications@github.com> wrote:

Since you are developing locally, the network speed between your browser and your local web server should be pretty much instant. I don't see how the network speed could be the issue.

— Reply to this email directly or view it on GitHub https://github.com/meteor/meteor/issues/5091#issuecomment-144114823.

Ice32 commented 9 years ago

Is this problem being worked on? Same thing happens to me...Meteor on Windows 10 takes 15 seconds to reload simplest app possible after changing the file, while on Ubuntu it works like it should. I'm using the latest Meteor version.

rwuttke commented 9 years ago

I am having the same problem on Meteor 1.2.1 it is an extremely long wait from clicking save on a file, waiting for the rebuild, waiting for the websocket, then waiting for it to refresh to the page, yes there is a long time with a blank page in between.

Even changing between routes manually takes a long time.

This used to be smooth as.

isdzulqor commented 9 years ago

Having the same problem, Meteor Js run slowly in my Windows 10, Hopefully it will fixed as soon as possible

shadowzick commented 9 years ago

I'm having this same problem, I'm hoping that it will be fixed very soon.

SamDeacon commented 9 years ago

Same problem here the rebuild is rediculous. windows 8.1 basic app with no packages takes 20 - 60s

(I would use on cloud9 like everything else i do but meteor/mongodb exceeds the workspace ram capacity and the build gets killed)

rapito commented 8 years ago

Same thing happens to me on W10 64bits. Simplest app takes forever to reload, after any server or client side file changes.

This used to be instantly on older version of meteor.

gcacars commented 8 years ago

Same here

weekaah commented 8 years ago

Same here Windows 10 x64. Refreshing takes 10-20sec, even when editing starter meteor app.

greg-ashby commented 8 years ago

Thought it was just me. Guess not :) Windows 10 as well.

SamDeacon commented 8 years ago

Cloud9 now has enough ram on free tier to run meteor without killing the build/serve process

Runs ubuntu... The changes aren't instantaneous like they are on the mac YouTube videos... 5-10 seconds but much less painful than 30-60 seconds locally....

heberallred commented 8 years ago

It would be sooooo nice if Windows Meteor restarted as fast as on Linux. Honestly, I bought a Mac for that 1 reason alone (faster restart on Meteor), and use it strictly for Meteor coding. I would prefer to code in Windows since that's where I have all my other software tools. Restart time taking 20 or 30 seconds per code change change adds up fast. My Mac restarts probably 3 times as fast on code changes, likely because it's Unix based and more native for NodeJS/Meteor.

JoeKnow commented 8 years ago

It would be nice if this was faster.. Engineers like efficiency. This is sufficiently deficient.

TWKDreamState commented 8 years ago

+1 :(

JayLawler commented 8 years ago

me too....

gcacars commented 8 years ago

My tip: don't use Meteor installer for windows. Install meteor from https://github.com/meteor/meteor/wiki/Meteor-on-Windows:-Alternate-installation. It works very fine.

MichaelJCole commented 8 years ago

It's not just Windows. Meteor is slow on Linux too. I have a 500mb/s SSD, and my "builds" are 30 seconds. 10s of that is sqlite. #4284 has some more info.

slaphead commented 8 years ago

I am experiencing the same thing here. Using webstorm or starting from command line does not make a difference. It's meteor 1.2.1 with velocity using jasmine for testing. The client side changes and refresh can sometimes take 5 minutes?! Even if I stop the app and start it again.

Closing the browser tab and opening a new one also does not help. Lastly, I am using Windows 10 x64, Firefox and Chrome. Please let me know if you need any further information

andrei-markeev commented 8 years ago

Same for me, unfortunately. Tried Windows 7 and Windows 10. Very slow build. Meteor 1.3.0, 1.3.1. More like a turtle than meteor :( On Linux Debian - works great.

Rahman-S-M commented 8 years ago

I'm also experiencing very slow startup and refresh in windows 7. Any way we can tweak this to increase the speed in windows?

Rahman-S-M commented 8 years ago

How meteor updates the changes? Is there anyway we can change the default behavior and specify which set of files to look for changes?

TWKDreamState commented 8 years ago

I don't know if this will help anyone but I was suffering excruciating refresh times and build times. I found a post somewhere talking about the files in the public directory and that Meteor indexes them.

At that point, I was just using it as a holding place and didn't really give much thought to it. I had hundreds of images from a previous website, a whole ton of bower plugins - most of which I wasn't using (I am loading what I need using ocLazyLoad), css files, test html, etc. I didn't think it would factor into the speed as I was only calling what I needed when I needed it.

After reading the post I decided to clean up my public directory and only have what was actually being used by the app. I also cleaned up the npm-modules directory. I get a 2-3 second refresh now (as opposed to 40-50 seconds) and the build time is a great deal better. Might be worth a check?

ittechsathish commented 8 years ago

I am also suffer from this slow build performance issue in windows 10, using 1.3 meteor version. difficult to digest the wait duration, for a change to appear in the browser.

Do we really have solution for this?

poojabhimte16 commented 8 years ago

does meteor works on windows same as mac nd other os ?. I installed meteor on windows and i run 'meteor' using cmd then i created a new app 'explore' using 'meteor create explore', after that i again run 'meteor' command using cmd then it should show following things: started proxy, started mongodb, started app but it shows only 'started proxy' and 'starting your application' and its showing for long time i do not know what is the mistake.. plss help me out in this

baloodevil commented 8 years ago

For troubleshooting build times, from command line enter set METEOR_PROFILE=200. Then when building with meteor, the console will log any operation that takes longer than 200 milliseconds.

poojabhimte16 commented 8 years ago

@baloodevil , it is still the same, idle at 'starting your app' , i m reaaly fed up with this :|

poojabhimte16 commented 8 years ago

@baloodevil , Hey are u aware of latest version of Meteor, which is 1.3