Node consuming 4-10% of CPU doing nothing?

+3 votes
Hi

I am using "MultiChain 1.0 Daemon (protocol 10008)".

I am running a multichain node on two servers that are identical in hardware and setup.

On one server, multichaind consumes 4-10% of the CPU constantly. On the other it consumes 0.5-1% of CPU constantly.

I enabled "-debug" on the server where multichaind consumes 4-10%. However, the debug log just contains an endless repetition of this:

2019-01-23 08:26:34 received: pong (8 bytes) peer=1
2019-01-23 08:26:35 mcnet: received header: ping
2019-01-23 08:26:35 mcnet: complete message: ping, peer=1
2019-01-23 08:26:35 mchn: RECV: ping, peer=1
2019-01-23 08:26:35 received: ping (8 bytes) peer=1
2019-01-23 08:26:35 sending: pong mchn: SEND: pong
2019-01-23 08:26:35 (8 bytes) peer=1
2019-01-23 08:26:44 sending: ping mchn: SEND: ping
2019-01-23 08:26:44 (8 bytes) peer=1
2019-01-23 08:26:44 mcnet: received header: pong
2019-01-23 08:26:44 mcnet: complete message: pong, peer=1
2019-01-23 08:26:45 mchn: RECV: pong, peer=1
2019-01-23 08:26:45 received: pong (8 bytes) peer=1
2019-01-23 08:26:45 mcnet: received header: ping
2019-01-23 08:26:45 mcnet: complete message: ping, peer=1
2019-01-23 08:26:45 mchn: RECV: ping, peer=1
2019-01-23 08:26:45 received: ping (8 bytes) peer=1
2019-01-23 08:26:45 sending: pong mchn: SEND: pong
2019-01-23 08:26:45 (8 bytes) peer=1
2019-01-23 08:26:54 sending: ping mchn: SEND: ping
2019-01-23 08:26:54 (8 bytes) peer=1
2019-01-23 08:26:54 mcnet: received header: pong
2019-01-23 08:26:54 mcnet: complete message: pong, peer=1
2019-01-23 08:26:55 mchn: RECV: pong, peer=1
2019-01-23 08:26:55 received: pong (8 bytes) peer=1
2019-01-23 08:26:55 mcnet: received header: ping
2019-01-23 08:26:55 mcnet: complete message: ping, peer=1

 

There is basically zero application activity on the server (e.g. the blockchain is not really used for anything).

So, what are those 4-10% of CPU doing?

Top:

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                        
11356 multich+  20   0  701196  40120  11768 S  6.7  2.0   0:47.55 multichaind
asked Jan 23, 2019 by Morten

1 Answer

+2 votes
The most likely explanation is that the first server is building blocks to add to the blockchain. Is that a possible explanation in your case? In any event before proceeding any further we recommend upgrading to the latest release of MultiChain 1.0.x, since you seem to be running quite an old version?
answered Jan 23, 2019 by MultiChain
Ok, I will. Can you give me an approximate time estimate for v1.0.8 being available?
We expect in the next month or so.
Version 1.0.8 has now been released with a fix for this issue.
Thank you, this seems to have solved the problem. The multichaind CPU load is now <1% when there is no activity, as expected.
Great, thanks for the update.
...