paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

Memory leak when substrate run as validator #12422

Open web3pioneer opened 2 years ago

web3pioneer commented 2 years ago

Is there an existing issue?

Experiencing problems? Have you tried our Stack Exchange first?

Description of bug

the money(resident memory) will increase about 100M per four hours , and at last will run out fo menory and break.

Server specs 1: Intel(R) Xeon(R) Gold 6151 CPU @ 3.00GHz 4 cores 8GB RAM Ubuntu 20.04

Server specs 2: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz 12 cores 64GB RAM Ubuntu 20.04

(by the way , why cpu usage is alway hight (betwwen 20%-80%) even if there is no trascation)

Steps to reproduce

git clone https://github.com/paritytech/substrate.git git checkout monthly-2022-08 cargo build --release ./target/release/substrate build-spec --chain=dev> spec-dev.json ./target/release/substrate build-spec --chain spec-dev.json --raw > spec-dev-raw.json ./target/release/substrate -d .chain --name AlicesNode1 --chain=spec-dev-raw.json --rpc-cors='all' --rpc-methods Unsafe --alice

the money(RES) will increase about 100M per four hours , and at last will run out fo menory and break.

bkchr commented 2 years ago

Can you please try latest master?

CC @koute

web3pioneer commented 2 years ago

i tried monthly-2022-08 on two different server. i have also tried the lastest master for servery hours.
i will try lastest master again for more thime

bkchr commented 2 years ago

And master didn't showed the same behavior?