Giter Site home page Giter Site logo

Comments (6)

lefnire avatar lefnire commented on August 18, 2024

woo, subscribing - there's definitely a memory leak somewhere (HabitRPG/habitica#165), this could be the cause.

from racer.

nateps avatar nateps commented on August 18, 2024

This was a quick fix to speed up the model when there are a lot of queries and refs. Cloning the array is actually much faster than doing split on my profiling. True that the cache should get cleaned up, but this is only a client-side problem, since it is only in the model. This is definitely not related to any server-side memory leak unless a model is being kept around on the server (which shouldn't be done)

from racer.

lefnire avatar lefnire commented on August 18, 2024

I'm hunting Habit's memory leak (which is substantial - fills up 5GB in ~2h of 100-200 concurrent users). Still unsure the root, but I'm using node-webkit-agent to take cross-page-load heap snapshots. This showed up as the primary difference between a single refresh:

splits memory leak

Says splits. Next is ids in the View object. (Man, too bad I can't share this interactive session with y'all somehow...) Anyway, this is a server memory heap dump, not client - and it looks like data.splits is causing a >1MB leak with a single page refresh.

from racer.

SLaks avatar SLaks commented on August 18, 2024

Are those arrays sticking around beyond their page loads?

If so, that's causing your problem. See if you can find out what is referencing the model after the page is rendered; this could be a bug in Racer or a usage issue in your code.

from racer.

lefnire avatar lefnire commented on August 18, 2024

Got it - hunt to find any persistent server-side references to model

from racer.

SLaks avatar SLaks commented on August 18, 2024

This was fixed by 920784f

from racer.

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.