peerlibrary / meteor-server-autorun

Server-side Tracker.autorun
https://atmospherejs.com/peerlibrary/server-autorun
MIT License
36 stars 7 forks source link

100% CPU issue #14

Closed hexsprite closed 6 years ago

hexsprite commented 7 years ago

v0.5.2

I am running into an intermittent issue one my production service which seems related to this package. At least it shows up a lot in the profiling.

This may be a problem in my app itself, not sure if it is as a result of some kind of circular reactive references.

I did some profiling a while ago and this is what I found. Does any of this seem familiar?

https://ui.kadira.io/cpf/gBM4252LcoiKSJt6w?metric=costlyPaths&pathId=0

If it was a circular reactive reference any tips on how to debug?

Thanks

mitar commented 7 years ago

Hm, I am not sure if I can help with only this data. But yes, a cycle could happen. I would debug it with a normal debugging process I use for reactivity: log how many times autoruns are rerun and what triggers rerun. Which things get invalidated?

mitar commented 6 years ago

Closing because of inactivity.