Comments (7)
#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.
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.
@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.
@boramalper , do you able to have long running magneticod
or do you continuous restart them as documented?
from magnetico.
@ad-m I continuously restart it.
from magnetico.
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.
@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)
- how to setup magnetico on a centos 7 HOT 1
- "nf_conntrack: nf_conntrack: table full, dropping packet" issue but on router HOT 2
- Cannot run go version in Windows
- Making Magneticod exit if IP address goes away
- Magnetico support included in Jackett v0.16.2106 HOT 3
- Improve Postgres documentation HOT 8
- when to wait for search and statistics support for PostgreSQL HOT 1
- ability to skip torrent whose name contain chines and japanese symbols HOT 5
- ability to sort search result HOT 1
- Archlinux package available HOT 3
- Process exited after beanstalkd backend error
- CLI search tool HOT 5
- Failed when using different schema on postgresql HOT 1
- Is calling “DoesTorrentExist” twice on a torrent necessary? HOT 1
- magneticow wont run in ipv6 is disabled HOT 1
- Any update? HOT 1
- Add a way to sort by number of seeds HOT 1
- database.sqlite3-wal got sooo big HOT 1
- panic: runtime error
- sqlite3 low performance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magnetico.