Decrease default db cache size to reduce memory footprint

This commit is contained in:
Martin Boehm 2018-08-26 18:33:07 +02:00
parent 7d708ef868
commit 16275601f4
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ var (
blockchain = flag.String("blockchaincfg", "", "path to blockchain RPC service configuration json file")
dbPath = flag.String("datadir", "./data", "path to database directory")
dbCache = flag.Int("dbcache", 1<<30, "size of the rocksdb cache")
dbCache = flag.Int("dbcache", 1<<29, "size of the rocksdb cache")
blockFrom = flag.Int("blockheight", -1, "height of the starting block")
blockUntil = flag.Int("blockuntil", -1, "height of the final block")

View File

@ -48,7 +48,7 @@
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
"explorer_url": "/explorer",
"additional_params": "-dbcache=4294967296",
"additional_params": "-dbcache=1073741824",
"block_chain": {
"parse": true,
"mempool_workers": 8,