GithubHelp home page GithubHelp logo

Comments (3)

Nagasaki45 avatar Nagasaki45 commented on September 22, 2024

d95beb7 didn't solve the issue.

from krihelinator.

Nagasaki45 avatar Nagasaki45 commented on September 22, 2024

What I understand so far

The issue is with large binaries. Binaries larger than 64 bytes are stored by erlang on a shared heap instead of on the process heap. GC should run on all of the processes that hold a reference to a large binary before it's memory can be reclaimed. See Erlang in Anger for more information about this.

I can notice the problem using the erlang observer on my local machine. In the Load Charts tab, the Memory Usage pannel show a steady growth of Binary data during Krihelinator.Periodic.scrape_from_bigquery and Krihelinator.Periodic.rescrae_still_dirty. In fact, it's not a memory leak, because every now and then (~few minutes) the binaries memory is freed.

In contrary with Erlang in Anger suggestion, it doesn't seem to be an issue with multiple processes holding the data, because calling :erlang.garbage_collect(pid) on the process that runs the Krihelinator.Periodic.run function free the memory. A possible solution (but ugly hack) is to trigger GC periodically as suggeste here.

from krihelinator.

Nagasaki45 avatar Nagasaki45 commented on September 22, 2024

591ce1a implements the periodic GC hack.
I asked about the issue on SO.

from krihelinator.

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.