How long does your meteor apps take to restart in production?

My app seems to take a long time to restart in production, even when there is no code changes. In development mode restarting doesn’t take long at all. Was curious to see if others suffer from this problem.

Once compiled it’s immediate.

This might be because you have a lot of code that runs at startup. Try using a node profiler to check what is taking so long.

I’ll give it a shot, what I find weird is it doesn’t seem to be a problem until it’s bundled, even when working off a dump of the server’s DB.

Well I’ve been at this for over a day now, just going to put this here to see if anyone has any insight, seems accounts-base is what’s causing the problem.

I20170202-13:34:06.969(-5)? | Server startup..............................................224,944 ms (1)
I20170202-13:34:06.970(-5)? | └─ Load server bundles......................................224,444 ms (1)
I20170202-13:34:06.970(-5)? |    ├─ packages/accounts-base.js.............................221,439 ms (1)
I20170202-13:34:06.970(-5)? |    │  └─ require("./node_modules/meteor/accounts-base/server_main.js") 221,439 ms (1)
I20170202-13:34:06.970(-5)? |    └─ app/app.js..............................................1,510 ms (1)
I20170202-13:34:06.971(-5)? |       └─ require("./server/imports.js")                       1,419 ms (1)

1 Like

+1
Same problem here