Decrease default db cache size to reduce memory footprint
This commit is contained in:
parent
7d708ef868
commit
16275601f4
@ -39,7 +39,7 @@ var (
|
|||||||
blockchain = flag.String("blockchaincfg", "", "path to blockchain RPC service configuration json file")
|
blockchain = flag.String("blockchaincfg", "", "path to blockchain RPC service configuration json file")
|
||||||
|
|
||||||
dbPath = flag.String("datadir", "./data", "path to database directory")
|
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")
|
blockFrom = flag.Int("blockheight", -1, "height of the starting block")
|
||||||
blockUntil = flag.Int("blockuntil", -1, "height of the final block")
|
blockUntil = flag.Int("blockuntil", -1, "height of the final block")
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
||||||
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
||||||
"explorer_url": "/explorer",
|
"explorer_url": "/explorer",
|
||||||
"additional_params": "-dbcache=4294967296",
|
"additional_params": "-dbcache=1073741824",
|
||||||
"block_chain": {
|
"block_chain": {
|
||||||
"parse": true,
|
"parse": true,
|
||||||
"mempool_workers": 8,
|
"mempool_workers": 8,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user