Reputation: 4026
We detected some 7% CPU spikes in idle mode of our meteor apps.
Trying to check if this comes from Meteors file watching.
We tried using the meteor run --once
and meteor --production
parameters.
But they hadn't any effect.
Is there a way to turn off file watching?
(In Case --once
turns it off, what could cause the spikes? We even excluded all our code.)
Upvotes: 0
Views: 48
Reputation: 21354
You shouldn't use the meteor
command in production. Use meteor build
to get a production bundle that you can deploy on your production machines. You start it with node main.js
(but read the README.md first to see which ENV vars need to be set first). The production bundle doesn't watch files.
Upvotes: 1