GithubHelp home page GithubHelp logo

Comments (7)

boramalper avatar boramalper commented on May 24, 2024

#56 fixes #55 but not this memory issue, am I correct? Also, did this happen before or after (or both times) after you merged #56?

As you said, this is clearly unacceptable but I don't know what might be causing it. I might guess that, since it occurs within 300-400 seconds after each time, it is because magneticod caches all info hashes in the database to prevent downloading them again. Although each info hash is 20 bytes, and even though you had 5,000,000 torrents, that would be around 95 MiB,† ans that might not be the real cause either. Do you have any guesses?

I can create detailed & structured (debug) logging messages in the following version, which can be enabled by a command-line option, to try to find the cause.

This is also too much, and I'm planning to use a high-performance bloom filter implementation instead in the future.

from magnetico.

boramalper avatar boramalper commented on May 24, 2024

Found it after writing the above comment: =)

https://github.com/boramalper/magnetico/blob/v0.3.0/magneticod/magneticod/bittorrent.py#L219

It's probably this line. A malicious or simply malfunctioning peer might send a huge metadata size, which we are blindly accepting now (and allocating immediately).

I'll change it to accept only under a certain, reasonable size.

from magnetico.

ad-m avatar ad-m commented on May 24, 2024

@boramalper , feel that this error is not related to the earlier. For previous bugs the application did not work long enough for me to debug memory problems.

I use magneticod version as in pull requests #56 (git fetch origin pull/56/head:descriptor && git checkout descriptor). I am unable test that without #56 due short living process (exception was raised without that).

from magnetico.

ad-m avatar ad-m commented on May 24, 2024

@boramalper , do you able to have long running magneticod or do you continuous restart them as documented?

from magnetico.

boramalper avatar boramalper commented on May 24, 2024

@ad-m I continuously restart it.

from magnetico.

dessalines avatar dessalines commented on May 24, 2024

I'm getting this issue now too. Is there no way to give magneticod memory restrictions? A DigitalOcean box with 1GB of memory is killing it.

from magnetico.

ad-m avatar ad-m commented on May 24, 2024

@dessalines , do you use repo version or v0.3.0 (latest releases)? Magnetico* v.0.3.0 doesn't contains fix for that. @boramalper , do you can make a new release?

from magnetico.

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.