Skip to content
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

Meteor 1.0 use nearly 100% cpu when testing in local #3224

Closed
liyu1981 opened this issue Dec 4, 2014 · 2 comments
Closed

Meteor 1.0 use nearly 100% cpu when testing in local #3224

liyu1981 opened this issue Dec 4, 2014 · 2 comments

Comments

@liyu1981
Copy link

liyu1981 commented Dec 4, 2014

Hi, I am playing with Meteor 1.0 in building something. I am quite happy with Meteor write less do more reactivity, but recently I have noticed that when I am testing on my Macbook Pro with OSX 10.10 Yosemite, one of the node process use nearly 100% of a cpu, which impact my battery heavily.

Here is the screenshot when I top all my processes

node cpu 100%
or check it here http://monosnap.com/image/8xasJwofVMW8fcwkU4FiWXbgh3ayuc

As I can see it that, one of the node process (the marked one) is using 100% of one of my core. And also there is another node process, which is normal.

Before digging further, I have checked my env as follows

Li-Yus-MBP:DynamicPoint yli$ meteor --version
Meteor 1.0

Li-Yus-MBP:DynamicPoint yli$ cat .meteor/packages 
# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-platform
insecure
underscore
jquery
iron:router
mrt:external-file-loader
mrt:bootstrap-3
less
peerlibrary:async
accounts-facebook
accounts-github
service-configuration
meteorhacks:kadira
infinitedg:winston
liyu:sprintfjs
mrt:allow-env
livestamp
clode:transit
fortawesome:fontawesome
reactive-dict
reactive-var

As I am running Meteor on a Mac, I further digged the problematic node process with Brendan's FlameGraph. I captured 60 seconds of user-level stacks of problematic node process, and got following FlameGraph

node v8 internal jsobject setelement 6 samples 0 20 2014-12-04 11-20-03

the link:
https://cdn.rawgit.com/liyu1981/debug-meteor-node-problem/master/meteor-problematic-node-process.svg

As far as I can see, there seems to be something wrong in the fibers.node:trampoline part.

Any ideas ?

@glasser
Copy link
Contributor

glasser commented Dec 5, 2014

This is almost certainly #2135, which will be fixed in 1.1.

@glasser glasser closed this as completed Dec 5, 2014
@liyu1981
Copy link
Author

liyu1981 commented Dec 8, 2014

Thanks and wait for the fix in 1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants