zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Reduce memory footprint

Open vea45 opened this issue 8 years ago • 7 comments

Hi, I'm running Zenbot on a Raspberry Pi 3 and I can't run more than 2 instances of Zenbot without crashing due to the limited amount of memory (also the MongoDB uses lots of it...) so I don't know if its possible to reduce the quantity of memory used by the software or if it can be improved in some way. Maybe it's possible to compile some modules and left them compiled so they aren't executed using Node, change the database...

vea45 avatar Jan 20 '18 10:01 vea45

You can try to reduce the MongoDB cache size (--wiredTigerCacheSizeGB). It is AFAIK set by default to 50% of the system RAM.

laloch avatar Jan 20 '18 11:01 laloch

Anyway each node process uses at least 120mb

vea45 avatar Jan 20 '18 15:01 vea45

uses at least 120mb

Wooha...mine are all between 40-60 mb, even after a couple of days and a few thousand trades

defkev avatar Jan 20 '18 16:01 defkev

image a 13% of memory in the raspberry means 13% of 1GB... so its aprox 130mb.

vea45 avatar Jan 20 '18 16:01 vea45

  • Exact command to reproduce:

What selector are you using?

defkev avatar Jan 20 '18 17:01 defkev

I use only Poloniex.str-btc and Bitstamp.eth-eur. Is this relevant?

vea45 avatar Jan 20 '18 20:01 vea45

Is this relevant?

Dunno but it definitely helps reproduce whatever you are doing.

defkev avatar Jan 20 '18 22:01 defkev