Code Monkey home page Code Monkey logo

Comments (6)

ImTheDeveloper avatar ImTheDeveloper commented on May 29, 2024

This seems to only really propogate enough to be noticable when running the node every 10 seconds via an inject. Unsure whether it is something to do with the client login being carried out every time there is an "input" which needs to be killed off once the input scripts have run or whether it is down to my shoddy use of variables.

from node-red-nodes.

ImTheDeveloper avatar ImTheDeveloper commented on May 29, 2024

I still can't find the leak in this code anyone able to take a look? I'm wondering if its a Pi issue? @dceejay fancy doing my work for me? =p

from node-red-nodes.

andypiper avatar andypiper commented on May 29, 2024

which version of node? I think there's a known potential memory leak with one of the versions of node (0.10.+?)

from node-red-nodes.

ImTheDeveloper avatar ImTheDeveloper commented on May 29, 2024

Yea I'm on 1.10. I'll have to downgrade and test again

from node-red-nodes.

dceejay avatar dceejay commented on May 29, 2024

One thought.... (as well as the known leak Andy pointed out)
you call login every time round - I know you also call clear - but as the underlying npm is not exactly well documented and doesn't talk to a supported API - who knows if it really cleans up after itself every time... may be better to login once (on node creation) and then reuse the same client instance - unless there is some reason not to ? eg timeout which may then make you re-login anyway ;-)

PS you should also add the required Apache license headers to the files.

from node-red-nodes.

ImTheDeveloper avatar ImTheDeveloper commented on May 29, 2024

This is a node version issue and not a snapchat issue per-say. It does not seem to escalate out of hand on v0.8 and the garbage collector tidies up correctly.

from node-red-nodes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.