automata-network / automata

Automata Network is a modular attestation layer that extends machine trust to Ethereum with TEE Coprocessors.
https://ata.network
Apache License 2.0
94 stars 19 forks source link

fix memory leak #12

Closed Ljiacheng closed 3 years ago

Ljiacheng commented 3 years ago

Fix the memory leak. It is caused by crate "thread_local" and the crate fix the BUG at "1.1.3". You can just run "cargo update -p thread_local" or update the repository. Just ensure the version of "thread_local" in your cargo.lock is "1.1.3".

Talk about memory leak in substrate: discussion Fix at substrate: fix cargo.lock Fix at thread_local: drop the value

Ljiacheng commented 3 years ago

I have tried to delete the prometheus service. The memory usage is still increasing 1M in 3-4 seconds. Actually I don't think the prometheus service saves date at memory. @Kayryu