cryptozeny / sugarchain-v0.16.3

OUTDATED! This repo is moved to:
https://github.com/sugarchain-project/sugarchain
MIT License
0 stars 1 forks source link

Error: Out of memory. Terminating. #125

Closed cryptozeny closed 5 years ago

cryptozeny commented 5 years ago

vultr 1024ram 1cpu VPS

Error

2019-10-16 23:45:29 Error: Out of memory. Terminating.
terminate called without an active exception
Aborted (core dumped)
error: couldn't connect to server: unknown (code -1)
                                                                      (make sure server is running and you are connecting to the correct RPC port)
2019-10-17 06:13:28 UpdateTip: new best=3f55ca0f9857a847a40f1fdb76861b2954167206ce16f5970a0ee44edb384127 height=935697 version=0x20000000 log2_work=41.097243 tx=1052046 date='2019-10-17 06:13:10' progress=0.999996 cache=349.7MiB(2592699txo)
Killed

Fix

dbcache=20
maxconnections=3
par=2
maxmempool=50

https://github.com/bitcoin/bitcoin/issues/9812 https://github.com/bitcoin/bitcoin/issues/11752

Assume

// FIXME.SUGAR // SURE?
// 120x faster than bitcoin
// static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024;
static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024 * 120; // (was 1024) // 1024 * 120 = 122880
CharlieWangA commented 4 years ago

I have 8 gigabytes of memory. How should I set it

decryp2kanon commented 4 years ago

8gb sounds enough