Memory issue on peer node

+1 vote

Hi, 

I 'm running few tests on blockchain and not doing much transactions. 2-3 transactions once in a while but I did about 500k transactions earlier in the same blockchain. Today when I was tried to check the status of my node I saw  "errors" : "EXCEPTION: St9bad_alloc       \nstd::bad_alloc       \nbitcoin in ProcessMessages()       \n" from the getinfo command. 

 multichain-cli chain1 getinfo
{"method":"getinfo","params":[],"id":1,"chain_name":"chain1"}

{
    "version" : "1.0.2",
    "nodeversion" : 10002901,
    "protocolversion" : 10009,
    "chainname" : "chain1",
    "description" : "MultiChain chain1",
    "protocol" : "multichain",
    "port" : 6791,
    "setupblocks" : 60,
    "nodeaddress" : "chain1@172.31.22.144:6791",
    "burnaddress" : "1XXXXXXWm8XXXXXXMhXXXXXXU8XXXXXXaJWtEc",
    "incomingpaused" : false,
    "miningpaused" : false,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "walletdbversion" : 2,
    "reindex" : false,
    "blocks" : 1449,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "difficulty" : 0.00000006,
    "testnet" : false,
    "keypoololdest" : 1510637825,
    "keypoolsize" : 2,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00000000,
    "errors" : "EXCEPTION: St9bad_alloc       \nstd::bad_alloc       \nbitcoin in ProcessMessages()       \n"
}

But my transactions are replicated fine on the other node. Should I be worried?  Seems like a memory leak. 

 

Also is there a h/w recommendation for running blockchains in terms of memory and cpu mainly?  

asked Nov 15, 2017 by ashish235

1 Answer

0 votes

This is just a simple out-of-memory error. On the download page we suggest a minimum of 512 MB of RAM free for MultiChain – but more might be required for a heavily trafficked chain.

answered Nov 15, 2017 by MultiChain
Thanks. So I had to restart my daemon to get rid of this error message. Is there any other way for fixing this?
I don't think it's possible to clear without restarting the node, but you of course have the choice to ignore it at the application level.
My both the nodes has 1 GB of RAM. I 'm doing a controlled test of 10 RPS per second. After about a million transaction why the CPU usage on the secondary keeps increasing and after a point it crashes. And my secondary node refuses to start and throws this memory exceptions. I 'm sending the transactions to the primary node  but my secondary holds the address of the receiving address.

So my question is why on the 2nd node the CPU and mem usage higher than the primary node. And why my multcichain is not able to start on 2nd node even when there is no traffic now. Temporarily I upgraded my node to a 4 Gb machine and multichain then was running properly. Please help.
...