go-spacemesh icon indicating copy to clipboard operation
go-spacemesh copied to clipboard

High memory usage

Open ivan4th opened this issue 1 year ago • 0 comments

Description

go-spacemesh uses too much memory. On nodes with high number of peers (~1000) RSS may reach 10-12 GiB and even more, causing OOM on a Linux system with 16 GiB RAM.

Steps to reproduce

Run go-spacemesh on a Linux machine

Actual Behavior

go-spacemesh uses too much memory and OOMs at times.

Expected Behavior

go-spacemesh doesn't OOM on a normal Linux system with 16 GiB RAM

Environment

Please complete the following information:

  • OS: Ubuntu 23.04
  • Node Version: 1.5.3

Additional Resources

Heap profile result is attached Screenshot 2024-05-14 at 18 15 38

ivan4th avatar May 14 '24 15:05 ivan4th